Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get POWR2 to report status #941

Closed
d1964b opened this issue Aug 5, 2022 · 7 comments
Closed

Cannot get POWR2 to report status #941

d1964b opened this issue Aug 5, 2022 · 7 comments
Labels
question Further information is requested

Comments

@d1964b
Copy link

d1964b commented Aug 5, 2022

Ever since upgrading to SonoffLAn 3.x I've been unable to get power/current/voltage readings reported back to home assistant from amy POWR2 devices. I didn't have any issues prior to v3.
In the first instance I have the error reported in the supervisor log that the "sensor.sonoff_1000cd9566_current has unit A which is unsupported for device_class power" same error for sensor.sonoff_1000cd9566_voltage . Neither device was being recognised as the correct device class. Eventually I managed to figure out I needed to add a customized device class to my config file:

`  customize:`
`   sensor.sonoff_1000cd9566_current:`
`      device_class: current`
`   sensor.sonoff_1000cd9566_voltage:`
`      device_class: voltage ` 

That at least got rid of the device_class error. But I still was not getting any voltage/power/current reported to HA ( other than the voltage figure detected at the startup of HA - after that it just flatlined with no variation at all ).
If I repeatedly called the update_entity service ( every 3 mins say ) I could get some values reported , but if the update_entity call coincides with a switch.turn_on or off call it would cause them to fail. In the case of the turn_on by causing the entire device to go offline or in the case of a turn_off to just not work leaving the device in a turned on state. As far as I can see the update_entity call is supposed to be used to advise the user that there is a new code update available for a device or entity , so why this service is supposed to be used to report values like power etc I simply don't get.

I've tried to config the devices as follows :

sonoff:
--username: xxxxxxxxxxx
--password: xxxxxxxxxx
--mode: local
--devices:
----1000cd9566:
------reporting:
--------power: [30, 180, 0.5]  # min seconds, max seconds, min delta value
--------current: [10, 180, 0.1]
--------voltage: [30, 180, 0.5]

N.B. The code above is correctly formatted I believe in the config file , but I just cannot get the 'insert code' option here to retain formatting so Ive had to use - for space to represent indentation.
But I get nothing reported.
When running an update_entity call every 3 mins I have seen the voltage fluctuating by as much as between 250v to 242v in just 20 mins so if this reporting config was doing something it should surely be able to report that.

Will someone please tell me what I have to do to get this to report back the status of these devices ?

The supervisor logs don't seem to show anything relevant , just multiple instances of stuff like this - that I think have already bee reported:

2022-08-04 23:51:30 WARNING (MainThread) [homeassistant.components.number] custom_components.sonoff.number::XPulseWidth is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom component author.
2022-08-04 23:51:35 WARNING (MainThread) [homeassistant.components.number] Entity sonoff.sonoff_10006c0d87_pulseWidth (<class 'custom_components.sonoff.number.XPulseWidth'>) is using deprecated NumberEntity features which will be unsupported from Home Assistant Core 2022.10, please report it to the custom component author.

the debug logs are just things like this:

2022-08-04 23:51:30 [D] SysInfo: {'installation_type': 'Home Assistant OS', 'version': '2022.7.7', 'dev': False, 'hassio': True, 'virtualenv': False, 'python_version': '3.10.5', 'docker': True, 'arch': 'x86_64', 'timezone': 'Europe/London', 'os_name': 'Linux', 'os_version': '5.15.55', 'user': 'root', 'supervisor': '2022.07.0', 'host_os': 'Home Assistant OS 8.4', 'docker_version': '20.10.14', 'chassis': 'vm', 'sonoff_version': '3.1.0 (3871c0b)'}
2022-08-04 23:51:32 [D] 7 devices loaded from Cloud
2022-08-04 23:51:32 [D] 1000cd9566 UIID 0032 | {'version': 8, 'sledOnline': 'off', 'fwVersion': '3.5.0', 'rssi': -54, 'init': 1, 'alarmType': 'pcv', 'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'power': '0.00', 'voltage': '248.89', 'current': '0.00', 'oneKwh': 'stop', 'uiActive': 60, 'hundredDaysKwh': 'get', 'timeZone': 1, 'demNextFetchTime': 1659654000000}
2022-08-04 23:51:32 [D] LOCAL mode start
2022-08-04 23:51:33 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.02, 'current': 0} | 45265
2022-08-04 23:51:35 [D] Add 41 entities
2022-08-04 23:54:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45266, 'sequence': '1659653640001', 'error': 0}
2022-08-04 23:54:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 245.11, 'current': 0} | 45266
2022-08-04 23:57:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45267, 'sequence': '1659653820002', 'error': 0}
2022-08-04 23:57:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 245.71, 'current': 0} | 45267
2022-08-05 00:00:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45268, 'sequence': '1659654000002', 'error': 0}
2022-08-05 00:00:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 245.83, 'current': 0} | 45268
2022-08-05 00:03:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45269, 'sequence': '1659654180001', 'error': 0}
2022-08-05 00:03:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.64, 'current': 0} | 45269
2022-08-05 00:06:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45270, 'sequence': '1659654360002', 'error': 0}
2022-08-05 00:06:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.71, 'current': 0} | 45270
2022-08-05 00:09:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45271, 'sequence': '1659654540002', 'error': 0}
2022-08-05 00:09:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.1, 'current': 0} | 45271
2022-08-05 00:12:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45272, 'sequence': '1659654720002', 'error': 0}
2022-08-05 00:12:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 242.7, 'current': 0} | 45272
2022-08-05 00:15:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45273, 'sequence': '1659654900000', 'error': 0}
2022-08-05 00:15:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 245.41, 'current': 0} | 45273
2022-08-05 00:18:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45274, 'sequence': '1659655080002', 'error': 0}
2022-08-05 00:18:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.64, 'current': 0} | 45274
2022-08-05 00:21:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45275, 'sequence': '1659655260002', 'error': 0}
2022-08-05 00:21:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 247.86, 'current': 0} | 45275
2022-08-05 00:24:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45276, 'sequence': '1659655440000', 'error': 0}
2022-08-05 00:24:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 247.25, 'current': 0} | 45276
2022-08-05 00:27:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45277, 'sequence': '1659655620002', 'error': 0}
2022-08-05 00:27:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 247.1, 'current': 0} | 45277
2022-08-05 00:30:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45278, 'sequence': '1659655800002', 'error': 0}
2022-08-05 00:30:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 247.56, 'current': 0} | 45278
2022-08-05 00:33:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45279, 'sequence': '1659655980002', 'error': 0}
2022-08-05 00:33:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.02, 'current': 0} | 45279
2022-08-05 00:36:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45280, 'sequence': '1659656160000', 'error': 0}
2022-08-05 00:36:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 247.25, 'current': 0} | 45280
2022-08-05 00:39:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45281, 'sequence': '1659656340002', 'error': 0}
2022-08-05 00:39:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.64, 'current': 0} | 45281
2022-08-05 00:42:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45282, 'sequence': '1659656520000', 'error': 0}
2022-08-05 00:42:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.64, 'current': 0} | 45282
2022-08-05 00:45:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45283, 'sequence': '1659656700001', 'error': 0}
2022-08-05 00:45:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.64, 'current': 0} | 45283
2022-08-05 00:48:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45284, 'sequence': '1659656880002', 'error': 0}
2022-08-05 00:48:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 247.25, 'current': 0} | 45284
2022-08-05 00:51:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45285, 'sequence': '1659657060002', 'error': 0}
2022-08-05 00:51:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 247.86, 'current': 0} | 45285
2022-08-05 00:54:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45286, 'sequence': '1659657240002', 'error': 0}
2022-08-05 00:54:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 247.25, 'current': 0} | 45286
2022-08-05 00:57:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45287, 'sequence': '1659657420002', 'error': 0}
2022-08-05 00:57:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 247.86, 'current': 0} | 45287
2022-08-05 01:00:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45288, 'sequence': '1659657600002', 'error': 0}
2022-08-05 01:00:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 251.34, 'current': 0} | 45288
2022-08-05 01:03:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45289, 'sequence': '1659657780002', 'error': 0}
2022-08-05 01:03:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.64, 'current': 0} | 45289
2022-08-05 01:06:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45290, 'sequence': '1659657960001', 'error': 0}
2022-08-05 01:06:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 244.58, 'current': 0} | 45290
2022-08-05 01:09:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45291, 'sequence': '1659658140002', 'error': 0}
2022-08-05 01:09:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.02, 'current': 0} | 45291
2022-08-05 01:12:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45292, 'sequence': '1659658320001', 'error': 0}
2022-08-05 01:12:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.64, 'current': 0} | 45292
2022-08-05 01:15:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45293, 'sequence': '1659658500000', 'error': 0}
2022-08-05 01:15:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 245.03, 'current': 0} | 45293
2022-08-05 01:18:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45294, 'sequence': '1659658680001', 'error': 0}
2022-08-05 01:18:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.64, 'current': 0} | 45294
2022-08-05 01:21:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45295, 'sequence': '1659658860001', 'error': 0}
2022-08-05 01:21:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 247.25, 'current': 0} | 45295
2022-08-05 01:24:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45296, 'sequence': '1659659040000', 'error': 0}
2022-08-05 01:24:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.02, 'current': 0} | 45296
2022-08-05 01:27:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45297, 'sequence': '1659659220000', 'error': 0}
2022-08-05 01:27:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 245.41, 'current': 0} | 45297
2022-08-05 01:30:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45298, 'sequence': '1659659400002', 'error': 0}
2022-08-05 01:30:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.02, 'current': 0} | 45298
2022-08-05 01:33:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45299, 'sequence': '1659659580002', 'error': 0}
2022-08-05 01:33:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 245.41, 'current': 0} | 45299
2022-08-05 01:36:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45300, 'sequence': '1659659760000', 'error': 0}
2022-08-05 01:36:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 245.71, 'current': 0} | 45300
2022-08-05 01:39:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45301, 'sequence': '1659659940002', 'error': 0}
2022-08-05 01:39:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.02, 'current': 0} | 45301
2022-08-05 01:42:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45302, 'sequence': '1659660120001', 'error': 0}
2022-08-05 01:42:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 245.21, 'current': 0} | 45302
2022-08-05 01:45:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45303, 'sequence': '1659660300000', 'error': 0}
2022-08-05 01:45:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.18, 'current': 0} | 45303
2022-08-05 01:48:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45304, 'sequence': '1659660480001', 'error': 0}
2022-08-05 01:48:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.33, 'current': 0} | 45304
2022-08-05 01:51:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45305, 'sequence': '1659660660001', 'error': 0}
2022-08-05 01:51:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.33, 'current': 0} | 45305
2022-08-05 01:54:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45306, 'sequence': '1659660840000', 'error': 0}
2022-08-05 01:54:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.64, 'current': 0} | 45306
2022-08-05 01:57:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45307, 'sequence': '1659661020001', 'error': 0}
2022-08-05 01:57:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.02, 'current': 0} | 45307
2022-08-05 02:00:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45308, 'sequence': '1659661200000', 'error': 0}
2022-08-05 02:00:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 245.94, 'current': 0} | 45308
2022-08-05 02:03:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45309, 'sequence': '1659661380001', 'error': 0}
2022-08-05 02:03:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 245.11, 'current': 0} | 45309
2022-08-05 02:06:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45310, 'sequence': '1659661560002', 'error': 0}
2022-08-05 02:06:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.02, 'current': 0} | 45310
2022-08-05 02:09:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45311, 'sequence': '1659661740000', 'error': 0}
2022-08-05 02:09:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 247.86, 'current': 0} | 45311
2022-08-05 02:12:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45312, 'sequence': '1659661920000', 'error': 0}
2022-08-05 02:12:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 247.25, 'current': 0} | 45312
2022-08-05 02:15:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45313, 'sequence': '1659662100000', 'error': 0}
2022-08-05 02:15:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 249.11, 'current': 0} | 45313
2022-08-05 02:18:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45314, 'sequence': '1659662280002', 'error': 0}
2022-08-05 02:21:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45315, 'sequence': '1659662460001', 'error': 0}
2022-08-05 02:21:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.02, 'current': 0} | 45315
2022-08-05 02:24:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45316, 'sequence': '1659662640002', 'error': 0}
2022-08-05 02:24:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 247.25, 'current': 0} | 45316
2022-08-05 02:27:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45317, 'sequence': '1659662820000', 'error': 0}
2022-08-05 02:27:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 247.86, 'current': 0} | 45317
2022-08-05 02:30:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45318, 'sequence': '1659663000001', 'error': 0}
2022-08-05 02:30:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 247.86, 'current': 0} | 45318
2022-08-05 02:33:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45319, 'sequence': '1659663180002', 'error': 0}
2022-08-05 02:33:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 246.64, 'current': 0} | 45319
2022-08-05 02:36:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45320, 'sequence': '1659663360001', 'error': 0}
2022-08-05 02:36:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 247.86, 'current': 0} | 45320
2022-08-05 06:21:00 [D] 1000cd9566 => Local4 | {'sledOnline': 'off'} <= {'seq': 45395, 'sequence': '1659676860000', 'error': 0}
2022-08-05 06:21:00 [D] 1000cd9566 <= Local3 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'off', 'startup': 'off', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'off', 'power': 0, 'voltage': 247.86, 'current': 0} | 45395
@phawker
Copy link

