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

[rfxcom] LightwaveRF mood controller: can't convert MOOD1 to SwitchItem #2095

Closed
choppedpork opened this issue Mar 29, 2017 · 1 comment · Fixed by #2366
Closed

[rfxcom] LightwaveRF mood controller: can't convert MOOD1 to SwitchItem #2095

choppedpork opened this issue Mar 29, 2017 · 1 comment · Fixed by #2366

Comments

@choppedpork
Copy link

Hello,

I'm trying to set up a Lightwave RF mood controller remote with openhab2. Unfortunately once set up, pressing any buttons (except for 'off') causes errors like this:

[ERROR] [binding.rfxcom.handler.RFXComHandler] - Error occurred during message receiving: Can't convert MOOD3 to SwitchItem

I've tried setting this up both using Paper UI and manually via config files but the result is the same. I've captured some DEBUG level logs:

2017-03-28 00:34:52.519 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:c3685d10 message: Raw data = 0A1400030006C310030060, Packet type = LIGHTING5, Seq number = 3, Sub type = LIGHTWAVERF, Device Id = 1731.16, Command = MOOD1, Dim level = 0, Signal level = 6
2017-03-28 00:34:52.519 [ERROR] [binding.rfxcom.handler.RFXComHandler] - Error occurred during message receiving: Can't convert MOOD1 to SwitchItem
2017-03-28 00:34:56.863 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Message received: Raw data = 0A1400040006C310050060, Packet type = LIGHTING5, Seq number = 4, Sub type = LIGHTWAVERF, Device Id = 1731.16, Command = MOOD3, Dim level = 0, Signal level = 6
2017-03-28 00:34:56.864 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:c3685d10 message: Raw data = 0A1400040006C310050060, Packet type = LIGHTING5, Seq number = 4, Sub type = LIGHTWAVERF, Device Id = 1731.16, Command = MOOD3, Dim level = 0, Signal level = 6
2017-03-28 00:34:56.866 [ERROR] [binding.rfxcom.handler.RFXComHandler] - Error occurred during message receiving: Can't convert MOOD3 to SwitchItem
2017-03-28 00:34:58.343 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Message received: Raw data = 0A1400050006C310020060, Packet type = LIGHTING5, Seq number = 5, Sub type = LIGHTWAVERF, Device Id = 1731.16, Command = GROUP_OFF, Dim level = 0, Signal level = 6
2017-03-28 00:34:58.344 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:c3685d10 message: Raw data = 0A1400050006C310020060, Packet type = LIGHTING5, Seq number = 5, Sub type = LIGHTWAVERF, Device Id = 1731.16, Command = GROUP_OFF, Dim level = 0, Signal level = 6

The GROUP_OFF command is being correctly interpreted as OFF but all the other buttons are causing conversion errors even though this device should be using CHANNEL_MOOD. This is working as expected in openhab1 but I can't get it to work neither with the latest 2.0.0 docker image nor 2.1.0-snapshot.

I've had a look in the community forums and it looks like someone else has had what looks like the same issue: https://community.openhab.org/t/openhab2-lightwaverf-mood-controller/17792.

Here's the remote in question: http://w3.siemens.co.uk/buildingtechnologies/uk/en/building-automation/room-controls/Documents/Master-Wall-Switch.pdf. It's set up in 'mood' mode as with openhab1 the on/off + mood mode was causing conversion errors (due to sending ON/OFF/MOODn rather than MOODn/GROUP_OFF commands).

@choppedpork
Copy link
Author

choppedpork commented Apr 11, 2017

Thanks @mjagdis - I've noticed your commits referenced above and built the 2102-rfxcom-commands branch from your repo, works a treat!

martinvw pushed a commit that referenced this issue Jun 14, 2017
Not all incoming operations are appropriate to all channels. Where an
incoming operation cannot be mapped to an appropriate state for a
channel an exception is raised. This aborts the loop through items
connected to the thing's channels. In the case of a mood change sent
from an LWRF device the failed conversion of mood to switch state
will abort the loop before the mood channel is considered and thus the
mood channel will never produce any updates. This is fixed here by
wrapping the inner body of the loop in try/catch to discard any
exceptions raised. This is something of an abuse of exception handling
but the changes required to to filter incoming operations based on the
channel being considered would be significant and widespread so
exception dumping may be the better approach. At least for now.

Closes #1272
Closes #2095

