openHABian 3.3.0 on rPi4 with 4GB
I wanted to monitor some pumps, and got some Zigbee power plugs.
At first these appeared to work fine. However, after adding some items to it:
… when the plug was last online, or last switched to ON, or the device connected to it started, I noticed that the plugs would report zero current on a regular interval, despite the connected device being on and using constant current.
2023-03-18 17:15:39.230 [INFO ] [b.core.model.script.SmartPlugs.05.02] - device is..: OFF
2023-03-18 17:20:06.252 [INFO ] [b.core.model.script.SmartPlugs.05.03] - device is..: ON
2023-03-18 17:20:09.260 [INFO ] [b.core.model.script.SmartPlugs.05.02] - device is..: OFF
2023-03-18 17:24:33.278 [INFO ] [b.core.model.script.SmartPlugs.05.03] - device is..: ON
2023-03-18 17:24:36.272 [INFO ] [b.core.model.script.SmartPlugs.05.02] - device is..: OFF
2023-03-18 17:29:03.300 [INFO ] [b.core.model.script.SmartPlugs.05.03] - device is..: ON
2023-03-18 17:29:06.293 [INFO ] [b.core.model.script.SmartPlugs.05.02] - device is..: OFF
2023-03-18 17:33:31.315 [INFO ] [b.core.model.script.SmartPlugs.05.03] - device is..: ON
2023-03-18 17:33:34.321 [INFO ] [b.core.model.script.SmartPlugs.05.02] - device is..: OFF
2023-03-18 17:37:58.338 [INFO ] [b.core.model.script.SmartPlugs.05.03] - device is..: ON
This interval can be 4min 27s, sometimes 5 min 54 sec.
In this case a fan which is a motor, constantly running.
I use current > 0 to see if a device is on…
rule "SP03: connected device state"
when
Item SmartPlug003_Current received update
then
if (SmartPlug003_Current.state > 0)
{
if (SmartPlug003_ConnectedDeviceState.state == OFF)
{
logInfo(LOG_PREFIX + "15.01", "SP 03 device is..: {}", SmartPlug001_ConnectedDeviceState.state)
SmartPlug003_ConnectedDeviceState.postUpdate(ON)
SmartPlug003_DeviceLastON.postUpdate(new DateTimeType())
}
}
else
{
if (SmartPlug003_ConnectedDeviceState.state == ON)
{
logInfo(LOG_PREFIX + "15.02", "SP 03 device is..: {}", SmartPlug001_ConnectedDeviceState.state)
SmartPlug003_ConnectedDeviceState.postUpdate(OFF)
SmartPlug003_DeviceLastOFF.postUpdate(new DateTimeType())
}
}
end
I have three of these plus; all behaving the same. (Crap plug?! These are from Aliexpress; 15AUD ~10 Euro.)
My query is:
- have other people experienced the same thing?
- have they found plugs that do not show this behaviour? If so, please let me know, so that I can get some.