Modul: Netatmo

Das ist doch angeblich die alte URL unter der das Modul nicht mehr weiterentwickelt wird.

Das hier soll doch die richtige sein, oder?

Keine Ahnung welche da richtig ist, aber es gibt sogar noch ein ganz anderes Modul :wink:
NetatmoWeather

Michael

Kann man die NEtamo Module eigentlich einzeln betreiben und die Daten in IPS einbinden, oder braucht man dazu immer diese Wetterstation als Zentraleinheit?

Ja, man braucht immer die Zentraleinheit. Die fragt die Module per Funk ab und überträgt die Daten an die Netatmo-Server, von dort werden sie von der IPS-Integration abgerufen. Ist also nicht lokal, sondern immer Sensor - Basis - CloudServer

Guten Abend,

seit dem letzen Update von Symcon (zumindestens kommt es mir so vor) bekomme ich immer Fehlermeldungen:

Was könnte das Problem sein?

lg
Danke

und ich hier die fehlermeldung:

<br />
<b>Notice</b>: Undefined index: module_name in <b>C:\ProgramData\Symcon\modules.store\demel42.netatmo.weather\NetatmoWeatherDevice\module.php</b> on line <b>407</b><br />
{„elements“:[{„type“:„Label“,„caption“:„Netatmo Weatherstation“},{„type“:„ExpansionPanel“,„items“:[{„type“:„ValidationTextBox“,„name“:„station_id“,„caption“:„Station-ID“}],„caption“:„Basic configuration (don’t change)“},{„type“:„ExpansionPanel“,„items“:[{„type“:„NumberSpinner“,„name“:„station_altitude“,„caption“:„Altitude“},{„type“:„NumberSpinner“,„digits“:5,„name“:„station_longitude“,„caption“:„Longitude“},{„type“:„NumberSpinner“,„digits“:5,„name“:„station_latitude“,„caption“:„Latitude“}],„caption“:„station data“},{„type“:„ExpansionPanel“,„items“:[{„type“:„CheckBox“,„name“:„with_last_contact“,„caption“:„last transmission to Netatmo“},{„type“:„CheckBox“,„name“:„with_status_box“,„caption“:„html-box with state of station and modules“},{„type“:„CheckBox“,„name“:„with_signal“,„caption“:„Wifi-Signal“}],„caption“:„optional station data“},{„type“:„ExpansionPanel“,„items“:[{„type“:„Label“,„caption“:„alternate script to use for …“},{„type“:„SelectScript“,„name“:„statusbox_script“,„caption“:" … „StatusBox“"},{„type“:„SelectScript“,„name“:„webhook_script“,„caption“:" … Webhook"},{„type“:„Label“,„caption“:„Duration until the connection to netatmo or between stations is marked disturbed“},{„type“:„NumberSpinner“,„name“:„minutes2fail“,„caption“:„Minutes“}],„caption“:„Processing information“},{„type“:„ExpansionPanel“,„items“:[{„type“:„Label“,„caption“:„Konfiguration to update Wunderground (only if filled)“},{„type“:„Label“,„caption“:„Wunderground Access-Details from https://www.wunderground.com/personal-weather-station/mypws"},{„type“:„ValidationTextBox“,„name“:„Wunderground_ID“,„caption“:"Station ID“},{„type“:„ValidationTextBox“,„name“:„Wunderground_Key“,„caption“:„Station Key“}],„caption“:„Wunderground“},{„type“:„ExpansionPanel“,„items“:[{„type“:„Label“,„caption“:„category for modules to be created:“},{„name“:„ImportCategoryID“,„type“:„SelectCategory“,„caption“:„category“},{„type“:„Configurator“,„name“:„Modules“,„caption“:„available modules“,„rowCount“:4,„add“:false,„delete“:false,„columns“:[{„caption“:„Name“,„name“:„name“,„width“:„auto“},{„caption“:„Type“,„name“:„module_desc“,„width“:„200px“},{„caption“:„Id“,„name“:„module_id“,„width“:„200px“}],„values“:[{„name“:„Innen“,„module_desc“:„Basismodul“,„module_id“:„70:ee:50:58:bc:ba“,„instanceID“:0,„create“:{„moduleID“:"{1023DB4A-D491-A0D5-17CD-380D3578D0FA}",„location“:,„info“:„Basismodul (Becker\Innen)“,„configuration“:{„module_id“:„70:ee:50:58:bc:ba“,„module_type“:„NAMain“,„station_id“:„70:ee:50:58:bc:ba“}}},{„name“:null,„module_desc“:„Au\u00dfenmodul“,„module_id“:„02:00:00:5f:61:d6“,„instanceID“:0,„create“:{„moduleID“:"{1023DB4A-D491-A0D5-17CD-380D3578D0FA}",„location“:,„info“:„Au\u00dfenmodul (Becker\)“,„configuration“:{„module_id“:„02:00:00:5f:61:d6“,„module_type“:„NAModule1“,„station_id“:„70:ee:50:58:bc:ba“}}},{„name“:„wasser1“,„module_desc“:„Regenmesser“,„module_id“:„05:00:00:06:ca:0e“,„instanceID“:0,„create“:{„moduleID“:"{1023DB4A-D491-A0D5-17CD-380D3578D0FA}",„location“:,„info“:„Regenmesser (Becker\wasser1)“,„configuration“:{„module_id“:„05:00:00:06:ca:0e“,„module_type“:„NAModule3“,„station_id“:„70:ee:50:58:bc:ba“}}},{„name“:„wind“,„module_desc“:„Windmesser“,„module_id“:„06:00:00:04:47:4e“,„instanceID“:0,„create“:{„moduleID“:"{1023DB4A-D491-A0D5-17CD-380D3578D0FA}",„location“:,„info“:„Windmesser (Becker\wind)“,„configuration“:{„module_id“:„06:00:00:04:47:4e“,„module_type“:„NAModule2“,„station_id“:„70:ee:50:58:bc:ba“}}}]}],„caption“:„Modules“}],„actions“:,„status“:[{„code“:101,„icon“:„inactive“,„caption“:„Instance getting created“},{„code“:102,„icon“:„active“,„caption“:„Instance is active“},{„code“:103,„icon“:„inactive“,„caption“:„Instance is deleted“},{„code“:104,„icon“:„inactive“,„caption“:„Instance is inactive“},{„code“:105,„icon“:„inactive“,„caption“:„Instance is not created“},{„code“:201,„icon“:„error“,„caption“:„Instance is inactive (no data)“},{„code“:202,„icon“:„error“,„caption“:„Instance is inactive (unauthorized)“},{„code“:203,„icon“:„error“,„caption“:„Instance is inactive (forbidden)“},{„code“:204,„icon“:„error“,„caption“:„Instance is inactive (server error)“},{„code“:205,„icon“:„error“,„caption“:„Instance is inactive (http error)“},{„code“:206,„icon“:„error“,„caption“:„Instance is inactive (invalid data)“},{„code“:207,„icon“:„error“,„caption“:„Instance is inactive (no station)“},{„code“:208,„icon“:„error“,„caption“:„Instance is inactive (station missing)“},{„code“:209,„icon“:„error“,„caption“:„Instance is inactive (invalid config)“},{„code“:210,„icon“:„error“,„caption“:„Instance is inactive (no Symcon-Connect)“},{„code“:211,„icon“:„error“,„caption“:„Instance is inactive (not logged in)“}]} (Code: -32603)

hmpf kann da wer helfen?

Hallo,

ich habe das gleiche Problem und ich hatte hier einen Post geöffnet, der kann gerne hierhin verschoben werden:

Netatmo Modul läuft auf einen Fehler

VG

fussi24

ich habe das leider erst gerade gesehen. besteht der fehler immer noch?
wenn ja, wie hast du ihn reproduziert?
welche modul-version setzte du ein?

demel

Ich muss das Thema hier leider nochmal auf machen.

Habe Probleme mit dem Netatmo Modul für die Wetterstation. Habe eine neue Testinstanz aufgesetzte und dort das Modul installiert.

Habe mal das Debug hier angehängt (meine login daten habe ich mit xxxx überschrieben.

Hat jemand vielleicht eine Idee warum die Anmeldung nicht klappt?

TXT: 08/04/2023, 07:06:27 PM |           UpdateData | 
HEX: 08/04/2023, 07:06:27 PM |           UpdateData | 
TXT: 08/04/2023, 07:06:27 PM |    GetApiAccessToken | connection-type changed
HEX: 08/04/2023, 07:06:27 PM |    GetApiAccessToken | 63 6F 6E 6E 65 63 74 69 6F 6E 2D 74 79 70 65 20 63 68 61 6E 67 65 64 
TXT: 08/04/2023, 07:06:27 PM |       do_HttpRequest | http-POST: url=https://api.netatmo.net/oauth2/token
HEX: 08/04/2023, 07:06:27 PM |       do_HttpRequest | 68 74 74 70 2D 50 4F 53 54 3A 20 75 72 6C 3D 68 74 74 70 73 3A 2F 2F 61 70 69 2E 6E 65 74 61 74 6D 6F 2E 6E 65 74 2F 6F 61 75 74 68 32 2F 74 6F 6B 65 6E 
TXT: 08/04/2023, 07:06:27 PM |       do_HttpRequest |     postdata=Array<LF>(<LF>    [grant_type] => password<LF>    [client_id] => xxxx<LF>    [client_secret] => xxxx<LF>    [username] => xxxx<LF>    [password] => xxxx<LF>    [scope] => read_station<LF>)<LF>
HEX: 08/04/2023, 07:06:27 PM |       do_HttpRequest | 20 20 20 20 70 6F 73 74 64 61 74 61 3D 41 72 72 61 79 0A 28 0A 20 20 20 20 5B 67 72 61 6E 74 5F 74 79 70 65 5D 20 3D 3E 20 70 61 73 73 77 6F 72 64 0A 20 20 20 20 5B 63 6C 69 65 6E 74 5F 69 64 5D 20 3D 3E 20 36 34 63 64 32 64 63 34 32 65 66 32 61 32 66 65 62 37 30 66 39 63 33 64 0A 20 20 20 20 5B 63 6C 69 65 6E 74 5F 73 65 63 72 65 74 5D 20 3D 3E 20 52 76 34 64 43 4B 59 31 79 30 6C 70 4F 73 4F 71 4B 41 31 41 64 78 6A 73 4B 6E 70 63 79 62 69 4C 51 54 0A 20 20 20 20 5B 75 73 65 72 6E 61 6D 65 5D 20 3D 3E 20 77 69 72 40 66 61 6D 69 6C 69 65 67 69 65 73 65 2E 63 6F 6D 0A 20 20 20 20 5B 70 61 73 73 77 6F 72 64 5D 20 3D 3E 20 6E 67 79 46 68 6E 4A 38 47 75 4B 6A 6B 37 62 47 21 0A 20 20 20 20 5B 73 63 6F 70 65 5D 20 3D 3E 20 72 65 61 64 5F 73 74 61 74 69 6F 6E 0A 29 0A 
TXT: 08/04/2023, 07:06:27 PM |       do_HttpRequest |  => errno=0, httpcode=400, duration=0.08s
HEX: 08/04/2023, 07:06:27 PM |       do_HttpRequest | 20 3D 3E 20 65 72 72 6E 6F 3D 30 2C 20 68 74 74 70 63 6F 64 65 3D 34 30 30 2C 20 64 75 72 61 74 69 6F 6E 3D 30 2E 30 38 73 
TXT: 08/04/2023, 07:06:27 PM |       do_HttpRequest |     cdata={"error":"unauthorized_client"}
HEX: 08/04/2023, 07:06:27 PM |       do_HttpRequest | 20 20 20 20 63 64 61 74 61 3D 7B 22 65 72 72 6F 72 22 3A 22 75 6E 61 75 74 68 6F 72 69 7A 65 64 5F 63 6C 69 65 6E 74 22 7D 
TXT: 08/04/2023, 07:06:27 PM |       do_HttpRequest |     statuscode=214, err=got http-code 400
HEX: 08/04/2023, 07:06:27 PM |       do_HttpRequest | 20 20 20 20 73 74 61 74 75 73 63 6F 64 65 3D 32 31 34 2C 20 65 72 72 3D 67 6F 74 20 68 74 74 70 2D 63 6F 64 65 20 34 30 30 
TXT: 08/04/2023, 07:06:27 PM |       do_HttpRequest |     data=
HEX: 08/04/2023, 07:06:27 PM |       do_HttpRequest | 20 20 20 20 64 61 74 61 3D 
TXT: 08/04/2023, 07:06:27 PM |    GetApiAccessToken | got http-code 400
HEX: 08/04/2023, 07:06:27 PM |    GetApiAccessToken | 67 6F 74 20 68 74 74 70 2D 63 6F 64 65 20 34 30 30 
TXT: 08/04/2023, 07:06:27 PM |       MaintainStatus | change status to 214(Instance is inactive (http error))
HEX: 08/04/2023, 07:06:27 PM |       MaintainStatus | 63 68 61 6E 67 65 20 73 74 61 74 75 73 20 74 6F 20 32 31 34 28 49 6E 73 74 61 6E 63 65 20 69 73 20 69 6E 61 63 74 69 76 65 20 28 68 74 74 70 20 65 72 72 6F 72 29 29 
TXT: 08/04/2023, 07:06:27 PM |        MaintainTimer | timer=UpdateData(15), interval=1h, next=20:06:27
HEX: 08/04/2023, 07:06:27 PM |        MaintainTimer | 74 69 6D 65 72 3D 55 70 64 61 74 65 44 61 74 61 28 31 35 29 2C 20 69 6E 74 65 72 76 61 6C 3D 31 68 2C 20 6E 65 78 74 3D 32 30 3A 30 36 3A 32 37 
TXT: 08/04/2023, 07:06:35 PM |          CheckUpdate | equal version (old=1.36.3 (12.10.2022 14:44:34), new=1.36.3 (12.10.2022 14:44:34))
HEX: 08/04/2023, 07:06:35 PM |          CheckUpdate | 65 71 75 61 6C 20 76 65 72 73 69 6F 6E 20 28 6F 6C 64 3D 31 2E 33 36 2E 33 20 28 31 32 2E 31 30 2E 32 30 32 32 20 31 34 3A 34 34 3A 33 34 29 2C 20 6E 65 77 3D 31 2E 33 36 2E 33 20 28 31 32 2E 31 30 2E 32 30 32 32 20 31 34 3A 34 34 3A 33 34 29 29 
TXT: 08/04/2023, 07:06:35 PM |        MaintainTimer | timer=UpdateData(15), interval=-
HEX: 08/04/2023, 07:06:35 PM |        MaintainTimer | 74 69 6D 65 72 3D 55 70 64 61 74 65 44 61 74 61 28 31 35 29 2C 20 69 6E 74 65 72 76 61 6C 3D 2D 
TXT: 08/04/2023, 07:06:35 PM |       MaintainStatus | change status to 104(Instance is inactive)
HEX: 08/04/2023, 07:06:35 PM |       MaintainStatus | 63 68 61 6E 67 65 20 73 74 61 74 75 73 20 74 6F 20 31 30 34 28 49 6E 73 74 61 6E 63 65 20 69 73 20 69 6E 61 63 74 69 76 65 29 
TXT: 08/04/2023, 07:06:35 PM |         InstanceInfo | module=NetatmoWeatherIO, version=1.36.3, date=12.10.2022 14:44:34, source=ModuleStore
HEX: 08/04/2023, 07:06:35 PM |         InstanceInfo | 6D 6F 64 75 6C 65 3D 4E 65 74 61 74 6D 6F 57 65 61 74 68 65 72 49 4F 2C 20 76 65 72 73 69 6F 6E 3D 31 2E 33 36 2E 33 2C 20 64 61 74 65 3D 31 32 2E 31 30 2E 32 30 32 32 20 31 34 3A 34 34 3A 33 34 2C 20 73 6F 75 72 63 65 3D 4D 6F 64 75 6C 65 53 74 6F 72 65 
TXT: 08/04/2023, 07:06:35 PM |            Translate | unable to translate "Instance"
HEX: 08/04/2023, 07:06:35 PM |            Translate | 75 6E 61 62 6C 65 20 74 6F 20 74 72 61 6E 73 6C 61 74 65 20 22 49 6E 73 74 61 6E 63 65 22 

siehe NetatmoWeather

Seite heute früh habe ich Probleme mit dem Aussenmodul.

Es sendet zwar den Status Batterie und Signal, aber sonst nichts mehr.

Diese Meldung kommt auch sehr oft:

Das bedeutet, das (aus Sicht vom Netatmo-Server) das Aussenmodul keine Daten mehr an das Innenmodul kommuniziert und damit auch keine Daten vorliegen.
Müsste dann auch in der Netatmo-App keine aktuellen Daten des Aussenmoduls geben.
So eine richtuge Idee habe ich auch nicht ausser dem üblichen Batterie raus (aus dem Aussenmodul) und nach Gedächtnispauser wieder einsetzen. Netatmo empfiehlt dann auch kerne, das jew. Modul mal näher an das Innenmodul zu bringen.
Ich hatte vor Jahren mal eine Glückssträhne, wo das Wind- und Regenmodul alle naselang nicht erreichbar waren. Hatte sich irgendwann nach vielen Resets und Versuchen in Luft aufgelöst.

1 „Gefällt mir“

Ich gabe gerade erst letzte Woche die Akkus getauscht. Werds nochmal rausnehmen und etwas näher positionieren. Komisch ist aber wie geschrieben, das es die Werte Signalstärke und Batterie sendet…

Funktioniert es bei dir mit Akkus mit 1.2V?
Bei mir wollte die Aussenstation nur Batterien (1.5V), inzwischen ist sie aber ganz ausgefallen.

Ja Volker. Ich habe sie sicher schon mindestens 8 Jahre denke ich.
Aussenstation und Innensensoren immer mit Akkus. Nur den Windmesser habe ich mit Batterien Durcaell ausgestattet. lg

1 „Gefällt mir“

Hi,

I try to connect to Netatmo, but the “Yes, I accept” button is coming back all the time. No message “successfully connected” appears.

Is this a known problem, do I something wrong, is there another way to connect the module tot Netatmo ??

Thanks

Albert

Yes, this is a known problem, Netatmo changed a few things.

There is a workaround using the NetatmoWeather module by demel42, as described here

Basically you need the latest version of NetatmoWeather module, use connection type developer account (!) with username/password authentication for the module and then create a token in your Netatmo developer account that you enter into the module once. Sounds complicated, but many of us already used that method described in the link above and it works. Hope you can get the thread translated somehow.

Hi,

Thank you, finally figured out how this works. I am now receiving data.

It was not clear to me that you had to create an App yourself in dev.netatmo.com, and that you later had to create the Refresh token with the Token generator. After entering the codes you have to wait a while before data arrives.

But ultimately I now see the data and we can process it nicely in Symcon.

Albert

@demel42 Von netatmo kam gerade eine Mail mit dem unten angehängten Text. Wird der bisherige Workaround damit hinfällig oder funktioniert er weiterhin?

Viele Grüße
Volker


This is a reminder regarding our authentication update following the release initially planned for last fall which we decided to postpone in order to give our users more time.

Dear Netatmo developer,

Today , when you refresh an Access Token using the associated endpoint https://api.netatmo.com/oauth2/token, the Netatmo servers respond with a pair of tokens: an Access Token and a Refresh Token.

If the previous Access Token is still valid, the newly returned access token is identical but has an expiration time extended by 3 hours.

The Refresh Token is not renewed.
Starting May 29, 2024 , this behavior will change to comply with the [OAuth2 Authorization Framework RFC recommendations (section 10.4)] and improve the security of our users’ data.

When refreshing the tokens, the Access Token and Refresh Token will be different from the previous ones and the old tokens will be invalidated.
What does this mean for you?

If you already store the tokens returned by the API when refreshing your tokens, this change will not affect you.

If you do not update the tokens when refreshing them, your users will be logged out because the old tokens will be invalidated.

If for a given user, you have stored the same token in different places (for example: an application and its widget), you must have a way to synchronize them because the new token will be applied for the entire application.

Ich gehe davon aus, das es weiter funktioniert, da ich mich bisher schon so verhalten habe (nach einem TokenRefresh nur den neuen Token benutzen).

Nein, mit dem Workaround hat das nichts zu tun

1 „Gefällt mir“