When I set the loglevel to DEBUG, it throws a lot of lines into the log, none of which look Shelly-related. I also don’t want to post a unredacted log either here or in Github, so can you tell me what I should filter for?
This is the log at INFO level, btw:
15:36:12.199 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_state' changed from stop to open //pushing the up-button
15:36:12.204 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_currentpower' changed from 0 W to 104.84 W
15:36:14.872 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_position' changed from 100 to 0 // this is the position from the Shelly binding
15:36:14.880 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_currentpower' changed from 104.84 W to 104.49 W
15:36:27.218 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_position' changed from 0 to 100 // position from binding again
15:36:27.225 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_currentpower' changed from 104.49 W to 106.29 W
15:36:27.790 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_ShutterActualPos' changed from 0 to 100 // this is the position from MQTT
15:36:28.008 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_position' changed from 100 to 0 // position from binding again
15:36:28.009 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_state' changed from open to stop
15:36:28.012 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_currentpower' changed from 106.29 W to 0 W // shutter has come to a stop
15:36:43.588 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_state' changed from stop to close // pushing the down-button
15:36:43.594 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_currentpower' changed from 0 W to 106.08 W
15:36:45.283 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_position' changed from 0 to 100 // position from binding
15:36:45.286 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_currentpower' changed from 106.08 W to 106.06 W
15:36:48.360 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_currentpower' changed from 106.06 W to 107.4 W
15:36:58.585 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_position' changed from 100 to 0 // position from binding again
15:36:58.590 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_currentpower' changed from 107.4 W to 45.59 W
15:36:58.783 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_ShutterActualPos' changed from 100 to 0 // position from MQTT
15:36:59.149 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_position' changed from 0 to 100 // position from binding again
15:36:59.152 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_state' changed from close to stop
15:36:59.158 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_currentpower' changed from 45.59 W to 0 W
15:37:00.409 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'studyshutter_totalenergy' changed from 0.035 kWh to 0.036 kWh
Just tested with my productive system: The problem has improved as now the third press gets recognized as SHORT_PRESSED event. Besides updating the binding, I also set a keep-alive of 2s for all my shellies - maybe this also has something to do with it.
I will do another test with a testing environment in the next days to see, if this is a problem of my prod environment, network, … or if it has something to do with the binding.
Nevertheless, this is a huge improvement compared to before your fixes. Again thanks for your help and your work, really appreciate that
2 are powered through USB-C and are working fine in OpenHAB
2 are running with batteries and are never sending any data to OpenHAB
They are all configured in the exact same way in .things and .items files.
And are all working fine in Shelly app of course.
So : is it possible to have these “battery powered devices” working in openhab ? What is the principle, is openhab constantly trying to reach them (so they have to be connected / sending something, in order for the openhab > shelly devices connection to be possible ? (hence why it’s not working : mismatch of polling / availability between the two))
No, battery operated devices have to push their state updates to openHAB. Polling updates does not really work, as those devices are in sleep mode most of the time. They just wake up when values have changed.
If you power them via USB, openHAB is also using the backup polling task.
What is the state reported in shelly manger ? When was the last update seen?
Did you configure Coap/CoIoT correct ?