[SOLVED] Netatmo Binding refactoring

Hello to everybody
I have OpneHAB 2.3 and the Netatmo system in my home.
With the standard binding the internal end external weather modules works well, but the thermostat module doesn’t work very well.
All the items and channel are ON-LINE, and when I give a command the Netatmo sever receve it correctly, but the item doesn’t refresh well.
(for example if you change manually set point mode … )
@rudolph.io where I can found the .jar file of the new binding for test it?
thanks in advance

Hey,

you can compile it from the repo (https://github.com/navybk/openhab2-addons) or try this compiled one (early beta phase) https://github.com/navybk/openhab2-addons/releases/download/netatmo/org.openhab.binding.netatmo-2.4.0-SNAPSHOT.jar

Recently the room support was added and it works as far as I see but sending commands is not possible yet.

Hey @rudolph.io,

do you plan to support the Netatmo Presence? I tried your release but the presence wasn’t detected.

Thanks,
Jonas

I’d like to. The lib already has all needed andpoints configured but I did not work on the Openhab2-Things, but I do not own such devices. So I need some help with concrete return values. If you could provide them, I would invest some time on these.

Cool,
I think it would be the best approach to start with the kotlin lib or? I can provide raw api responses if you like. How can I do it?
I’ve downloaded and compiled https://github.com/navybk/netatmo-java-api. I had to add

disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)

to JacksonTransform to get it working. There are unknown properties coming through the API.

Thanks,
Jonas

I just added some minor testing commits for your purpose. Please run the PresenceTest and WelcomeTest, copy the output, obfuscate all personal information in the call result bodies and send it to me please. I have to check the json against the lib which was created aligned to the netatmo documentation. Afterwards I can adjust the openhab2-binding.

1 Like

A new version with alpha presence support is out there. It should work, the presence camera does not differ from welcome camera api wise. File available here https://github.com/navybk/openhab2-addons/releases/tag/beta2

1 Like

Hi @rudolph.io
i would like to test the new Netatmo Binding. But i’m struggeling in setting up the binding. is there a short howto available how to get the binding working?
i see only this information:

Status: OFFLINE Pending parent object initialization


BR Dave

Good morning,

Did you add the Home Thing first? I see a main problem here and will to change this behavior to a more independent and generic one but for now try to add the home first

Good morning
now i uninstalled Home and Presence Item. Then i restarted Openhab.

then i installed the Home Item with the Home ID but then this is also OFFLINE
home

after this i installed Presence and this is also OFFLINE
camera

any idea?

Hi Rudolph,

Do you have any plans to add the “Tell Welcome everybody has left the house” function of the Netatmo Security app?
I’m planning to use that to have my alarm system tell Welcome that nobody is home.

It is documented in the Welcome APi here: https://dev.netatmo.com/resources/technical/reference/security/setpersonsaway:
“If a person_id is specified, that person will be set as “Away”. If no person_id is specified, the Home will be set as “Empty”.”

/Morten

2 Likes

Hi Rudolph,

I’m trying the beta 2 of your binding but after the configuration of the Netatmo API I receive the following error:

Cannot trigger scan for thing types ‘[netatmo:NHC, netatmo:NATherm1, netatmo:NACamera, netatmo:NAPlug, netatmo:NOC, netatmo:NAMain, netatmo:NAWelcomeHome, netatmo:Room, netatmo:Home, netatmo:NRV, netatmo:NAWelcomePerson, netatmo:NAModule3, netatmo:NAModule4, netatmo:NAModule1, netatmo:NAModule2]’ on ‘NetatmoModuleDiscoveryService’!

when trying to scan for components.

Riccardo

1 Like

Hello,

is this fork still maintained and is there any further work done on the presence camera? Would live to know if I can support.

I‘m facing the same problems. How did you solve it?

Hi Welf
in my current setup i do not use the presence cameras for motion detection, because the binding does not support it. it’s a pity…

Hello,

I am running 2.4.0. The Netatmo Binding causes my NUC to run at 100% CPU load. OH becomes unresponsive.

When I turn it of (things/item files removed and binding deinstalled) the NUC is at 20% again.

Anyone else seeing this? Ideas how to debug this? Logging on the Netatmo Binding I turned on. Nothing suspicious.

Regards
Ralf

Same setup for me, no problem. CPU under 2%.
I use Netatmo binding for thermostat and weather station.

I added anwelcome cam. Anyone?

Hi Rudolph
is there an update available for the Netatmo Binding supporting the motion detection of the Netatmo Presence?

this would be great - waiting for it too