Dear all,
I am back (ashamed) with my (stupid) questions …
First of all, once again all my thanks for your assistance with the temperature issue I had in my previous post; unfortunately I did not take the time to test but will of course keep you posted.
I am trying to “configure” openhab (2.4.0-1 installed on a raspberry pi3) to control my thermostats but really do not manage to do it correctly.
The knx thermostat is configured as follows :
Setpoint shift (1 Byte) : 5 / 0 / 57
Setpoint shift feedback (1 Byte) : 5 / 0 /59
Display temperature (2 Byte) : 5 / 0 / 58
Actual Temperature (2 Byte) : 5 /0 / 54
The “actual” temperature displays correctly (despite there is a lag) but the “lines” I wrote to control it do not work properly.
Things line :
Type number : C_Bureau_Temp_Cible "Temperature" [ ga="9.001:5/0/57+<5/0/59" ]
Items line :
Number Bureau_Temp_Cible "Temperature Cible [%.1f °C]" {channel="knx:device:bridge:generic:C_Bureau_Temp_Cible"}
Sitemap line :
Setpoint item=Bureau_Temp_Cible minValue=4.5 maxValue=30.5 step=1.0 icon="temperature"
When I push the corresopnding “up” button in openhab, the KNX slider is moving right to the end but nothings happen when I push the “down” button (the slider does not move).
When I move the KNX slider to the left or to the right, the log shows the following errors :
2019-05-11 14:20:56.730 [INFO ] [g.knx.internal.dpt.KNXCoreTypeMapper] - Translator couldn't parse data for datapoint type '9.001' (KNXIllegalArgumentException).
2019-05-11 14:20:56.733 [WARN ] [.internal.handler.DeviceThingHandler] - Ignoring KNX bus data: couldn't transform to any Type (destination='5/0/57', datapoint='command DP 5/0/57 'knx:device:bridge:generic', DPT id 9.001, low priority', data='0xFF')
I of course did some searchs (in the forum as well as on the web), changed the dpt 9.001 to 8.001 or 7.001, removed the " [%.1f °C]", changed it to “[%.1f %unit%]” but nothing seems to work.
May I (once again) ask for your assistance ?
Thanks a lot and have a nice week-end.
Sam.
Edit :
I add a knx log and this is what it says while decreasing the temperature through JUNG remote (knx) :
2019-05-12 09:43:31.311 [TRACE] [nx.internal.client.AbstractKNXClient] - Received a Group Write telegram from '15.15.14' to '5/0/57' with value '[0]'
2019-05-12 09:43:31.313 [DEBUG] [.internal.handler.DeviceThingHandler] - onGroupWrite Thing 'knx:device:bridge:generic' received a GroupValueWrite telegram from '15.15.14' for destination '5/0/57'
2019-05-12 09:43:31.324 [TRACE] [.internal.handler.DeviceThingHandler] - onGroupWrite Thing 'knx:device:bridge:generic' processes a GroupValueWrite telegram for destination '5/0/57' for channel 'knx:device:bridge:generic:C_Bureau_Temp_Cible'
2019-05-12 09:43:31.326 [INFO ] [g.knx.internal.dpt.KNXCoreTypeMapper] - Translator couldn't parse data for datapoint type '9.001' (KNXIllegalArgumentException).
2019-05-12 09:43:31.328 [WARN ] [.internal.handler.DeviceThingHandler] - Ignoring KNX bus data: couldn't transform to any Type (destination='5/0/57', datapoint='command DP 5/0/57 'knx:device:bridge:generic', DPT id 9.001, low priority', data='0x00')
2019-05-12 09:43:31.381 [TRACE] [nx.internal.client.AbstractKNXClient] - Received a Group Write telegram from '1.1.26' to '5/0/59' with value '[0]'
2019-05-12 09:43:31.387 [DEBUG] [.internal.handler.DeviceThingHandler] - onGroupWrite Thing 'knx:device:bridge:generic' received a GroupValueWrite telegram from '1.1.26' for destination '5/0/59'
2019-05-12 09:43:31.412 [TRACE] [.internal.handler.DeviceThingHandler] - onGroupWrite Thing 'knx:device:bridge:generic' processes a GroupValueWrite telegram for destination '5/0/59' for channel 'knx:device:bridge:generic:C_Bureau_Temp_Cible'
2019-05-12 09:43:31.416 [INFO ] [g.knx.internal.dpt.KNXCoreTypeMapper] - Translator couldn't parse data for datapoint type '9.001' (KNXIllegalArgumentException).
2019-05-12 09:43:31.418 [TRACE] [nx.internal.client.AbstractKNXClient] - Received a Group Write telegram from '1.1.26' to '5/0/58' with value '[12, 26]'
2019-05-12 09:43:31.422 [WARN ] [.internal.handler.DeviceThingHandler] - Ignoring KNX bus data: couldn't transform to any Type (destination='5/0/59', datapoint='command DP 5/0/59 'knx:device:bridge:generic', DPT id 9.001, low priority', data='0x00')
And the following lines when trying to decrease the temp through openhab :
2019-05-12 09:49:57.904 [ome.event.ItemCommandEvent] - Item 'Bureau_Temp_Cible' received command 20.5
2019-05-12 09:49:57.912 [nt.ItemStatePredictedEvent] - Bureau_Temp_Cible predicted to become 20.5
==> /var/log/openhab2/openhab.log <==
2019-05-12 09:49:57.918 [TRACE] [.internal.handler.DeviceThingHandler] - Handling command '20.5' for channel 'knx:device:bridge:generic:C_Bureau_Temp_Cible'
2019-05-12 09:49:57.925 [TRACE] [.knx.internal.channel.KNXChannelType] - getCommandSpec testing Keys '[ga]' for command '20.5'
==> /var/log/openhab2/events.log <==
2019-05-12 09:49:57.925 [vent.ItemStateChangedEvent] - Bureau_Temp_Cible changed from 21.5 to 20.5
==> /var/log/openhab2/openhab.log <==
2019-05-12 09:49:57.930 [TRACE] [.knx.internal.channel.KNXChannelType] - getCommandSpec key 'ga' uses expectedTypeClass 'class org.eclipse.smarthome.core.library.types.DecimalType' witch isInstance for command '20.5' and dpt '9.001'
2019-05-12 09:49:57.935 [TRACE] [nx.internal.client.AbstractKNXClient] - writeToKNX groupAddress '5/0/57', commandSpec 'org.openhab.binding.knx.internal.channel.WriteSpecImpl@b94212'
2019-05-12 09:49:57.940 [TRACE] [nx.internal.client.AbstractKNXClient] - sendToKNX mappedValue: '20.5' groupAddress: '5/0/57'
2019-05-12 09:49:57.967 [DEBUG] [nx.internal.client.AbstractKNXClient] - Wrote value '20.5' to datapoint 'command DP 5/0/57 'knx:ip:bridge', DPT id 9.001, low priority' (0. attempt).