Hello!
After researching rules/switches I’ve created a couple of rules that seem to work. That is, they execute a command, but my thermostat isn’t changing.
These are the buttons I’m pushing.
Commented within my rules I have the commands that work from a command prompt.
rule “Hold Disabled”
when
Item Tstat_hold received command 0
then
// command line: curl -d ‘{“hold”:0}’ http://192.168.224.50/tstat
executeCommandLine(“curl -d ‘{"hold":0}’ http://192.168.224.50/tstat”)
end
rule “Hold Enabled”
when
Item Tstat_hold received command 1
then
// command line: curl -d ‘{“hold”:1}’ http://192.168.224.50/tstat
executeCommandLine(“curl -d ‘{"hold":1}’ http://192.168.224.50/tstat”)
end
Watching the monitor connected to the Pi I see the following when clicking the No button.
Tstat_hold received command 0
executed CommandLine ‘curl -d ‘{“hold”:1}’ http://192.168.224.50/tstat’
But the thermostat doesn’t change.
Is there something wrong in my command?
Thanks!
Scot