New innogy binding beta with support for API1.1 for OH 2.4.0

Tags: #<Tag:0x00007f38702b9a58>

Hi,

as innogy will soon turn off their API 1.0, I built a new version for API 1.1, which is now in a beta state and ready to test. I would really love to see people with a lot of different devices support by simply testing, if all devices still work.

Prerequisites

  • This binding is a 2.4.0 binding and not compatible with current 2.5.0 snapshots.
  • Other brands than innogy like StartSmarthome have been removed. They all now run under the innogy brand. They should automatically switch, but if not, please always mention the different brand if you report bugs here.

Download

Currently supported devices (and test status)

  • Analog Meter (EnergyControl) - UNTESTED
  • Basic Remote Controller (BRC8) - tested, TRIGGERS NOK?
  • Generation Meter (PowerControlSolar) - UNTESTED
  • In wall Smart Controller (ISC2) - UNTESTED
  • In wall Smart Dimmer (ISD2) - tested, TRIGGERS NOK?
  • In wall Smart Roller Shutter (ISR2) - tested, TRIGGERS NOK?
  • In wall Smart Switch (ISS2) - tested, TRIGGERS NOK?
  • innogy SmartHome Controller (SHC / SHCA) - tested OK (no SHC2 discovery yet)
  • Pluggable Smart Dimmer (PSD) - tested OK
  • Pluggable Smart Switch (PSS) - tested OK
  • Pluggable Smart Switch Outdoor (PSSO) - UNTESTED
  • Radiator mounted Smart Thermostat (RST) - tested OK
  • Radiator mounted Smart Thermostat (RST2) - UNTESTED
  • Smart Meter (PowerControl) - UNTESTED
  • Two-Way-Meter (PowerControlSolar) - UNTESTED
  • Variable Actuator - tested OK
  • Wall mounted Door/Window Sensor (WDS) - tested OK
  • Wall mounted Motion Detector Indoor (WMD) - tested OK
  • Wall mounted Motion Detector Outdoor (WMDO) - tested OK
  • Wall mounted Room Thermostat (WRT) - UNTESTED
  • Wall mounted Smart Controller (WSC2) - tested OK
  • Wall mounted Smoke Detector (WSD) - tested OK
  • Wall mounted Smoke Detector (WSD2) - UNTESTED

So have fun! :space_invader:

1 Like

Hi @oliver_kuhl, keep up the good work… I’ll test this version and will let you know my findings (I own innogy SHC v1 and 7 innogy RSTs)

Hi Ollie,

I tried the new binding several times with innogy smarthome controller version 2 and openHAB version 2.4 and got still the error “Offline-Communication_Error”.

Best greetings an thank you for your work.

PJH

Please set loglevel to DEBUG or even TRACE and send me the relevant log entries, please. And be aware that in you don’t post your auth tokens as they will be written to TRACE log as well…

Hello Ollie, thank you for answering. I don’t know how to send log entries, its this way the correct one?

Best regards. PJH

18:25:57.283 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:WDS:72a59a17:ngyWDS3bb27’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

18:25:57.283 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘mqtt:topic:embedded-mqtt-broker:Sonoff-Schalter’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

18:25:57.284 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:WDS:72a59a17:ngyWDS3bb25’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

18:25:57.285 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:WSD2:72a59a17:ngyWSD2684f7’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

18:25:57.286 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:ISD2:72a59a17:ngyISD2ee45a’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

18:25:57.287 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:WMD:72a59a17:ngyWMD9f3a5’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

18:25:57.287 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:PSD:72a59a17:ngyPSD831e2’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

18:25:57.288 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:PSD:72a59a17:ngyPSD40783’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

18:25:57.289 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:ISS2:72a59a17:ngyISS2ec37a’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

18:25:57.290 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:VariableActuator:72a59a17:ngyVariableActuator2ef37’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

18:25:57.291 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:BRC8:72a59a17:ngyBRC8adec7’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

18:25:57.443 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:bridge:72a59a17’ changed from UNINITIALIZED to INITIALIZING

18:25:57.460 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:WSC2:72a59a17:ngyWSC275e2b’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

18:25:57.465 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:VariableActuator:72a59a17:ngyVariableActuator80e5f’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

18:25:57.469 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:BRC8:72a59a17:ngyBRC82d653’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

18


18:25:57.729 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:PSS:72a59a17:ngyPSS5aed0’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

18:25:57.730 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:WRT:72a59a17:ngyWRT4fde7’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

