NetHassmo - Menage presence and monitoring of your Netatmo Welcome

Hi all, I would like to share a simple app I wrote to use in combination with Netatmo Welcome camera.
See details for configuration and how it works on the repo page Nethassmo

For the moment you have to add it as a custom repository in HACS.
Now it’s part of HACS default.

1 Like

Hi,

I would love to use this the other way around. E.g, when face of person X detected, set home state of person X to home in Home Assistant.

This seems to be an even more accurate way then phone presence detection. Would this be possible?

This is completely off topic, but both ways will be possible.

You app worked amazingly well, thanks for that. Unfortunately, right now it does not work anymore for me. I opened an issue here: Link

For your convenience, here also the log from appdaemon that shows an error. It seems there is an issue on refreshing access token. Any idea how to fix this?

2020-08-02 15:15:47.082404 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/nethassmo/nethassmo.py
2020-08-02 15:15:48.218233 INFO AppDaemon: Initializing app nethassmo using class Nethassmo from module nethassmo
2020-08-02 15:15:48.401968 INFO nethassmo: Reading username... OK
2020-08-02 15:15:48.404461 INFO nethassmo: Reading password... OK
2020-08-02 15:15:48.406668 INFO nethassmo: Reading Client ID... OK
2020-08-02 15:15:48.409031 INFO nethassmo: Reading Client Secret... OK
2020-08-02 15:15:48.411246 INFO nethassmo: Netatmo Access Data: OK
2020-08-02 15:15:48.445646 INFO nethassmo: Access Token found.
2020-08-02 15:15:48.452161 INFO nethassmo: Home data found.
2020-08-02 15:15:48.468162 INFO AppDaemon: App initialization complete
2020-08-02 15:16:20.581567 INFO nethassmo: Refreshing Token validity...
2020-08-02 15:16:27.924227 WARNING AppDaemon: Log formatting error - 'not all arguments converted during string formatting'
2020-08-02 15:16:27.926818 WARNING AppDaemon: message: 400, args: ('{"error":"invalid_grant"}',)
2020-08-02 15:17:40.588470 WARNING AppDaemon: Log formatting error - 'not all arguments converted during string formatting'
2020-08-02 15:17:40.590528 WARNING AppDaemon: message: 403, args: ('{"error":{"code":2,"message":"Invalid access token"}}',)

EDIT: Uninstalled and reinstalled Nethassmo and then the Token Refresh succeeded, it now works again.

Just for completeness, this can now also be achieved by the HA integration alone. No need for double authentication.

I am sorry this is probably a stupid newb question, but where is the apps.yaml file so I can configure it?

apps.yaml is part of the Appdaemon integration.
You can find it under /config/appdaemon/apps/

Thanks for the info. Although I do have a directory of /config/appdaemon/apps/ there is no apps.yaml file there, only the nethassmo folder. Is the Appdaemon Integration installed by default? I cannot see it in the HA or HACS Integration repositories.

No it’s not. But if you are using Hassio there’s an official add-on in the store.
Otherwise you can find here other installation methods.
After the installation you’ll find Appdaemon in the Supervisor page.