Signed-off-by: Mike Jagdis <[email protected]> (github: mjagdis)
falkena pushed a commit to falkena/openhab-addons that referenced this issue Jun 29, 2017
Not all incoming operations are appropriate to all channels. Where an
incoming operation cannot be mapped to an appropriate state for a
channel an exception is raised. This aborts the loop through items
connected to the thing's channels. In the case of a mood change sent
from an LWRF device the failed conversion of mood to switch state
will abort the loop before the mood channel is considered and thus the
mood channel will never produce any updates. This is fixed here by
wrapping the inner body of the loop in try/catch to discard any
exceptions raised. This is something of an abuse of exception handling
but the changes required to to filter incoming operations based on the
channel being considered would be significant and widespread so
exception dumping may be the better approach. At least for now.

Closes openhab#1272
Closes openhab#2095

Signed-off-by: Mike Jagdis <[email protected]> (github: mjagdis)
qvistgaard pushed a commit to qvistgaard/openhab2-addons that referenced this issue Jun 30, 2017
Not all incoming operations are appropriate to all channels. Where an
incoming operation cannot be mapped to an appropriate state for a
channel an exception is raised. This aborts the loop through items
connected to the thing's channels. In the case of a mood change sent
from an LWRF device the failed conversion of mood to switch state
will abort the loop before the mood channel is considered and thus the
mood channel will never produce any updates. This is fixed here by
wrapping the inner body of the loop in try/catch to discard any
exceptions raised. This is something of an abuse of exception handling
but the changes required to to filter incoming operations based on the
channel being considered would be significant and widespread so
exception dumping may be the better approach. At least for now.

Closes openhab#1272
Closes openhab#2095

Signed-off-by: Mike Jagdis <[email protected]> (github: mjagdis)
jsjames pushed a commit to jsjames/openhab-addons that referenced this issue Jul 1, 2017
Not all incoming operations are appropriate to all channels. Where an
incoming operation cannot be mapped to an appropriate state for a
channel an exception is raised. This aborts the loop through items
connected to the thing's channels. In the case of a mood change sent
from an LWRF device the failed conversion of mood to switch state
will abort the loop before the mood channel is considered and thus the
mood channel will never produce any updates. This is fixed here by
wrapping the inner body of the loop in try/catch to discard any
exceptions raised. This is something of an abuse of exception handling
but the changes required to to filter incoming operations based on the
channel being considered would be significant and widespread so
exception dumping may be the better approach. At least for now.

Closes openhab#1272
Closes openhab#2095

Signed-off-by: Mike Jagdis <[email protected]> (github: mjagdis)
reyem pushed a commit to reyem/openhab2-addons that referenced this issue Jul 1, 2017
Not all incoming operations are appropriate to all channels. Where an
incoming operation cannot be mapped to an appropriate state for a
channel an exception is raised. This aborts the loop through items
connected to the thing's channels. In the case of a mood change sent
from an LWRF device the failed conversion of mood to switch state
will abort the loop before the mood channel is considered and thus the
mood channel will never produce any updates. This is fixed here by
wrapping the inner body of the loop in try/catch to discard any
exceptions raised. This is something of an abuse of exception handling
but the changes required to to filter incoming operations based on the
channel being considered would be significant and widespread so
exception dumping may be the better approach. At least for now.

Closes openhab#1272
Closes openhab#2095

Signed-off-by: Mike Jagdis <[email protected]> (github: mjagdis)
Markinus pushed a commit to Markinus/openhab2-addons that referenced this issue Jul 2, 2017
Not all incoming operations are appropriate to all channels. Where an
incoming operation cannot be mapped to an appropriate state for a
channel an exception is raised. This aborts the loop through items
connected to the thing's channels. In the case of a mood change sent
from an LWRF device the failed conversion of mood to switch state
will abort the loop before the mood channel is considered and thus the
mood channel will never produce any updates. This is fixed here by
wrapping the inner body of the loop in try/catch to discard any
exceptions raised. This is something of an abuse of exception handling
but the changes required to to filter incoming operations based on the
channel being considered would be significant and widespread so
exception dumping may be the better approach. At least for now.

Closes openhab#1272
Closes openhab#2095

