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.
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 stove
Anyone can help me to create the switch? I’m so lost i don’t even know where to start.
For the RESTful switch now, i dont really know what is the endpoint.
If it’s http://192.168.1.XXX/cgi-bin/sendmsg.lua?cmd=GET+STATUS i understand how to format the “is_on_template” (well i will find on, my own how) but how does the body_on and body_off will work? will they replace the GET+STATUS part of the endpoint?
But if it’s http://192.168.1.XXX/cgi-bin/sendmsg.lua?cmd=
body_on and body_off will add (SET+ON or SET+OFF) at the end of the endpoint but i don’t know to tell the sensor to use GET+STATUS to get the is_on_template to work.
Or perhaps it can be something like http://192.168.1.XXX/cgi-bin/ and i must use the headers option, i don’t know.
Or juste maybe the RESTfull switch is not the way to go for my case.
Right now I’m just using a regular browser and I type : http://192.168.1.XXX/cgi-bin/sendmsg.lua?cmd=SET+ON (and hit enter) to turn on the stove.
The same applies With SET+OFF to turn off.
For the status I’m using the same method with GET+STATUS instead of SET+XXX A
and the browser get me the details I need.
Reading the docs I think the command line switch is the way to go for me.
thanks for the guide, i’m trying but when i insert in configuraton.yaml sensor: !include sensor.yaml it gives me the following error : Error loading /config/configuration.yaml: mapping values are not allowed here
in “/config/sensor.yaml”, line 2, column 13 where am i wrong? thanks
Can you paste here your sensor.yaml code? seems there is a problem on line 2;
Is your indentation correct? Don’t forget the spaces at the start of each line.
solved there is no space in the first line, thanks, now if in the configurator.yaml I add the two instructions to include the two files, the mqtt entities no longer work
You have to move all your switchs and sensors to the switch and sensor files you’ve just created. Those files are here so the configuration.yaml is not to big
Hi,
I’m newbie with HA and trying to figure out how to add my Jotul Stove (with palazetti wifi control) to my HA instance… (I installed my HA server just for this for now).
I tried to follow @Noza instructions but i don’t understand how I can see switch and sensors in lovelace dashboard after to have creating and editing yaml files as shown here : GitHub - NoSaga0717/Palazzetti-Ha
Can someone help me please ?
Sorry for my bad english …
Hello,
Click on the three dots at the top right of the screen and select ‘Edit Dashboard’. Then click on the blue ‘+ Add Card’ icon at the bottom right and select a card to add." Find the card you want to use (e.g the Entity one). Type switch.xxxxx or sensor.xxxx and you will find your newly created switch/sensor