I’m almost embarrassed to ask this question but I can’t seem to get my head around the xxx amount of platforms / sensors. I’m sorry but the cookbook examples are just too much for a beginner of home-assistant … .
I want to run a python script commanded by home-assistant and am just looking for a box in my interface how to display the output of this script.
I suppose I need to do something with hass.states but don’t get the concept how such an output (string unless some conversion is needed) gets displayed on the interface.
Referring to simple basic examples works as well …
I think if you want to get the output of a python script on the front end, you should add some lines to the script to update the state of a HA sensor. I prefer just to publish the output to a mqtt topic and then setup a mqtt sensor in HA and finally put that sensor on your front end.
So far so good. Now, of course I want to start/stop this script from the user interface. However if I add this shell_command, no buttons / switches etc. show up in the interface.
It doesn’t seem like adding and removing sensors happens very reliably in the interface but normally after restarts or reboots I get an updated sensor list at least, but not this time … .