I’m fairly new to home assistant and I don’t know a single thing about coding. I’m still a bit lost with the entity system.
I have an unsupported pellet stove I’d like to turn on and off and using a generic thermostat and rfxtrx to send the command. I managed to create a simple switch to turn it on and off manually, but I’d like to be able to automate it a bit.
The RFXTRX add-on doesn’t recognize the command when I try to add entities from their panels, but the commands I got from rfxmngr work fine when I use the send command manually.
My idea is to create an entity that would be recognized by the generic thermostat add-on as a heating device, which sends a command to turn it on via rfxtrx.send, and a different one to turn it off. There’s no state feedback possible (the stove just receives commands).
The Generic Thermostat integration creates a climate entity… to do that, it requires a switch/toggle entity and a thermometer.
If the RFXTRX integration isn’t able to create a switch entity for you, another option would be to use a Template Switch. You will need to set it to act optimistically since you have no actual feedback.
That looks okay. I’m not sure if it’s required since you didn’t define a state template, but it wouldn’t hurt to add optimistic: true… just in case.
Since you aren’t using any of the advanced configuration options you can set it up either in your configuration.yaml file or you can do it through the Helpers tab. Whichever you prefer.