What am I doing wrong ?, because from number to number it does succeed
this is my rule:
rule "test rule"
when
Item testbutton changed to ON
then
if( shelly_shelly25_roller_68c63afb1a9c_roller_rollerpos == 100)
{
shelly_shelly25_roller_68c63afb1a9c_roller_rollerpos.postUpdate(OPEN)
}
end
shelly_shelly25_roller_68c63afb1a9c_roller_rollerpos is an Item. An Item carries a state along with a whole lot of other stuff. If you want to compare the Item’s state to 100 you need to ask for the state.
In principle, I need it to send updates of items to the telegram, so maybe it is possible to insert the transform file as I defined in labels in sitemap. Is this possible?
Anything is possible but there isn’t enough information here to really do much helping.
Yes you can use the transform action to apply a transform to a String in a rule. But that’s not related to anything you asked about in your first question.
I looked at the telegram binding page and it seems to me that this is how it should be but I do not get anything in the telegram
rule "to test updates seen"
when
Item testbutton changed to ON
then
sendTelegramPhoto("bot1", shelly_shelly1_f4cfa27683a2_relay_output.state.toFullString, "sent from openHAB")
end
The only option that I see that should work is sending a html formatted message. The message then needs to include a link to an icon. In case there is a UTF-8 or UTF-16 symbol for the lamp it even might work better. As pictures are being shown as preview.