[innogy] Update to new API 1.1 and new devices tested

Tags: #<Tag:0x00007fc3f18b1ae8>

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) - tested OK
  • In wall Smart Controller (ISC2) - UNTESTED
  • In wall Smart Dimmer (ISD2) - tested, TRIGGERS NOK?
  • In wall Smart Roller Shutter (ISR2) - tested, OK
  • 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

@pjhaucke, sorry for the late reply - holiday season. :wink:

To be honest - I don’t know. The error comes from the innogy API here:
org.openhab.binding.innogysmarthome.internal.client.exception.InvalidAuthCodeException: Error fetching access token: {“errorcode”:2002,“description”:“Invalid token request”,“messages”:[“Reason: invalid_grant”]}

I would recommend the following:

  • copy the id of the SHC thing
  • delete the SHC thing and add it again using the same id (then all other things will still work)
  • generate a new auth code here and save it in the SHC thing config.

If the SHC does not come online again, please enable the DEBUG log level, e.g. by using the openHAB CLI and entering the command “log:set DEBUG org.openhab.binding.innogysmarthome”.

Hello Ollie, thanks again for your help.

I did everything you said (several times), but SHC 2 does not work at all.

It remains at status “INITIALIZING”

Attention: I am speaking about the new Innogy SHC 2!

Best regards.

Here are the logs:

11:01:45.892 [DEBUG] [org.openhab.binding.innogysmarthome ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=394, service.bundleid=413, service.scope=singleton} - org.openhab.binding.innogysmarthome

11:01:45.899 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - ‘innogysmarthome:bridge:d35870f6’ changed from UNINITIALIZED to INITIALIZING

11:01:45.900 [DEBUG] [.internal.handler.InnogyBridgeHandler] - Initializing innogy SmartHome BridgeHandler


11:01:45.902 [DEBUG] [.internal.handler.InnogyBridgeHandler] - innogy config: Config [clientId=24635748, clientSecret=no secret, redirectUrl=https://www.openhab.org/oauth/innogy/innogy-smarthome.html, authCode=d92900e7ca0a485dbc18085be399aaa4, accessToken=, refreshToken=]

11:01:45.918 [DEBUG] [.internal.handler.InnogyBridgeHandler] - Initializing innogy SmartHome client


11:01:45.975 [DEBUG] [marthome.internal.client.InnogyClient] - Trying to get access and refresh tokens

11:01:46.707 [INFO ] [smarthome.event.ItemStateChangedEvent] - DatumZeit changed from 2019-07-21T11:00:46.699+0200 to 2019-07-21T11:01:46.701+0200

11:01:46.881 [DEBUG] [marthome.internal.client.InnogyClient] - Saving access and refresh tokens.

11:01:46.882 [DEBUG] [marthome.internal.client.InnogyClient] - Get innogy SmartHome status


11:01:46.935 [DEBUG] [marthome.internal.client.InnogyClient] - [1] Statuscode is OK.

11:01:46.938 [DEBUG] [marthome.internal.client.InnogyClient] - innogy SmartHome Status loaded. Configuration version is 420.

11:01:46.942 [INFO ] [smarthome.event.ThingUpdatedEvent ] - Thing ‘innogysmarthome:bridge:d35870f6’ has been updated.

11:01:46.942 [DEBUG] [ternal.manager.DeviceStructureManager] - Starting device structure manager.

11:01:46.943 [DEBUG] [marthome.internal.client.InnogyClient] - Loading locations


11:01:46.989 [DEBUG] [marthome.internal.client.InnogyClient] - [2] Statuscode is OK.

11:01:46.992 [DEBUG] [marthome.internal.client.InnogyClient] - Loading capabilities


11:01:47.077 [DEBUG] [marthome.internal.client.InnogyClient] - [3] Statuscode is OK.

11:01:47.088 [DEBUG] [.internal.handler.InnogyBridgeHandler] - Unknown exception

java.lang.IllegalArgumentException: key isHiSupported

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

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

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

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

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

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

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

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

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

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

at org.openhab.binding.innogysmarthome.internal.handler.InnogyBridgeHandler$Initializer.run(InnogyBridgeHandler.java:132) [413: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

Caused by: java.lang.IllegalArgumentException: key isHiSupported, field private org.openhab.binding.innogysmarthome.internal.client.entity.capability.CapabilityConfig org.openhab.binding.innogysmarthome.internal.client.entity.capability.Capability.config

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

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

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

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

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


 17 more

Caused by: java.lang.IllegalArgumentException: key isHiSupported, field private java.lang.String org.openhab.binding.innogysmarthome.internal.client.entity.capability.CapabilityConfig.isHiSupported

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

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

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

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

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

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

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


 17 more

Caused by: java.lang.IllegalArgumentException: expected type Boolean or boolean but got class java.lang.String

at com.google.api.client.repackaged.com.google.common.base.Preconditions.checkArgument(Preconditions.java:148) ~[?:?]

at com.google.api.client.util.Preconditions.checkArgument(Preconditions.java:69) ~[?:?]

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

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

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

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

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

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

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


 17 more

11:01:47.103 [DEBUG] [.internal.handler.InnogyBridgeHandler] - Disposing innogy SmartHome bridge handler ‘d35870f6’

11:01:47.103 [DEBUG] [.internal.handler.InnogyBridgeHandler] - innogy SmartHome bridge handler shut down.

11:01:47.103 [DEBUG] [.internal.handler.InnogyBridgeHandler] - Scheduling reinitialize in 30 seconds.

11:01:47.104 [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) ~[413:org.openhab.binding.innogysmarthome:2.4.0.201907121857]

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

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

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

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

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

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

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

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

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

at org.openhab.binding.innogysmarthome.internal.handler.InnogyBridgeHandler$Initializer.run(InnogyBridgeHandler.java:132) [413: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

Caused by: java.lang.IllegalArgumentException: key isHiSupported, field private org.openhab.binding.innogysmarthome.internal.client.entity.capability.CapabilityConfig org.openhab.binding.innogysmarthome.internal.client.entity.capability.Capability.config

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

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

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

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

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


 17 more

Caused by: java.lang.IllegalArgumentException: key isHiSupported, field private java.lang.String org.openhab.binding.innogysmarthome.internal.client.entity.capability.CapabilityConfig.isHiSupported

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

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

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

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

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

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

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


 17 more

Caused by: java.lang.IllegalArgumentException: expected type Boolean or boolean but got class java.lang.String

at com.google.api.client.repackaged.com.google.common.base.Preconditions.checkArgument(Preconditions.java:148) ~[?:?]

at com.google.api.client.util.Preconditions.checkArgument(Preconditions.java:69) ~[?:?]

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

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

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

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

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

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

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


 17 more

Thanks. I have a SHC2 running with another beta tester. I‘ll dig into it


Okay - found the bug. I’ll send you a new version as soon as I get the build up and running again. It didn’t survive the maven upgrade


Here comes a new version. Please test, @pjhaucke! :slight_smile:

Hooray, it works (partially).

Hello Ollie, thank you again and again (and again).

The new Innogy binding works when it is configured in PaperUI.

If you do so in texture configuration (Visual Studio Code), it also works, but when you logout from openhab, or reboot your computer (Mac Mini in my case) the SHC 2 goes offline and a new authcode is nescecarry to enter. I tried this many times and the behavior ist always the same. You need to enter a new code.

Best regards. PJH

Hi Ollie,

is it possible to get the Medion Devices via the binding?

They are not supported yet. It would be possible, I think. Focus is to stabilize current functionality and support SHCA/2.

Okay, I‘ll have to check. Can you send me the configuration of your things file please? But remember to remove the code


Hello Ollie,

here comes my Thing-configuration:

for it is not in use at present, it is remarked.

Thank you and best regards. PJH


Bridge innogysmarthome:bridge:6a858655 “PJHs Innogy SmartHome Controller” [ipAddress=“xxx.xx.x.xx”, host=“SHController01”, authcode=“xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”]

{
Thing BRC8 ngyBRC8adec7  "Fernbedienung 1 (Wohnzimmer)" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
Thing BRC8 ngyBRC82d653 "Fernbedienung 2 (Wohnzimmer)" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
Thing ISD2 ngy6a858655 "Lichtschalter Deckenleuchte Wohnzimmer (Dimmer)" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
//Thing ISS2 ngyISS2ec37a "LichtschalterDeckenleuchte Flur (Schalter)" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
//Thing PSD ngyPSD1e4ea "Zwischenstecker 1 - Lampe Schreibtisch Wohnzimmer (Dimmer)" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
//Thing PSD ngyPSD40783 "Zwischenstecker 12 - SpotsBadezimmer (Dimmer)" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
Thing PSD ngyPSD831e2 "Zwischenstecker 2 - Lampe Sideboard Wohnzimmer (Dimmer)" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
//Thing PSS ngyPSS5aed0 "Zwischenstecker 11 - Leuchtröhre Badezimmer (Schalter)" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
// Thing PSS ngyPSS5aeda "Zwischenstecker 6b - Beleuchtung HĂ€user Regal (Schalter)" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
// Thing PSS ngyPSS7aa6c "Zwischenstecker 3 - Vitrinenbeleuchtung Wohnzimmer (Schalter)" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
// Thing PSS ngyPSS49f7d "Zwischenstecker 4 - Scheinwerfer Balkon (Schalter)" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
// Thing PSS ngyPSS9d157 "Zwischenstecker 10 - Luftbefeuchter Wohnzimmer (Schalter)" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
// Thing PSS ngyPSS3a4b5 "Zwischenstecker 7 - Beleuchtung Weihnachtsbaum (Schalter)" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
// Thing PSS ngyPSSb290d "Zwischenstecker 8 - Balkonbeleuchtung (Schalter)" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
// Thing PSS ngyPSSb44d1 "Zwischenstecker 9 - Eisenbahn (Schalter) (Wohnzimmer)" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
// Thing PSS ngyPSSbef66 "Zwischenstecker 5 - Lampe Plattenspieler Wohnzimmer (Schalter)" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
// Thing PSS ngyPSSe782f "Zwischenstecker 6a - Beleuchtung HĂ€user Sideboard (Schalter)" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
Thing RST ngyRST7f859 "Heizkörperthermostat Wohnzimmer" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
Thing VariableActuator ngyVariableActuator2ef37 "PJH anwesend" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
Thing VariableActuator ngyVariableActuator80e5f "PS anwesend" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
//Thing VariableActuator ngyVariableActuatorb5c94 "Zuhause" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
//Thing VariableActuator ngyVariableActuatore8ceb "Urlaub" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
Thing WDS ngyWDS16234 "Sensor KĂŒchenfenster" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
Thing WDS ngyWDS3bb25 "Sensor Wohnzimmerfenster" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
Thing WDS ngyWDSb8e2f "Sensor BalkontĂŒre" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
Thing WDS ngyWDS3bb27 "Sensor Schlafzimmerfenster" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"] 
Thing WMD ngyWMD9f3a5 "Bewegungssensor Badezimmer" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
Thing WRT ngy6a858655 "Raumthermostat Wohnzimmer" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
Thing WSC2 ngyWSC275e2b "Wandsender 1 (Wohnzimmer)" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
Thing WSD2 ngyWSD2684f7 "Rauchmelder Wohnzimmer" [ id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
// Thing WMDO ngyWMDc13c29 "Bewegungsmelder Balkon" [id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"]

}

*/

Please read https://www.openhab.org/addons/bindings/innogysmarthome/#manual-configuration

You have to use the authcode just once and replace it with the refreshtoken after the binding loaded the tokens at first startup.

Hi Ollie, how can I copy it? It ist “starred” and copy doesn’t work.

Best regards. PJH

Even in log level TRACE? It should only be starred in DEBUG.

Hello ollie,

i spent some hours for finding the refresh token. I cannot find it anywhere!

Could you please explain the whole way to find it.

Here is a little log cut:
18:46:08.961 [DEBUG] [.internal.handler.InnogyBridgeHandler] - Initializing innogy SmartHome BridgeHandler


18:46:08.962 [DEBUG] [.internal.handler.InnogyBridgeHandler] - innogy config: Config [clientId=24635748, clientSecret=no secret, redirectUrl=https://www.openhab.org/oauth/innogy/innogy-smarthome.html, authCode=8b8543a504a34bf7ab3c1a435ceb241b, accessToken=, refreshToken=]

Best regards. PJH

It will be written into the log shortly after “Saving access and refresh tokens.” - but only if you enabled loglevel TRACE. To do that, you can use the openHAB console and enter log:set TRACE org.openhab.binding.innogysmarthome.