question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Power and Current not updated for POW devices

See original GitHub issue

Hi Alexx

I cannot seem to get the current power usage (W) from my POWR2 device after it is switched on. The guage remains at 0.

I presume this is either due to an incorrect configuration or has something to do with the refresh process.

My configuration.yaml settings for it are as follows:-

sonoff:
  username: !secret
  password: !secret
  mode: local
  reload: always
  scan_interval: 00:01:00  
  devices:
     switch.sonoff_10009xxxxx:
      name: POWR2
      force_update: True

sensor:
- platform: template
  sensors:
      power_pow:
      friendly_name: POWR2 Power Usage
      device_class: power
      value_template: "{{ state_attr('switch.sonoff_10009xxxxx', 'power') }}"

Any ideas? I have the same config in place for a TH16 temperature sensor and that works perfectly.

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
AlexxITcommented, Jun 21, 2020

I think you called homeassistant.turn_on service incorrectly. I do not see this in the logs.

Not a problem, I ordered this device a couple of weeks ago. I will fix it when it arrives.

0reactions
AlexxITcommented, Apr 24, 2022

Probably fixed in latest master-version

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blank power consumption pages, no info whatsoever (POW ...
Mine stays blank, I can only see current usage, not even daily. I reset my app and data, did not help. Can we...
Read more >
Sonoff POW R2 - how to know how I consumed in a day or ...
The main question is: Is it possible to extract from the device more info than the power, current, and voltage?
Read more >
Power - Math
The power at a circuit element is a measure of how quickly it converts energy. In a circuit, some elements deliver power (i.e....
Read more >
Sonoff POW - How to read Voltage, Current, Power, - Solutions
My goal was to get the voltage/current/power/energy information from the Sonoff POW device periodically updated (300 = 300s -> every 5 ...
Read more >
Sonoff Pow Power Monitoring Switch Module
Do not connect AC power and the serial connection at the same time The GND connection of the Pow is connected to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found