openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.88k stars 3.58k forks source link

[velbus] Dimmer control and value display incorrect #3685

Closed steefdebruijn closed 5 years ago

steefdebruijn commented 6 years ago

Hi,

I have a little problem using sliders in the basic UI/sitemap with velbus dimmer items.

Expected Behavior

I expect the slider to reflect the dimmer state and stay in the position I put it to when operating the slider.

Current Behavior

I use VMB1LED modules. I can not set the slider beyond value 32. (Correction: I CAN do that but it immediately jumps back to 32.):

2018-06-20 21:46:03.548 [ome.event.ItemCommandEvent] - Item 'Eettafel_Licht' received command 86
2018-06-20 21:46:03.561 [vent.ItemStateChangedEvent] - Eettafel_Licht changed from 0 to 86
2018-06-20 21:46:03.608 [vent.ItemStateChangedEvent] - Eettafel_Licht changed from 86 to 32

When I operate the lights by Velbus panels the lights behave as expected but the openhab log and sliders show the same (wrong) 32 value:

2018-06-20 21:47:59.427 [vent.ChannelTriggeredEvent] - velbus:vmbgpo:1:45:CH3 triggered PRESSED
2018-06-20 21:47:59.629 [vent.ChannelTriggeredEvent] - velbus:vmbgpo:1:45:CH3 triggered RELEASED
2018-06-20 21:48:01.462 [vent.ItemStateChangedEvent] - Eettafel_Licht changed from 32 to 0
2018-06-20 21:48:06.117 [vent.ChannelTriggeredEvent] - velbus:vmbgpo:1:45:CH2 triggered PRESSED
2018-06-20 21:48:06.156 [vent.ItemStateChangedEvent] - Eettafel_Licht changed from 0 to 32
2018-06-20 21:48:06.445 [vent.ChannelTriggeredEvent] - velbus:vmbgpo:1:45:CH2 triggered RELEASED

I also have a VMB4DC which does NOT have the same problem. It DOES have some weird value jumping though:

2018-06-20 21:45:10.493 [ome.event.ItemCommandEvent] - Item 'Terras_Licht' received command 73
2018-06-20 21:45:10.504 [vent.ItemStateChangedEvent] - Terras_Licht changed from 13 to 73
2018-06-20 21:45:10.522 [vent.ItemStateChangedEvent] - Terras_Licht changed from 73 to 13
2018-06-20 21:45:12.527 [vent.ItemStateChangedEvent] - Terras_Licht changed from 13 to 73

Relevant velbus.items section:

Dimmer  Eettafel_Licht          "Verlichting Eettafel"                  <light>     (Verlichting)   {channel="velbus:vmb1led:1:14:CH1"}
Dimmer  Terras_Licht            "Verlichting Terras"                    <light>     (Verlichting)   {channel="velbus:vmb4dc:1:16:CH1"}

Your Environment

I am using openHABian stable release (2.3.0) including shipped velbus binding on a Raspberry Pi.

MDAR commented 6 years ago

Hi

I think Cédric has resolved this for you ??

With regards to the "jumping" this is totally normal.

This is what (I believe) is happening.

The slider displays the current state.

User moves slider to new value, which is sent to the dimmer.

The slider then "jumps" to the values reported by the dimmer as is adjusts to the new value.

Setting a dim value in the Thing will slow this behaviour down and the connected light will dim slowly to the new value.

davidgraeff commented 5 years ago

Please reopen if this is still an Issue.