View single post by caravanboy | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Posted: Monday Feb 28th, 2022 07:57 am |
|
||||||||||||
caravanboy
|
If possible I'd run it separately to HASSOS - do they recommend running your own processes on the Home Assistant OS? If you did run it there you'd have to reinstall each time you upgraded HASSOS too. If you just want to start it manually and leave it running in the background then use "&" to launch it in the background. Mine stays alive when I close my terminal if I run it like this. python comfort.py &> mylogfile.log & Alternatively, look at launching it with nohup to ensure it definitely stays alive. I lazily had my comfort.py running for a long time in that way (i.e. without getting around to auto-launching), it is pretty reliable (and I've also fixed lots of unhandled message types in it) so you rarely have to restart it. I also made mine auto-reconnect to Home Assistant which it now does in most situations (still one scenario on my backlog not yet implemented).
|
||||||||||||
|