Custom Entities

Ok, I’ve read through countless docs and attempted many things but I’m still new so this is beyond me at the moment. I’m planning on having 3 buttons that control some pool valves but they are not entities. I want to click one button to turn a pool valve which I can do through a Raspberry Pi no problem via py scripts. My problem is that since the buttons are not tied to an entity how do I change the state of the button. I know I can use service calls to scripts to update states but I need an entity to update.

Is there a way to create a generic entity?

An input boolean works the same as a switch, and you can tie an automation, script, scene etc to the on and off function.

Thanks, I was fooling around with the input Boolean but thought there was another way.

I’ll go back to that method.

1 Like