Value of Item linked to Netatmo Thing remains Undefined

Hi All,

I’m hoping that this is a simple problem for which there’s an obvious solution which I can’t see… …thus the ‘beginners’ post. I have added a binding for my Netatmo weather station. The binding is apparently working correctly, ie in PaperUI, all the Things related to the binding are “Online”. I have checked the events.log and turned on DEBUG for the Netatmo binding and everything seems to be working fine.

I have created (for now) a single item to read the temperature from the Indoor unit, copying the Channel string from PaperUI. PaperUI shows the item to be correctly linked to the thing. The item definition is:

Number NATMO_Temp "Temperature [%.1f]" <temperature> ( gNetatmo ) { channel="netatmo:NAMain:d3dda569:70ee5002dc20:Temperature"}

I have even created a script that uses “getThingStatusInfo” to confirm that the thing related to this item is online based on this extremely useful discussion.

However, the value of the item remains stubbornly “UNDEF” and PaperUI shows -NaN as the value. As I said, I have the feeling that this is something simple, but I’ve run out of ideas.

Any suggestions?

This is how I have mine defined:

Bridge netatmo:netatmoapi:home [ clientId="xx", clientSecret="xx", username = "xx", password = "xx", readStation=true, reconnectInterval=300] {
    Thing NAMain    inside  [ id="70:ee:50:aa:aa:aa" ]
    Thing NAModule1 outside [ id="02:00:00:aa:aa:aa", parentId="70:ee:50:aa:aa:aa" ]
}

readStation shows up as “Access Weather Station” in paperUI. I also reduced the retry timeout since it defaults to something like 2 hours.

Number:Temperature   nIndoorTemp            "Indoor Temperature [%.1f°]"      (netatmo) {channel="netatmo:NAMain:home:inside:Temperature"}
Number:Temperature   nOutdoorTemp           "Outdoor Temperature [%.1f°]"     (netatmo) {channel="netatmo:NAModule1:home:outside:Temperature"}

Hi Rob,

Thanks. I also set the retry timeout to a lower figure = 120secs and, indeed, in PaperUI Access Weather Station is set to true. My channel address, defined by PaperUI, is different in detail, but the same in structure, ie: netatmo:NAMain:d3dda569:70ee5002dc20:Temperature for the inside temp sensor.

So I’m left wondering where the difference lies: You have a 300s time out, I have 120s. I used PaperUI to define the binding, you used a file. But that’s about it. :thinking:

Cheers.

Just in case, I changed the timeout to 300s and rebooted OpenHAB. In case it helps, the Netatmo related entries in the events.log look like this:

2020-04-14 15:12:05.501 [hingStatusInfoChangedEvent] - 'netatmo:NAModule1:d3dda569:0200002c8b0e' changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2020-04-14 15:12:05.504 [hingStatusInfoChangedEvent] - 'netatmo:NAModule2:d3dda569:06000000e9ea' changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2020-04-14 15:12:05.509 [hingStatusInfoChangedEvent] - 'netatmo:NAMain:d3dda569:70ee5002dc20' changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2020-04-14 15:12:05.510 [hingStatusInfoChangedEvent] - 'netatmo:NAModule3:d3dda569:0500000131f4' changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2020-04-14 15:12:05.600 [hingStatusInfoChangedEvent] - 'netatmo:netatmoapi:d3dda569' changed from UNINITIALIZED to INITIALIZING
2020-04-14 15:12:10.121 [hingStatusInfoChangedEvent] - 'netatmo:netatmoapi:d3dda569' changed from INITIALIZING to ONLINE
2020-04-14 15:12:10.126 [hingStatusInfoChangedEvent] - 'netatmo:NAModule3:d3dda569:0500000131f4' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2020-04-14 15:12:10.148 [hingStatusInfoChangedEvent] - 'netatmo:NAModule2:d3dda569:06000000e9ea' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2020-04-14 15:12:10.161 [hingStatusInfoChangedEvent] - 'netatmo:NAModule2:d3dda569:06000000e9ea' changed from INITIALIZING to OFFLINE: Pending parent object initialization
2020-04-14 15:12:10.163 [hingStatusInfoChangedEvent] - 'netatmo:NAModule1:d3dda569:0200002c8b0e' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2020-04-14 15:12:10.167 [hingStatusInfoChangedEvent] - 'netatmo:NAModule1:d3dda569:0200002c8b0e' changed from INITIALIZING to OFFLINE: Pending parent object initialization2020-04-14 15:12:10.191 [hingStatusInfoChangedEvent] - 'netatmo:NAModule3:d3dda569:0500000131f4' changed from INITIALIZING to OFFLINE: Pending parent object initialization
2020-04-14 15:12:10.198 [hingStatusInfoChangedEvent] - 'netatmo:NAMain:d3dda569:70ee5002dc20' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
2020-04-14 15:12:10.212 [hingStatusInfoChangedEvent] - 'netatmo:NAMain:d3dda569:70ee5002dc20' changed from INITIALIZING to OFFLINE: Pending parent object initialization
2020-04-14 15:12:10.214 [hingStatusInfoChangedEvent] - 'netatmo:NAMain:d3dda569:70ee5002dc20' changed from OFFLINE: Pending parent object initialization to ONLINE
2020-04-14 15:12:10.662 [vent.ItemStateChangedEvent] - NATMO_Temp changed from NULL to UNDEF
2020-04-14 15:12:10.686 [hingStatusInfoChangedEvent] - 'netatmo:NAModule2:d3dda569:06000000e9ea' changed from OFFLINE: Pending parent object initialization to ONLINE
2020-04-14 15:12:10.708 [hingStatusInfoChangedEvent] - 'netatmo:NAModule1:d3dda569:0200002c8b0e' changed from OFFLINE: Pending parent object initialization to ONLINE
2020-04-14 15:12:10.725 [hingStatusInfoChangedEvent] - 'netatmo:NAModule3:d3dda569:0500000131f4' changed from OFFLINE: Pending parent object initialization to ONLINE
20
2020-04-14 15:14:19.889 [me.event.ThingUpdatedEvent] - Thing 'netatmo:netatmoapi:d3dda569' has been updated.

Found it. It was something simple - my Netatmo station coincidentally went offline around the time I started installing the binding. :roll_eyes: For some reason it lost its connection with the Wifi AP - had to reboot the AP and update the sw in the Netatmo base station to get everything working again.

1 Like