kuczerek
(Boris)
December 27, 2022, 9:23am
1
Hi,
I am running the Gardena Binding on OH 3.4. I have a mower thing connected to the gardena bridge. Every time the battery state of the mower changes I get this log entry in openhab.log
.... [WARN ] [internal.handler.GardenaThingHandler] - Value of propertyPath 'common.attributes.batteryState.value' can not be casted to Number: class java.lang.String cannot be cast to class java.lang.Number (java.lang.String and java.lang.Number are in module java.base of loader 'bootstrap')
Does anynone else have this issue with a gardena mower?
Regards,
kuczerek
JimT
(jimtng)
December 27, 2022, 9:47am
2
I’m not a user of this binding, however, this seems like a bug. Could you open an issue on Issues · openhab/openhab-addons · GitHub ?
kuczerek
(Boris)
December 28, 2022, 10:38am
3
Ok, I opened the follwing issue:
opened 10:36AM - 28 Dec 22 UTC
bug
If there is a mower thing connected to the gardena bridge, every time the batter… y state of the mower changes, the following log entry is reported in openhab.log
`.... [WARN ] [internal.handler.GardenaThingHandler] - Value of propertyPath 'common.attributes.batteryState.value' can not be casted to Number: class java.lang.String cannot be cast to class java.lang.Number (java.lang.String and java.lang.Number are in module java.base of loader 'bootstrap')`
## Expected Behavior
No log entries in openhab.log, when the battery state of the mower changes.
## Current Behavior
Right now my mower is offline because of winter timer. Nevertheless there is a mower thing in openhab connected to the gardena bridge. If I disable and re-enable the bridge, I get the following log entries in DEBUG mode: [gardena.log](https://github.com/openhab/openhab-addons/files/10313583/gardena.log). The "WARN" log entry is at 2022-12-28 11:05:07.649.
I think, I noticed these log entries the first time during this summer, when the mower was active. Despite the log entries, I never noticed wrong battery states in openHAB. The mower channel "common#batteryLevel" seems to show the correct values.
## Possible Solution
Don't know ;-)
## Steps to Reproduce (for Bugs)
1. Attach a mower thing to the gardena bridge
2. Disable gardena bridge
3. Enable garden bridge and watch the log.
## Context
Keep the log clear
## Your Environment
* Version used: openHAB 3.4
* Environment name and version: OpenJDK Runtime Environment Zulu11.52+13-CA (build 11.0.13+8-LTS)
* Operating System and version: Raspbian GNU/Linux 11 (bullseye)
Regards,
kuczerek