Hello,
I have a question about the Rule-Based System in OpenHab in combination with the Telegram Action Addon.
I want to send a Telegram message with the current temperature of my solar system.
I’m basic in Programming and tried this following rule:
rule “Solar Systen”
when
Item KG_Solar_Kollektortemperatur changed
then
sendTelegram(“bot1”, "The temperature changed to: " +KG_Solar_Kollektortemperatur)
end
Where is my problem to “print” the Value in the telegram message?
Thanks for your help!
rule “Solar Systen”
when
Item KG_Solar_Kollektortemperatur changed
then
sendTelegram(“bot1”, "The temperature changed to: " + KG_Solar_Kollektortemperatur.state.toString)
end
If you add some logging, it will help troubleshoot whether the rule is triggering. Add this as the first line of the body of the rule (the ‘then’ part)…