Hi,
using the latest snapshot binding to try to get rid of a minor problem I have with the binding but no success.
Platform: Windows
Version: openHAB 3.0.1
Binding version: 3.1.0-SNAPSHOT (the same problem with the 3.0.1 stable release version)
Hardware: Shelly2.5 Roller SHSW-25
Managed to get the snapshot to work after manual installation of the jar-file even after it was complaining about californium missing (this is only for other people searching for this error, it took me a while to find it):
Error executing command: Error executing command on bundles:
Error starting bundle 268: Could not resolve module: org.openhab.binding.shelly [268]
Unresolved requirement: Import-Package: org.eclipse.californium.core; version="[2.0.0,3.0.0)"
Solved by entering this in the console:
openhab> feature:install openhab-transport-coap
Confirm by:
openhab> bundle:list -s
Problem description
Everything works fine with the latest Shelly binding (and also the 3.0.1 stable version) with buttons, sensors, curtains and windows. The only small problem I have is that every fifteen seconds or so, Shelly (I guess) reports the state like this, over and over again:
14:15:20.423 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Curtains' changed from 0.0 to 100.0
14:15:22.865 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Curtains' changed from 100.0 to 0.0
14:15:35.438 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Curtains' changed from 0.0 to 100.0
14:15:38.152 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Curtains' changed from 100.0 to 0.0
14:16:01.225 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Curtains' changed from 0.0 to 100.0
14:16:02.689 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Curtains' changed from 100.0 to 0.0
....
So everything is working fine except the logging. Buttons respond correctly, window and curtains open/close correctly and show up in the openHAB interface and can be controlled from there.
My trials to solve it
I have tried to downgrade and upgrade the firmware of the Shelly switch but no change. I have deleted and added the things/items - no change. Note: I have two exactly the same switches used in the same manner (one for curtains and one for window).
Configured the same, the same (and also tested different) firmware. Absolutely no change.
The only thing that I can see as the difference is that the curtains (the problematic switch) has NOT been calibrated since it is actually not possible to do with a motor that uses so little current as my curtains do. So maybe the Shelly binding thinks (or tries to get) the state is “floating” and that is why it reports all the time. I have no idea.
This is not a big problem, just a bit annoying since the log fills up with unnecessary rows. I can of course reduce the logging of the Shelly binding but I thought I should report this, maybe it confuses someone else.
If there is anything information I can add to the above, please tell me.
PS: thanks for a very well working binding and also lots of kudos to all working on the openHAB3 release!