SonoffLAN: Power and Current not updated for POW devices

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

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

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.