I have upgraded from 2.3 to 2.4 and after some troubles managed to get the Hue binding to work with Alexa again (using „Lighting“ instead of „Switchable“ - Switchable simply did not work at all).
I am using cheap 433 MHz switches that I switch on and off using a script launched by the old 1.x exec binding OR a 433MHz remote.
The switches do not provide any information on their ON/OFF State.
What changed since the upgrade/reconfiguration is that I cannot switch an item that has been switched „externally“ before (i.e. Using a 433MHz remote completely separately from OpenHab)
So turning on and off using Openhab and Alexa works fine, as long as I do not use the remote (which I sometimes need to do).
When an item is actually on but Openhab thinks it is off, it doesn‘t launch the off script when I tell Alexa to turn it off. I need to tell Alexa to turn on „again“ and then I can turn it off. (Or vice versa)
This has changed from previous behaviour, where it just fired the script regardless of Openhab state.
Is this a known phenomenon? Maybe intentional?
May this be due to the new Hue binding, due to the change to „Lighting“ or is it changed behaviour in OpenHab?
Is there any idea for a workaround? Maybe a simple rule?
I now tried to find a workaround by using rules. Unfortunately there seems to be no event to catch, at least there is none in the event log and also trial and error didn’t help.
I then tried to update the state to NULL using a rule, but it didn’t work either. The state changed to NULL but there was no switching.
So I still have no clue how to turn off a light using a single Alexa command when that light is actually on but Openhab thinks it’'s off.
The solution is to use the 2.5 SNAPSHOT version of the binding which has resolved this issue. You should be able to add the jar file to the addons folder without having to upgrade the rest of OH.
Thanks a lot, this worked like a charm!
Uninstalled the 2.4 binding, put the Snapshot version in the addons folder, checked config with PaperUI and now I can turn off/on as I like!