Limych/addon-presence-monitor

Monitor script exiting unexpectedly

sbowater opened this issue · 4 comments

Version of the add-on
0.3.2

Configuration
see attachment

Describe the bug
The script ends abruptly shortly after starting. Latest error message:
usr/local/bin/monitor: line 1589: e03f-354c: value too great for base (error token is "354c")

[removed links to config and logs for privacy]

This failure is not in the addon, but in the monitor script. You should create a bug report in the monitor script repository.

https://github.com/andrewjfreyer/monitor/issues

I'm trying to figure out now how to transfer this issue to that repository.

OK -- I have other monitor nodes running on RPi Zero W running with same config without any issues but they are on monitor.sh version 0.2.200. The add-on is using v0.2.197. How do I upgrade the add-on's version of monitor.sh as this may have been dealt with in subsequent releases and I don't want to open a git issue there if it's already resolved?

The monitor script is automatically updates to the latest version every time it starts. Just restart the add on and it should update itself.

Appreciate the prompt response. I've had to restart the add-on several times and still on v0.2.197.
Log contains the following line:

updated monitor (v. Unknown) -> (v. 0.2.197)...

I can see from Andrew Freyer's repo that latest version is 0.2.200 so not sure why this isn't pulling through. Is that an internal function of the monitor script or part of the add-on wrapper? Is there any other way to force a git pull from within the docker/hassio/addon structure (which I am not at all familiar with).

I also tried sending MQTT topic "monitor/scan/update" which according to his FAQ's should trigger a version update but no reaction/change.

I have opened an issue on Andrew's repo for this also but not clear to me how the add-on and the original script are set up to be able to handle updates.