18:25:57.731 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:WDS:72a59a17:ngyWDS16234’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

18:25:57.731 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:WDS:72a59a17:ngyWDSb8e2f’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

1


18:25:57.779 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:PSD:72a59a17:ngyPSD1e4ea’ changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

18:25:57.872 [WARN ] [core.common.registry.AbstractRegistry] - Cannot add “BridgeImpl” with key “innogysmarthome:bridge:72a59a17”. It exists already from provider “GenericThingProvider”! Failed to add a second with the same UID from provider “ManagedThingProvider”!


18:25:58.186 [ERROR] [.internal.handler.InnogyBridgeHandler] - Error initializing innogy SmartHome client.

org.openhab.binding.innogysmarthome.internal.client.exception.InvalidAuthCodeException: Error fetching access token: {“errorcode”:2002,“description”:“Invalid token request”,“messages”:[“Reason: invalid_grant”]}

at org.openhab.binding.innogysmarthome.internal.client.InnogyClient.getOAuth2Tokens(InnogyClient.java:222) ~[225:org.openhab.binding.innogysmarthome:2.4.0.201907121857]

at org.openhab.binding.innogysmarthome.internal.client.InnogyClient.initialize(InnogyClient.java:128) ~[225:org.openhab.binding.innogysmarthome:2.4.0.201907121857]

at org.openhab.binding.innogysmarthome.internal.handler.InnogyBridgeHandler$Initializer.run(InnogyBridgeHandler.java:111) [225:org.openhab.binding.innogysmarthome:2.4.0.201907121857]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]

at java.lang.Thread.run(Thread.java:748) [?:?]

1


13:14:26.170 [INFO ] [smarthome.event.ThingUpdatedEvent ] - Thing ‘innogysmarthome:bridge:5c1b0d82’ has been updated.

13:14:26.368 [ERROR] [.internal.handler.InnogyBridgeHandler] - Error starting device structure manager.

java.lang.IllegalArgumentException: key isHiSupported

at com.google.api.client.json.JsonParser.parseValue(JsonParser.java:889) ~[225:org.openhab.binding.innogysmarthome:2.4.0.201907121857]

at com.google.api.client.json.JsonParser.parse(JsonParser.java:382) ~[225:org.openhab.binding.innogysmarthome:2.4.0.201907121857]

at com.google.api.client.json.JsonParser.parse(JsonParser.java:355) ~[225:org.openhab.binding.innogysmarthome:2.4.0.201907121857]

at com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:87) ~[225:org.openhab.binding.innogysmarthome:2.4.0.201907121857]

at com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:81) ~[225:org.openhab.binding.innogysmarthome:2.4.0.201907121857]

at com.google.api.client.http.HttpResponse.parseAs(HttpResponse.java:459) ~[225:org.openhab.binding.innogysmarthome:2.4.0.201907121857]

at org.openhab.binding.innogysmarthome.internal.client.InnogyClient.getCapabilities(InnogyClient.java:839) ~[225:org.openhab.binding.innogysmarthome:2.4.0.201907121857]

at org.openhab.binding.innogysmarthome.internal.client.InnogyClient.getFullDevices(InnogyClient.java:574) ~[225:org.openhab.binding.innogysmarthome:2.4.0.201907121857]

at org.openhab.binding.innogysmarthome.internal.manager.DeviceStructureManager.refreshDevices(DeviceStructureManager.java:85) ~[225:org.openhab.binding.innogysmarthome:2.4.0.201907121857]

at org.openhab.binding.innogysmarthome.internal.manager.DeviceStructureManager.start(DeviceStructureManager.java:64) ~[225:org.openhab.binding.innogysmarthome:2.4.0.201907121857]

at org.openhab.binding.innogysmarthome.internal.handler.InnogyBridgeHandler$Initializer.run(InnogyBridgeHandler.java:132) [225:org.openhab.binding.innogysmarthome:2.4.0.201907121857]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:?]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]

at java.lang.Thread.run(Thread.java:748) [?:?]

Caused by: java.lang.IllegalArgumentException: key isHiSupported

at com.google.api.client.json.JsonParser.parseValue(JsonParser.java:889) ~[?:?]

at com.google.api.client.json.JsonParser.parseArray(JsonParser.java:648) ~[?:?]

at com.google.api.client.json.JsonParser.parseValue(JsonParser.java:740) ~[?:?]

… 17 more

Cause