Script to warn on low battery

Thank you so much for this precious code ! :slight_smile:
I apologize for my ignorance, but I can’t seem to get it working :
I created the mentioned input_text helpers, a file /config/appdaemon/apps/low_battery.py filled up with your first code, the apps.yaml with second your code, but I get this error :

2021-06-18 00:47:02.124866 INFO AppDaemon: /config/appdaemon/apps/apps.yaml added or modified
2021-06-18 00:47:02.126842 INFO AppDaemon: App 'low_battery' changed
2021-06-18 00:47:02.139318 INFO AppDaemon: Found 1 total apps
2021-06-18 00:47:02.187440 INFO AppDaemon: Terminating low_battery
2021-06-18 00:47:02.190403 INFO AppDaemon: Initializing app low_battery using class LowBatteries from module low_batteries
2021-06-18 00:47:02.191714 WARNING AppDaemon: Unable to find module module low_batteries - 'low_battery' is not initialized
2021-06-18 00:47:02.203094 WARNING AppDaemon: Unable to find module low_battery - initialize() skipped
2021-06-18 00:47:46.204503 INFO AppDaemon: Reloading Module: /config/appdaemon/apps/low_battery.py
2021-06-18 00:47:46.207121 WARNING AppDaemon: No app description found for: low_battery - ignoring

Did I misse any step ? Would you have any clue please ? :slight_smile:

Hi, sorry for the late reaction. I’m really not sure, but it looks like it cannot find the code. I’m guessing that you haven’t called your file low_batteries.py which I think is required (this is where the module name comes from).

1 Like