Open PaulAnnekov opened 7 years ago
Firmware: 1.4.1_145.0141
1st thing - it's weird that battery-less device (power plug) reports voltage :). Looks like a hub's bug. 2nd thing - as this component handles all voltage values and waits for max 3300, battery_level in power plug's state attribute is -60 :(.
voltage
3300
battery_level
-60
17-04-06 23:44:15 DEBUG (Thread-13) [custom_components.xiaomi] MCAST (heartbeat) << {'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"41","load_power":"0"}', 'model': 'plug', 'short_id': 413, 'sid': '153d0401558a61', 'cmd': 'heartbeat'}
voltage should be ignored for power plug until hub's firmware will be fixed to not send it for power plug.
@Danielhiversen that's relevant for your fork too.
Firmware: 1.4.1_145.0141
1st thing - it's weird that battery-less device (power plug) reports voltage :). Looks like a hub's bug. 2nd thing - as this component handles all
voltage
values and waits for max3300
,battery_level
in power plug's state attribute is-60
:(.voltage
should be ignored for power plug until hub's firmware will be fixed to not send it for power plug.@Danielhiversen that's relevant for your fork too.