Netatmo Thermostat File Binding (netatmo.things)

Hi I’m trying to integrate the Netatmo thermostats. Unfortunately I can not get them online.
In the documentation there is no example how exactly to configure the thermostats / relays.

My netatmo.thins File looks as follows:

Bridge netatmo:account:home "Netatmo Account Dachsen" [clientId="xxx", clientSecret="xxx", refreshToken="xxx|xxx"] {
    Bridge weather-station inside "Inside Weather Station" @ "Livingroom" [id="aa:aa:aa:aa:aa:aa"] {
        Thing outdoor outside   "Outside Module" @ "Entrance" [id="02:00:00:03:51:44", parrentId="aa:aa:aa:aa:aa:aa"] {
            Channels:
                Type hum-measurement : maxHumWeek [limit="MAX",period="1week"]
        }
        Thing rain rainModule   "Rain Module" @ "Garden"   [id="bb:bb:bb:bb:bb:bb", parrentId="aa:aa:aa:aa:aa:aa"] {
            Channels:
                Type sum_rain-measurement: rainThisWeek  "Rain This Week"     [period="1week"]
                Type sum_rain-measurement: rainThisMonth "Rain This Month"    [period="1month"]
        }
        Thing indoor inside "Obergeschoss Modul" [id="cc:cc:cc:cc:cc:cc", parrentId="aa:aa:aa:aa:aa:aa"]{
        }
        

    Thing thermostat NATherm1  "Netatmo Thermostat1"   [ id="ee:ee:ee:ee:ee:ee"] <=(ist Thetmostat / Plug correct here?)
    Thing plug NARelay1 "Netatmo Relay1"               [ id="ff:ff:ff:ff:ff:ff" ]
    }

}

The state of Thermostat is UNKNOWN. The Mail Module works fine.
Does anyone have a working example of a netatmo.things file?

Your example above is incorrect. The plug is not a child of the weather station bridge.
In the last version of the binding, thermostat is hosted by a home. Here is the correct syntax :

Bridge netatmo:account:home "_ Netatmo API" @ "internet" [....] {
   home-coach  homecoach   "Home-Coach"       @ "living"     [id="...."]

   Bridge weather-station  weatherstation   "Station Météo" @  "couloirRdc" [id="..."] {
      indoor   modsupp   "Module Supp"      @ "bathroom"   [id="..."]
      rain     pluviom   "Pluviomètre"      @ "outside"    [id="..."]   
      outdoor  ext   "Module Extérieur" @ "outside"    [id="..."]
   }

   Bridge home security   "Sécurité" @ "house" [id="..."] {
      welcome  camera                     "Welcome"             @ "living"     [id="..."]
      presence exterieur                     "Presence"            @ "allee"      [id="..."]
      doorbell sonnette                     "Doorbell"            @ "portail"    [id="..."]
      smoke-detector fumee               "Détecteur de Fumée"  @ "couloirRdc" [id="..."]
   }

   Bridge home chauffage   "Netatmo Chauffage" @ "house" [id="...."] {
      Bridge plug     relai   "Relai Chaudière"  @  "pantry" [id="..."] {
         thermostat  salon "Netatmo Thermostat"      @ "living"  [id="..."]

         valve       bureau "Vanne Bureau"          @ "office"     [id="..."]
      }
      
      room  office   "Room Bureau"         @ "office"     [id="..."]
   }
}

If you want, and you’ll want it, to find home Ids, you can trigger a discovery from the UI.

Hi glhopital

Thanks for replay. Thermostat and plug goes now online.

    Bridge home heating "Netatmo Heating Home" @ "Home" [id="12345678901234567890"] {
        Bridge plug  relayfitness   "relayFitness"  @  "Techroom" [id="ee:ee:ee:ee:ee:ee"] {
            Thing thermostat  thermostatFitness1 "Thermostat Fitness"      @ "Fitness"  [id="00:00:00:00:00:00]
        }
        Thing room  roomfitness   "Fitnessraum"         @ "Fitness"     [id="1111111111"] 
    }

But the room Thing is strange. I get the room id 1111111111 from ui discovery but i get error as follow

10:35:23.614 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'netatmo:room:home:heating:roomfitness' changed from OFFLINE: Thing is not reachable to ONLINE
10:35:23.618 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'netatmo:room:home:heating:roomfitness' changed from ONLINE to OFFLINE: Thing is not reachable
10:35:28.185 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'netatmo:room:home:heating:roomfitness' changed from OFFLINE: Thing is not reachable to ONLINE
10:35:28.190 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'netatmo:room:home:heating:roomfitness' changed from ONLINE to OFFLINE: Thing is not reachable
10:35:38.484 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'netatmo:room:home:heating:roomfitness' changed from OFFLINE: Thing is not reachable to ONLINE
10:35:38.490 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'netatmo:room:home:heating:roomfitness' changed from ONLINE to OFFLINE: Thing is not reachable
10:35:41.772 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'netatmo:room:home:heating:roomfitness' changed from OFFLINE: Thing is not reachable to ONLINE
10:35:41.776 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'netatmo:room:home:heating:roomfitness' changed from ONLINE to OFFLINE: Thing is not reachable
10:35:53.216 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'netatmo:room:home:heating:roomfitness' changed from OFFLINE: Thing is not reachable to ONLINE
10:35:53.220 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'netatmo:room:home:heating:roomfitness' changed from ONLINE to OFFLINE: Thing is not reachable
10:36:01.283 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'netatmo:room:home:heating:roomfitness' changed from OFFLINE: Thing is not reachable to ONLINE
10:36:01.287 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'netatmo:room:home:heating:roomfitness' changed from ONLINE to OFFLINE: Thing is not reachable
10:36:02.893 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'netatmo:room:home:heating:roomfitness' changed from OFFLINE: Thing is not reachable to ONLINE
10:36:02.897 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'netatmo:room:home:heating:roomfitness' changed from ONLINE to OFFLINE: Thing is not reachable
10:36:03.870 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'netatmo:room:home:heating:roomfitness' changed from OFFLINE: Thing is not reachable to ONLINE
10:36:03.874 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'netatmo:room:home:heating:roomfitness' changed from ONLINE to OFFLINE: Thing is not reachable
10:36:12.859 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'netatmo:room:home:heating:roomfitness' changed from OFFLINE: Thing is not reachable to ONLINE
10:36:12.863 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'netatmo:room:home:heating:roomfitness' changed from ONLINE to OFFLINE: Thing is not reachable

Any Ideas.

I think you face the same issue as described here. The thing is I do not reproduce it, so for now this issue is stalled.

Gael, could you please include the example for the energy stuff in the documentation?
I see a lot of users lost.
Ok, some users are even not reading the doc, but at least we could redirect them to it.

1 Like

I proposed to extend the example:

I can also add that there is another pending PR that will help to show the hierarchy of thing to create (this will be a console command to run).