[73_GardenaSmartBridge, 74_GardenaSmartDevice] - Module für Gardena Smart System

Begonnen von CoolTux, 05 August 2017, 23:17:06

Vorheriges Thema - Nächstes Thema

jupzup

Hi hier ein List:

Internals:
   BRIDGE     1
   FUUID      5cc9b4f3-f33f-920c-c647-5bd91c0fd8a25b45
   INTERVAL   100
   NAME       GardenaSmart
   NOTIFYDEV  global,GardenaSmart
   NR         65
   NTFY_ORDER 50-GardenaSmart
   STATE      get token
   TYPE       GardenaSmartBridge
   URL        https://sg-api.dss.husqvarnagroup.net/sg-1
   VERSION    v2.0.4
   READINGS:
     2019-05-07 21:01:44   address         xxx xxx, xxx xxx, Deutschland
     2019-05-07 21:01:44   authorized_user_ids 0
     2021-02-16 19:13:20   category-id     0121410e-dde2-3c47-8f2f-211d7b1a430c
     2019-06-14 15:21:30   category-name   category
     2019-06-14 15:21:30   category-value  gateway
     2019-06-14 15:21:30   category-writeable 0
     2019-05-07 21:01:44   city            xxx
     2021-02-16 19:13:20   connection_status-id 5bbd6ce6-e2bf-3542-bc96-980ad1d6688a
     2019-06-14 15:21:30   connection_status-name connection_status
     2021-03-09 12:16:07   connection_status-timestamp 2021-03-09T11:16:07.637Z
     2021-02-27 15:23:21   connection_status-value online
     2019-06-14 15:21:30   connection_status-writeable 0
     2019-05-07 21:01:44   devices         2
     2021-02-16 19:13:20   ethernet_status-id 528af6ea-c113-3b1a-8af8-ee2b19dddfc4
     2019-06-14 15:21:30   ethernet_status-isconnected false
     2019-06-14 15:21:30   ethernet_status-mac 94:BB:AE:00:A8:94
     2020-05-05 06:57:16   ethernet_status-name ethernet_status
     2021-03-09 12:16:07   ethernet_status-value HASH(0x3d457a8)
     2020-05-05 06:57:16   ethernet_status-writeable 0
     2019-05-07 21:01:44   gateway_time_zone Europe/Berlin
     2020-11-01 03:04:39   gateway_time_zone_offset 3600000
     2019-05-07 21:01:44   id              40cae63b-2737-4388-9be1-f641047ce95a
     2021-03-03 05:05:18   lastRequestState request_error
     2021-02-16 19:13:20   last_time_online-id 410de368-908b-3566-9587-8c1f3f0b5ea9
     2019-06-14 15:21:30   last_time_online-name last_time_online
     2019-06-14 15:21:30   last_time_online-value N/A
     2019-06-14 15:21:30   last_time_online-writeable 0
     2019-05-07 21:01:44   latitude        50.8233586
     2019-05-07 21:01:44   longitude       6.80041670000003
     2021-02-16 19:13:20   manufacturer-id 3113fe52-922d-3a08-a6b4-7a3075c61db9
     2019-06-14 15:21:30   manufacturer-name manufacturer
     2019-06-14 15:21:30   manufacturer-value Seluxit
     2019-06-14 15:21:30   manufacturer-writeable 0
     2019-05-07 21:01:44   name            My Garden
     2021-02-16 19:13:20   product-id      e657577e-ed56-34ff-9ea4-dc942544f7c9
     2019-06-14 15:21:30   product-name    product
     2019-06-14 15:21:30   product-value   1-GATEWAY
     2019-06-14 15:21:30   product-writeable 0
     2021-02-16 19:13:20   serial_number-id f611b739-375c-3582-9055-c0d392a97cb5
     2019-06-14 15:21:30   serial_number-name serial_number
     2019-06-14 15:21:30   serial_number-value N/A
     2019-06-14 15:21:30   serial_number-writeable 0
     2021-02-16 19:13:20   sgtin-id        de296084-eea5-3f0e-aea6-3849ed37d407
     2019-06-14 15:21:30   sgtin-name      sgtin
     2019-06-14 15:21:30   sgtin-value     N/A
     2019-06-14 15:21:30   sgtin-writeable 0
     2021-03-10 06:49:59   state           get token
     2021-03-01 05:46:48   sunrise         07:18
     2021-03-01 05:46:48   sunset          18:13
     2019-05-07 21:01:44   time_zone       Europe/Berlin
     2020-11-01 03:04:39   time_zone_offset 3600000
     2021-03-10 06:49:57   token           none
     2021-02-16 19:13:20   version-id      6cff1f08-0b55-3222-9aec-bc806960764f
     2019-06-14 15:21:30   version-name    version
     2021-02-16 23:38:05   version-value   2.26.0
     2019-06-14 15:21:30   version-writeable 0
     2021-02-16 19:13:20   wifi_status-id  baf56190-9587-3d98-87f8-3b19a066b802
     2021-02-16 23:38:05   wifi_status-ip  192.168.179.36
     2021-02-16 23:38:05   wifi_status-isconnected true
     2019-06-14 15:21:30   wifi_status-mac 00:1D:43:D0:13:99
     2020-05-05 06:57:16   wifi_status-name wifi_status
     2021-02-16 23:38:05   wifi_status-signal 94%
     2021-03-09 12:16:07   wifi_status-ssid HASH(0x3d37f30)
     2021-03-09 12:16:07   wifi_status-value HASH(0x3d56ee8)
     2020-05-05 06:57:16   wifi_status-writeable 0
     2019-05-07 21:01:44   zones           0
   helper:
