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] Make LWRF mood buttons work #2366

Merged
merged 1 commit into from
Jun 14, 2017
Merged

[RFXCOM] Make LWRF mood buttons work #2366

merged 1 commit into from
Jun 14, 2017

Conversation

mjagdis
Copy link

@mjagdis mjagdis commented Jun 13, 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)

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)
@mjagdis
Copy link
Author

mjagdis commented Jun 13, 2017

Split from PR #2103 (rfxcom-commands) due to ongoing discussion.

This is the bare minimum required to make LWRF mood buttons (and quite possibly some other similar things) do anything useful.

@martinvw
Copy link
Member

Thanks, will you or shall I address the logic which seems to convert the channelType enum to different types but does not actually do that?

@martinvw martinvw merged commit ad09ef7 into openhab:master Jun 14, 2017
@mjagdis mjagdis deleted the 2102-rfxcom-mood branch June 15, 2017 12:09
holmes added a commit to holmes/openhab2-addons that referenced this pull request Jun 16, 2017
* master:
  [senseBox] Forgot to add binding to feature.xml (openhab#2371)
  [Kodi] Fix audio sink (openhab#2301) (openhab#2303)
  Initial contribution of a Niko Home Control binding. (openhab#1589)
  [keba] fixed typo (openhab#2370)
  Removed utilisation of org.apache.http.client (openhab#2369)
  [RFXCOM] Make LWRF mood buttons work (openhab#2366)
  [senseBox] Switch caching to ESH ExpiringCacheMap (openhab#2361)
  Fixed problems found by AuthorTagCheck in the cometvisu bundle (openhab#2364)
  Added author tag where missing. (openhab#2351)
  [RFXCOM] Fix chill temperature (openhab#2362)
  initial contribution Windcentrale binding (openhab#1535)
  Tesla : reset the Even Stream connection to the Tesla Back-end if the event time stamps differ too much from the current system time (openhab#2358)
  Homematic: Some updates (openhab#2346)
  [RFXCOM] Support all data from wind sensors (openhab#2329)
  Gardena: Optimized refresh after command (openhab#2353)
  Fix some javadocs. (openhab#2349)
  Some small non-standard copyright banners which we missed while reviewing (openhab#2347)
@kaikreuzer kaikreuzer modified the milestone: 2.1 Jun 23, 2017
@martinvw martinvw added the bug An unexpected problem or unintended behavior of an add-on label Jun 25, 2017
falkena pushed a commit to falkena/openhab-addons that referenced this pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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)
Flole998 pushed a commit to Flole998/openhab-addons that referenced this pull request Dec 30, 2021
* New translations SystemProfiles.properties (German)

* New translations SystemProfiles.properties (Hebrew)

* New translations SystemProfiles.properties (Dutch)

* New translations SystemProfiles.properties (Italian)

* New translations SystemProfiles.properties (Finnish)

* New translations SystemProfiles.properties (Hebrew)

* New translations SystemProfiles.properties (Italian)

* New translations SystemProfiles.properties (Dutch)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
3 participants