ndbroadbent
(Nathan Broadbent)
February 14, 2023, 1:27am
1
Hello, I’ve been having a problem with filters on the power values for a smart plug.
The power level gets stuck at a random higher level and doesn’t revert to 0W once the dryer is finished. It seems like my TS011F smart plug only reports the 0W value once, and then doesn’t report any further values until the power increases again. The blue lines in the graph are the original sensor data, and you can see that they do revert to 0W properly. The purple line is the filter sensor, and you can see it gets stuck at a higher value without going back down to 0W.
Here’s my filter sensor config:
sensor:
- platform: filter
name: "Filtered Dryer Plug power"
unique_id: filtered_dryer_plug_power
entity_id: sensor.dryer_plug_power
filters:
- filter: outlier
window_size: 4
radius: 4.0
- filter: lowpass
time_constant: 10
precision: 2
What’s the best way to fix the filter so that it properly reverts to 0W?
Should I change some settings in zigbee2mqtt?
I’m having a similar problem (I don’t use filters) with the same plug since I installed Zigbee2MQTT v1.30.4-1 this week.
Did you manage to solve it?
papperone
(Giovanni C.)
May 8, 2023, 6:19am
3
same here, 2 plugs TS011F with same problem since I upgraded to z2m 1.30.4
It appears to be fixed in the latest dev version:
opened 08:46AM - 05 May 23 UTC
problem
### What happened?
After upgrade to 1.30.4-1 from 1.30.3-1, my 4 TS011F_plug_… 3 smart plug stop working. They froze and cannot be controlled anymore.
This happens after 3-4 hours after upgrade. Right after the upgrade, everything was working great.
edit :
by looking at the logs, plug stop transmitting and being actualised. They use to transmit every seconds. While being frozen, they transmitted once every 10 min.
### What did you expect to happen?
To be able to contol the plugs
### How to reproduce it (minimal and precise)
Upgrade from 1.30.3-1 to 1.30.4-1 and wait 3-4 hours
### Zigbee2MQTT version
1.30.4 commit: unknown
### Adapter firmware version
7.1.1.0 build 273
### Adapter
skyconnect
### Debug log
_No response_