Attributes:
   alias      GardenaSmart
   gardenaAccountEmail xxx
   interval   100
   room       GardenaSmart
   verbose    5

CoolTux

lösch mal bitte das Bridge device und lege es dann komplett neu an. Vorher am besten noch das Passwort löschen über set MYBRIDGE deletePass...
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

TimoD

Bei mir gleiches Problem, wenn ich das Device neu erstelle kommt nichts, er bekommt auch keinen Token,....

CoolTux

Die scheinen das ganze Portal umgestellt zu haben.
Macht mal bitte ein update, wie gesagt vorher das Repository hinzufügen als neuen Updatechannel.
Und dann brauche ich die Logausgaben.
GardenaSmartBridge (NAME) - Daten:
GardenaSmartBridge (NAME) - Error:
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

TimoD

Zitat von: CoolTux am 10 März 2021, 16:15:45
Die scheinen das ganze Portal umgestellt zu haben.
Macht mal bitte ein update, wie gesagt vorher das Repository hinzufügen als neuen Updatechannel.
Und dann brauche ich die Logausgaben.
GardenaSmartBridge (NAME) - Daten:
GardenaSmartBridge (NAME) - Error:

update habe ich gemacht, blöde Frage wie mache ich eine Log Ausgabe / bzw. was muss ich hierfür wo einstellen?


UPDATE:

Nach dem Update kommt:
"Cannot load module GardenaSmartBridge" Bridge ist auch verschwunden

Update habe ich mit "update FHEM/73_GardenaSmartBridge.pm"
"update FHEM/74_GardenaSmartDevice.pm" durchgeführt

danach shutdown restart

CoolTux

Sorry mein Fehler.

Bitte noch mal update machen und dann neustart.
Logausgabe findest Du unter
/opt/fhem/log/fhem-2021-***
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

TimoD

Okay, Update ausgeführt.

Im Log steht:


2021.03.10 17:59:21 3: GardenaSmartBridge (mygardenaBridge) - send credentials to fetch Token and locationId
2021.03.10 17:59:22 1: GardenaSmartBridge (mygardenaBridge) - Daten: {"message": "This API has moved to the official developer portal. Please follow the instructions at https://developer.husqvarnagroup.cloud"}
2021.03.10 17:59:22 3: GardenaSmartBridge (mygardenaBridge) - no Match for processing data

Commander111

Scheint ein Problem bei Gardena vorzuliegen. Ich habe seit ein paar Tagen keine Verbindung mehr und die mittlere LED am Gardena-Gateway leuchtet auch nicht. Jegliche Neustarts und neues setzen von Passwörtern hilft nicht weiter.
Ich bin gespannt ob ihr eine Lösung findet.


jupzup

Also das Gateway funktioniert bei mir über die App weiterhin ohne Probleme.

