Hi
after upgrading to OH 3.3 I encountered the typical issue with zwave config parameters and their type validation.
The problematic paraameter seemed to be Parameter 7 (customer function)
Auditing changes in jsondb, I can see the parameter 7 is now different – something I do not wish to have
- "config_10_1": 12.0,
- "config_13_1": 12.0,
- "config_14_1": 12.0,
- "config_15_1": 12.0,
- "config_1_1": 0.0,
- "config_20_1": 30.0,
- "config_21_1": 1.0,
- "config_23_1": 5.0,
- "config_2_1": -1.0,
- "config_5_1": 0.0,
- "config_6_1": 0.0,
- "config_7_1": 0.0, <--- OH 3.2 setting
+ "config_10_1": 12,
+ "config_13_1": 12,
+ "config_14_1": 12,
+ "config_15_1": 12,
+ "config_1_1": 0,
+ "config_20_1": 30,
+ "config_21_1": 1,
+ "config_23_1": 5,
+ "config_2_1": -1,
+ "config_5_1": 0,
+ "config_6_1": 0,
+ "config_7_1": 16, <-- OH 3.3 setting after checking parameter 7 in UI, note the difference
In order to have the thing ONLINE, I had no choice but to check the checkbox. Then I tried to clear the checkbox, having the following error in logs
2022-07-15 09:05:10.479 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] [org.openhab.binding.zwave] - NODE 20: Configuration update set config_7_1 to null (null)
2022-07-15 09:05:10.480 [ERROR] [st.core.internal.thing.ThingResource] [org.openhab.core.io.rest.core] - Exception during HTTP PUT request for update config at 'things/zwave:device:zwave:node20/config'
at 2022-07-15T09:01:50+03:00 lerbacka-raspi karaf[520]: java.lang.NullPointerException: null
2022-07-15T09:01:50+03:00 lerbacka-raspi karaf[520]: #011at org.openhab.binding.zwave.handler.ZWaveThingHandler.handleConfigurationUpdate(ZWaveThingHandler.java:654) ~[?:?]
2022-07-15T09:01:50+03:00 lerbacka-raspi karaf[520]: #011at org.openhab.core.thing.internal.ThingRegistryImpl.updateConfiguration(ThingRegistryImpl.java:94) ~[?:?]
2022-07-15T09:01:50+03:00 lerbacka-raspi karaf[520]: #011at org.openhab.core.io.rest.core.internal.thing.ThingResource.updateConfiguration(ThingResource.java:498) ~[?:?]
...
The device manual (hopefully I found the correct one), http://manuals-backend.z-wave.info/make.php?lang=en&sku=PHIEPAT02-A seems to indicate that parameter 7 is actually 4 boolean settings:
- disable/enable “send out BASIC OFF after flood event cleared”
- use notification report OR use sensor binary report
- enable/disable multi CC in auto report
- disable/enable battery state reporting in device triggered
tl; dr, I think there are several issues
- migration from OH 3.2 to 3.3 was not smooth. Not sure if we can improve this?
- null pointer exception when clearing parameter 7 with this device. In other words, cannot have paramater 7 value
0x00
(zero byte) - parameter 7 configuration UI does not seem to match manual? should be 4 settings instead?
How to go about fixing these?