I defined an Input boolean entity in Homeassistant. I have an ESPHome connected with a Nextion display, and I would like to toggle the status of the input_boolean from the display.
I tried using a homeassistant.service action to turn_pff/turn_on the input_boolean. Developer tools shows the following as a valid YAML snippet:
Your best choice woud be to just clean up your code and make it efficient. Thats what you call, “going in circles” and you likely dont need most of those entities. Probably just the script and binary sensor.
Post the relevant code and lets get you straightened out!
Its hard to really say anything with certainty until you post the code and i can see what your doing or trying to do.
There’s a really high chance that there are multiple better ways and each different. This is why i need to see the code. There are dozens of ways to trigger a script and no offense but yours is all messed up and mixing HA entities into an esphome device so that you add unnecessary risk of failure or reliability, its a bad idea. If Esphome has a large number of comparable entities to use because its meant to be able to operate 100% independent of HA so, you really shouldn’t be using input_boolean from HA at all here.
If you step back and think about it, what is an input_boolean? Its essentially a 2 state digital latching switch and uses True/False just as a switch/button uses On/Off or True/False too.
Here part of the binary_sensor documentation and look at that,it uses True/False by default and will make a perfect alternative to HA input_boolean.
There’s a reason you had a hard time finding information with people doing this and its because you shouldn’t even be using an input_boolean because its not a good option and for several reasons.