Creating a add-on state sensor

Hi,

I want to create a stop-start state sensor for one of my add-on. Is there a way to do it?

I thought supervisor integration automatically creates these sensors for each add-on?

Apparently i am wrong but this shell command might help you;

docker ps --filter name=duckdns --filter status=running

You can also create a feature request for this

Supervisor sensor only provides version and updates

But I found this

Right now Iā€™m keep getting Template variable error: 'value_json' is undefined when rendering '{{ value_json.data.state }} error

3 Likes

Thank you!