phawker commented Aug 12, 2022

I have a similar issue. Voltage is reporting properly but current and power are not.

@AlexxIT AlexxIT added the question Further information is requested label Sep 2, 2022
@AlexxIT
Copy link
Owner

AlexxIT commented Sep 2, 2022

I can't do anything when your device really reports zero power and current.
First you need to stop using mode local. This is really unnecessary and maybe it helps.

@d1964b
Copy link
Author

d1964b commented Sep 3, 2022

When the values on the device for power and current are 0 I'm happy for it to report 0 in HA, When the values are not 0 I would expect it to report that to HA but it doesn't. (Unless I'm repeatedly polling the device with the update_entity workaround - see OP for when this can be a problem in itself.).
The example of the log file I gave you was to provide you with evidence that I was regularly polling the device , with the add-on's code ( ie, independent of update_entity) but despite that nothing was reported whatever their value in HA. It's also worth pointing out that even when the device is not in use , the voltage values should be reported since they regularly fluctuate to an extent that should have been triggered by the rule defined above. But the only voltage value I get is the value reported when HA is restarted - after that there is apparantly no fluctuation (not true).
Please advise why I need to stop using local mode ? It was the presence of a local mode that encouraged me to use this add-on in the first place ( why should I be dependent on the internet to control and monitor devices that are all on the same subnet as my HA server ? ) , also I've always used local mode and had no problems historically when using version 2.x of the software. Your own readme says the POWR2 has been tested in local mode ! I don't have any problems with getting my devices detected or displayed.

@AlexxIT
Copy link
Owner

AlexxIT commented Sep 3, 2022

You don't read docs carefully. Auto mode uses local and cloud connection simultaneously. There is one cloud command that can force device auto updates. Device will send updates locally. But command can be send only with auto or with cloud mode.

@d1964b
Copy link
Author

d1964b commented Sep 3, 2022

I did read your docs carefully and it specifically says local mode can be used and that it does not require internet connectivity. Great that is what I want too. The only need for cloud connectivity , you suggest , is to get a list registered devices. Fine when my devices change I'll use auto mode to update my device list. But my devces are not changing so I'm happy to continue to use the file that is saved locally. At no point anywhere do you say internet connectivity is required to get the power/voltage/current values from your device. If that is the situation then say so in your readme , make it unambiguosly clear to everyone exactly what functionality you are giving up not using auto or cloud mode.

@AlexxIT
Copy link
Owner

AlexxIT commented Sep 3, 2022

Docs says:

  • In auto mode component using both local and cloud connections to your devcies... This mode is recommended for most general user.
  • auto mode and local mode can work without Internet connection.

Cloud help not necessary for some pow devices. But for user with problems it could help.

I'm not related with sonoff or ewelink, so don't know why this happens.

@AlexxIT
Copy link
Owner

AlexxIT commented Mar 31, 2023

Please reopen the issue if it is still relevant

@AlexxIT AlexxIT closed this as completed Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants