Chibald / maestrogateway

Manage MCZ pellet stoves that are equipped with Maestro technology
GNU General Public License v3.0
37 stars 13 forks source link

Deamon stuck at activating/start after Restart/Powerloss #52

Open maulenski opened 11 months ago

maulenski commented 11 months ago

Hey,

first of all Thank you for the great Script. This is a perfect solution for the horrible App from MCZ. I use it in combination with ioBroker and now i can control the oven even in Homekit.

But i have a Problem using the Deamon on Raspberry Pi OS. After a Powerloss or Restart the daemon wont come up correctly, it is stuck at "activating/start". As soon as i restart the deamon using "sudo systemctl restart maestro.service" the deamon will come up immediately.

Any suggestions what could have go wrong here? Perhaps it is starting too early or something like this?

Thanks

VoetenK commented 11 months ago

In Home Assistant Supervisor, I did this: Crontab -e Then completed with the following: @reboot (sleep 500 && sudo docker-compose up --detach)

@reboot (sleep 700 && sudo docker-compose stop) @reboot (sleep 1000 && sudo docker-compose start)

Is this what you are looking for?

maulenski commented 11 months ago

Hey,

I dont use Docker, i installed the script as deamon, therefore this is not my solution.

But Thank you

VoetenK commented 11 months ago

I think you can use this one for that. @reboot (sleep 300 && sudo service maestro start)

maulenski commented 11 months ago

Hey, ok now i understand. i will give it a try, but this is only a workaround and it would be cleaner if the deamon would startup correctly. Thank you