Das Log gibt nicht viel her:
2021-03-09_16:08:43 Water_Control send command to gardena cloud
2021-03-09_18:24:41 Water_Control send command to gardena cloud
2021-03-09_18:25:18 Water_Control send command to gardena cloud
2021-03-09_18:30:28 Water_Control send command to gardena cloud
2021-03-09_18:49:05 Water_Control send command to gardena cloud
2021-03-10_16:21:42 Water_Control send command to gardena cloud
2021-03-10_16:34:49 Water_Control send command to gardena cloud
2021-03-10_16:45:21 Water_Control send command to gardena cloud
2021-03-10_16:49:32 Water_Control send command to gardena cloud
2021-03-10_17:05:38 Water_Control send command to gardena cloud


Hier noch das normale Log:

2021.03.10 17:59:40 3: GardenaSmartBridge (GardenaSmart) - defined GardenaSmartBridge
2021.03.10 17:59:40 3: GardenaSmartBridge (GardenaSmart) - set interval: 100
2021.03.10 17:59:41 3: GardenaSmartDevice (Water_Control) - I/O device is GardenaSmart
2021.03.10 17:59:41 3: GardenaSmartDevice (Water_Control) - defined GardenaSmartDevice with DEVICEID: f2e74044-9ff2-4db0-97ef-2dc75fba9817
2021.03.10 17:59:42 4: GardenaSmartBridge (GardenaSmart) - Read password from file
2021.03.10 17:59:42 4: GardenaSmartBridge (GardenaSmart) - Read password from file
2021.03.10 17:59:42 4: GardenaSmartBridge (GardenaSmart) - Send with URL: https://sg-api.dss.husqvarnagroup.net/sg-1/sessions, HEADER: secret!, DATA: secret!, METHOD: POST
2021.03.10 17:59:42 3: GardenaSmartBridge (GardenaSmart) - send credentials to fetch Token and locationId
2021.03.10 17:59:50 1: GardenaSmartBridge (GardenaSmart) - Daten: {"message": "This API has moved to the official developer portal. Please follow the instructions at https://developer.husqvarnagroup.cloud"}
2021.03.10 17:59:50 3: GardenaSmartBridge (GardenaSmart) - no Match for processing data
2021.03.10 18:00:02 4: GardenaSmartBridge (GardenaSmart) - Read password from file
2021.03.10 18:00:02 4: GardenaSmartBridge (GardenaSmart) - Read password from file
2021.03.10 18:00:02 4: GardenaSmartBridge (GardenaSmart) - Read password from file


Da steht ja etwas das die API auf ein anderes Portal gezogen wurde.

CoolTux

Steht ja da was los ist

Daten: {"message": "This API has moved to the official developer portal. Please follow the instructions at https://developer.husqvarnagroup.cloud"}

Es muss sich also darum gekümmert werden was nun geändert werden muss und wie.

Ich habe aktuell sehr sehr wenig bis gar keine Zeit. Das wird sich wohl hinziehen ohne Unterstützung. Wer helfen will kann sich sehr gerne bei mir melden und bekommt dann einen Zugang zu meinem Git Server.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

TimoD

Mir fehlen leider die Programmierskills. Konntest du Dir denn ein Bild davon machen, ob sich viel in der API geändert hat, also ob es komplett neu programmiert werden muss oder ob ggf. nur der Server gewechselt wurde?

CoolTux

Zitat von: TimoD am 10 März 2021, 18:23:59
Mir fehlen leider die Programmierskills. Konntest du Dir denn ein Bild davon machen, ob sich viel in der API geändert hat, also ob es komplett neu programmiert werden muss oder ob ggf. nur der Server gewechselt wurde?

Noch nicht. Ich schaue es mir die Tage an
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Det20

Bei mir geht auch nix mehr, selbes Problem.
@CoolTux: Falls es hilft, meine PHP von Eintrag #741 funktioniert ohne Änderung.

CoolTux

Zitat von: Det20 am 11 März 2021, 10:31:21
Bei mir geht auch nix mehr, selbes Problem.
@CoolTux: Falls es hilft, meine PHP von Eintrag #741 funktioniert ohne Änderung.

https://git.cooltux.net/FHEM/mod-GardenaSmart/issues/4
Alles weitere muss ich schauen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net