#Restart an integration via automation

1 messages · Page 1 of 1 (latest)

woven zinc
#

I see how to restart an add on via automation but I’m not seeing how to restart an integration (via automation)— is this possible?

fleet aurora
#

Reload the config entry

bright yacht
#

homeassistant.reload_config_entry

fleet aurora
#

Yes

#

The question is always...but why?

woven zinc
#

I use the AppleTV integration to control the lighting in my tv room based on the play pause state of the video. The appletv integration needs to be reloaded about once a month for some reason. So I’m just going to do it overnight/weekly to avoid doing it manually.

#

(Yes yes fix the root cause and I will but I’m good with a bandaid for the moment)

bright yacht
#

i read somewhere about that. does it go "unavailable"? then you could restart it on demand too?

woven zinc
#

Not that I’m seeing in the logs and it’s SUPER sporadic

bright yacht
#

hopefully daily restart solves the majority of cases anyway. add a voice command to be able to call it manually too just in case

woven zinc
#

That’s a good call too.

bright yacht
#

"okay nabu apple tv is broken again"... "i am turning it off and on again"

#

if your going to bodge it then bodge it completly 🙂

fleet aurora
#

I have to do the same for my Anova sous vide device. I've tried the debug the connection and failed