[SOLVED] Netatmo Binding refactoring

I had same observations. Also here Netatmo binding stops actualizing values from time to time. Restarting the binding helps in this case. Just for information : My OpenHAB runs on Windows Server 2012R2.

So the support also made clear, the endpoint is not part of the public api. Too bad, but the api call will stay included, so if anyone gain the clientId/clientSecret it is usable.

I will take a look into this, since I am allready refactoring the binding

Do you know a way to integrate one of these services in OpenHab? I Have not found an addon etc.

WeatherUnderground is no longer freely accessible and the other providers calculate the weather mainly for an American model, which does not really fit for Europe.

it isā€¦ iā€™ve been using this for a couple of monthsā€¦ and it works greatā€¦ you are just limited to 500 API calls per day and 10 API Calls per minuteā€¦

This is from https://www.wunderground.com/weather/api/

This is a relatively recent change in policy. Only those of us who acquired an API key before the change in policy have an API key and have access to the free plan. For now at least.

I am afraid that is not possible. AFAIK none of both provides a public API.

oh sorryā€¦ ok that was new to meā€¦ thanks for this infoā€¦

so hopefully we will be able to use the data in the future for freeā€¦ but its better to look for alternativesā€¦

For weather in North America I started looking at reports from NOAA. Unlike most of these other services, including Wunderground, their forecast is based on models and human review. But the data they return isnā€™t very easy to parse so Iā€™ve been stalled a bit in my progress.

a quick search brought me to https://openweathermap.org/api with a real free APIā€¦

I need to take a closer few in the next daysā€¦ and maybe i will use them in the futureā€¦

butā€¦ also we should create another topic for thisā€¦ to keep this ā€œNetatmoā€ topic clean from our ā€œother Bindingā€ replys :smiley:

@kugelsicha Check this out:

1 Like

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