Automation to restart Z2m

From time to time, my Z2m stoped work, and just come back after restart z2m service, how can i makle an automation for when some device get x time with last seen, restar z2m ?

some1 can help me ?

Why don’t you focus on trying to fix the problem causing Z2M to stop working?

i tried so many times, and nothing work , changed the stick, changed the firmware, changed the cable…

Try calling the service hassio.addon_restart.

You will have to add the z2m service name. I don’t have it, so if you have to find go to Developer Tools and click on the tab Services, the type hassio.addon_restart and select the z2m in the drop-down list. Then click in view as yaml, copy that code and use in your automation.

I never tried that, by the way.

Something in you log? Have you tried debugging?
Maybe it would be better if you create another topic specific for “M2Z stop working from time to time” (or something like that) and you probably will have people with more experience on Z2M helping with he troubleshooting.

thx, it worked!

1 Like