@Noza wrote:
Hey
Got a newbie question about the Restfull switch.
I’ve got a pellet stove that can be controlled with http commands. As i want to use a generic_thermostat i need to create a switch to turn ON/OFF the stove.The rest commands are formated like that:
http://192.168.1.xxx/cgi-bin/sendmsg.lua?cmd=COMMAND_HEREGET+STATUS will return:
{"INFO":{"RSP":"OK","CMD":"GET STATUS","TS":1575311921},"SUCCESS":true,"DATA":{"STATUS":7,"LSTATUS":51}}.
STATUS 1, 2, 3 or 4 means that the stove is ON and 0, 6, 7, 8 or 9 means the stove is OFF
SET+ON will turn on the stove
SET+OFF will turn off the stoveAnyone can help me to create the switch? I’m so lost i don’t even know where to start.
Thanks !
Posts: 2
Participants: 2