Signed-off-by: Mike Jagdis <[email protected]> (github: mjagdis)
ppieczul pushed a commit to ppieczul/openhab2-addons that referenced this issue Jul 2, 2017
Not all incoming operations are appropriate to all channels. Where an
incoming operation cannot be mapped to an appropriate state for a
channel an exception is raised. This aborts the loop through items
connected to the thing's channels. In the case of a mood change sent
from an LWRF device the failed conversion of mood to switch state
will abort the loop before the mood channel is considered and thus the
mood channel will never produce any updates. This is fixed here by
wrapping the inner body of the loop in try/catch to discard any
exceptions raised. This is something of an abuse of exception handling
but the changes required to to filter incoming operations based on the
channel being considered would be significant and widespread so
exception dumping may be the better approach. At least for now.

Closes openhab#1272
Closes openhab#2095

Signed-off-by: Mike Jagdis <[email protected]> (github: mjagdis)
reyem pushed a commit to reyem/openhab2-addons that referenced this issue Jul 3, 2017
Not all incoming operations are appropriate to all channels. Where an
incoming operation cannot be mapped to an appropriate state for a
channel an exception is raised. This aborts the loop through items
connected to the thing's channels. In the case of a mood change sent
from an LWRF device the failed conversion of mood to switch state
will abort the loop before the mood channel is considered and thus the
mood channel will never produce any updates. This is fixed here by
wrapping the inner body of the loop in try/catch to discard any
exceptions raised. This is something of an abuse of exception handling
but the changes required to to filter incoming operations based on the
channel being considered would be significant and widespread so
exception dumping may be the better approach. At least for now.

Closes openhab#1272
Closes openhab#2095

Signed-off-by: Mike Jagdis <[email protected]> (github: mjagdis)
aogorek pushed a commit to aogorek/openhab2-addons that referenced this issue Jul 5, 2017
Not all incoming operations are appropriate to all channels. Where an
incoming operation cannot be mapped to an appropriate state for a
channel an exception is raised. This aborts the loop through items
connected to the thing's channels. In the case of a mood change sent
from an LWRF device the failed conversion of mood to switch state
will abort the loop before the mood channel is considered and thus the
mood channel will never produce any updates. This is fixed here by
wrapping the inner body of the loop in try/catch to discard any
exceptions raised. This is something of an abuse of exception handling
but the changes required to to filter incoming operations based on the
channel being considered would be significant and widespread so
exception dumping may be the better approach. At least for now.

Closes openhab#1272
Closes openhab#2095

Signed-off-by: Mike Jagdis <[email protected]> (github: mjagdis)
Markinus pushed a commit to Markinus/openhab2-addons that referenced this issue Sep 8, 2017
Not all incoming operations are appropriate to all channels. Where an
incoming operation cannot be mapped to an appropriate state for a
channel an exception is raised. This aborts the loop through items
connected to the thing's channels. In the case of a mood change sent
from an LWRF device the failed conversion of mood to switch state
will abort the loop before the mood channel is considered and thus the
mood channel will never produce any updates. This is fixed here by
wrapping the inner body of the loop in try/catch to discard any
exceptions raised. This is something of an abuse of exception handling
but the changes required to to filter incoming operations based on the
channel being considered would be significant and widespread so
exception dumping may be the better approach. At least for now.

Closes openhab#1272
Closes openhab#2095

Signed-off-by: Mike Jagdis <[email protected]> (github: mjagdis)
hillmanr pushed a commit to hillmanr/openhab2-addons-pollytts that referenced this issue Dec 6, 2017
Not all incoming operations are appropriate to all channels. Where an
incoming operation cannot be mapped to an appropriate state for a
channel an exception is raised. This aborts the loop through items
connected to the thing's channels. In the case of a mood change sent
from an LWRF device the failed conversion of mood to switch state
will abort the loop before the mood channel is considered and thus the
mood channel will never produce any updates. This is fixed here by
wrapping the inner body of the loop in try/catch to discard any
exceptions raised. This is something of an abuse of exception handling
but the changes required to to filter incoming operations based on the
channel being considered would be significant and widespread so
exception dumping may be the better approach. At least for now.

Closes openhab#1272
Closes openhab#2095

Signed-off-by: Mike Jagdis <[email protected]> (github: mjagdis)
markus7017 pushed a commit to markus7017/openhab-addons that referenced this issue Aug 12, 2023
* fix some typos in Readme

Signed-off-by: Stefan Höhn <[email protected]>

* replace outdated ui event doc link

Signed-off-by: Stefan Höhn <[email protected]>

---------

Signed-off-by: Stefan Höhn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant