Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[innogysmarthome] - Low Battery Message does not change Channel value #6932

Closed
RalphSester opened this issue Jan 29, 2020 · 5 comments · Fixed by #7956
Closed

[innogysmarthome] - Low Battery Message does not change Channel value #6932

RalphSester opened this issue Jan 29, 2020 · 5 comments · Fixed by #7956
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@RalphSester
Copy link
Contributor

RalphSester commented Jan 29, 2020

When a low-battery-message arrives from the api, the binding does not change the low-battery-channel of the thing.

Expected Behavior

when a message arrives, the low-battery-channel of the device hast to be set to ON
after replacing batteries the channel has to be set to OFF

Current Behavior

Nothing happens.
The fix #6920 prevents the bridge from going offline but does not handle the message correctly.

Steps to Reproduce (for Bugs)

see issue #6918

Context

this functionality was correct in previous versions of this binding (new binding). i think it is implemented.

See the message from API in the debug-log:

07:11:37.527 [DEBUG] [ogysmarthome.internal.InnogyWebSocket] - innogy WebSocket onMessage() - {"sequenceNumber":24387,"type":"MessageCreated","desc":"/desc/device/SHCA.RWE/1.0/event/MessageCreated","namespace":"core.RWE","timestamp":"2020-01-29T06:11:37.4781910Z","source":"/device/00000000000000000000000000000000","data":{"id":"f27d414c87e946f8b183e08ddf0b99e5","class":"alert","type":"DeviceLowBattery","namespace":"CosipDevices.RWE","desc":"/desc/product/CosipDevices.RWE/1.0/message/DeviceLowBattery","source":"product/CosipDevices.RWE/1.0","timestamp":"2020-01-29T06:11:34.462995Z","devices":["/device/a4b910eaa5f94204b4cf3147da0ed82c"],"capabilities":[],"read":false,"state":true,"properties":{"deviceLocation":"Arbeitszimmer","deviceName":"Fernbedienung","deviceSerial":"******","locationName":"","serialNumber":"*****"}}}
07:11:37.529 [DEBUG] [.internal.handler.InnogyBridgeHandler] - Event no 24387 found. Type: MessageCreated
07:11:37.530 [DEBUG] [.internal.handler.InnogyBridgeHandler] - Message received event not yet implemented for Messagetype DeviceLowBattery.

@Hilbrand ....can take please a look again?

Your Environment

OH 2.5.1 on Windows Server 2016

@RalphSester RalphSester added the bug An unexpected problem or unintended behavior of an add-on label Jan 29, 2020
@Hilbrand Hilbrand self-assigned this Jan 29, 2020
@RalphSester
Copy link
Contributor Author

This bug is still existing. Is there no one, who can take an eye on this?

@RalphSester
Copy link
Contributor Author

@mmans is this something you can check?

@mmans
Copy link

mmans commented Jun 20, 2020

Hi @RalphSester!

Unfortunately I'm unable to test this myself. But what I see in the code is, that a message-object expects a "DeviceLinkList". However, the Json you provided (in your excellently filed bugreport) doesn't contain this field. Instead there is a "devices" field.

I simply renamed this in the code. So if you like you could test this. I don't know exactly if this can cause other parts to fail. But as far as I could see it doesn't. So maybe this very quick and completely untested fix works :) If not could you set the log-level to trace, test again and send me the logs?

Link to my repo: https://github.com/mmans/openhab-addons/tree/bugfix/6932
(I will send you a pre-compiles jar as E-Mail)

Ps. I'm happy to help out, but my time is very limiting at the moment. So it sometimes can take some time till I answer. Thx!

Greetz,
Marco

@RalphSester
Copy link
Contributor Author

Hi @mmans ,

i have tested your pre-compiled jar in my environment - and the test was positive!
Many thanks for your great help. i think, its good, that this issue is fixed now!

Good job!

Ralph

@mmans
Copy link

mmans commented Jun 20, 2020

Hi @RalphSester!

That sounds great! Thanks for the quick test!
I will create a PR so the fix will be merged in the main code.

Greetz,
Marco

Hilbrand pushed a commit that referenced this issue Jun 22, 2020
* Renamed DeviceLinkList to Devices
* Updates Javadocs + Added 2 Annotations
Closes #6932

Signed-off-by: Marco Mans <[email protected]>
@Hilbrand Hilbrand removed their assignment Jun 22, 2020
knikhilwiz pushed a commit to knikhilwiz/openhab2-addons that referenced this issue Jul 12, 2020
* Renamed DeviceLinkList to Devices
* Updates Javadocs + Added 2 Annotations
Closes openhab#6932

Signed-off-by: Marco Mans <[email protected]>
CSchlipp pushed a commit to CSchlipp/openhab-addons that referenced this issue Jul 26, 2020
* Renamed DeviceLinkList to Devices
* Updates Javadocs + Added 2 Annotations
Closes openhab#6932

Signed-off-by: Marco Mans <[email protected]>
Signed-off-by: CSchlipp <[email protected]>
MPH80 pushed a commit to MPH80/openhab-addons that referenced this issue Aug 3, 2020
* Renamed DeviceLinkList to Devices
* Updates Javadocs + Added 2 Annotations
Closes openhab#6932

Signed-off-by: Marco Mans <[email protected]>
Signed-off-by: MPH80 <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this issue Aug 31, 2020
* Renamed DeviceLinkList to Devices
* Updates Javadocs + Added 2 Annotations
Closes openhab#6932

Signed-off-by: Marco Mans <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this issue Aug 31, 2020
* Renamed DeviceLinkList to Devices
* Updates Javadocs + Added 2 Annotations
Closes openhab#6932

Signed-off-by: Marco Mans <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this issue Aug 31, 2020
* Renamed DeviceLinkList to Devices
* Updates Javadocs + Added 2 Annotations
Closes openhab#6932

Signed-off-by: Marco Mans <[email protected]>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this issue Aug 31, 2020
* Renamed DeviceLinkList to Devices
* Updates Javadocs + Added 2 Annotations
Closes openhab#6932

Signed-off-by: Marco Mans <[email protected]>
DaanMeijer pushed a commit to DaanMeijer/openhab-addons that referenced this issue Sep 1, 2020
* Renamed DeviceLinkList to Devices
* Updates Javadocs + Added 2 Annotations
Closes openhab#6932

Signed-off-by: Marco Mans <[email protected]>
Signed-off-by: Daan Meijer <[email protected]>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this issue Sep 19, 2020
* Renamed DeviceLinkList to Devices
* Updates Javadocs + Added 2 Annotations
Closes openhab#6932

Signed-off-by: Marco Mans <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants