Page 1 of 1

Management of floodlight for Netatmo camera

Posted: Monday 01 January 2024 18:57
by phil35
Hello,
I now manage the floodlight of my netatmo camera using a virtual switch in domoticz. [ a huge thanks to the domoticz's Team! ]
The php script behind, may interest others, so i decide to share.

https://github.com/Phil353556/netatmo-floodlight

Take it, try it and share feedbacks, I will appreciate.

Thank you & happy new year 2024!
Kind regards
Phil

Re: Management of floodlight for Netatmo camera

Posted: Thursday 23 January 2025 14:32
by phil35
Hello,

Latest version of domoticz (minimun version is 2024.1) integrates the new authentification method of Netatmo based on tokens and no more with a username and a password. Than means that it is possible to get all the weather station information via domoticz.
However to interact avec others devices such floodlight camera, it is not possible, as the access to the "access_token" store in domoticz is needed.
So :
- A new script https://github.com/Phil353556/netatmo-manage-tokens has been written to request initials tokens and then to manage the refresh of the access_token which expires every 3 hours. This script runs via a crontab and the script netatmo-floodlight accesses to the access_token store in a file, to be able to interact with the devices.
- The script netatmo-floodlight must be updated to take this change into account. The script will be updated in the next days on github.com.

Hope this helps
Don't hesitate to share any feedback in a constructive way.
Phil

Re: Management of floodlight for Netatmo camera

Posted: Sunday 26 January 2025 12:04
by phil35
Hello,

script now available: https://github.com/Phil353556/netatmo-floodlight

Run without any issue since days with domoticz and a connected button zigbee
https://www.domadoo.fr/fr/peripheriques ... ee-30.html

Thanks to the zigbee team for their support @pipiche @deufo

best regards
Phil

Re: Management of floodlight for Netatmo camera

Posted: Sunday 02 February 2025 21:08
by homeJLB
There is a lot off work done for the Netatmo authentication and the new API / more devices.
see viewtopic.php?p=322718&hilit=Netatmo#p322718
The latest Beta has the Floodlight working, and there is work on Github for testing with other devices to.

Kind regards