Hi!
After recent updates I started noticing that the power measurements on my Sonoff POW R1’s have stopped giving any power measurements other than 0.0.
Example:
[13:49:15][D][sensor:118]: 'Socket Washer Wifi Strength': Sending state -73.00000 dBm with 0 decimals of accuracy
[13:49:45][D][sensor:118]: 'Socket Washer Wifi Strength': Sending state -72.00000 dBm with 0 decimals of accuracy
[13:50:15][D][sensor:118]: 'Socket Washer Wifi Strength': Sending state -71.00000 dBm with 0 decimals of accuracy
[13:50:37][D][sensor:118]: 'Socket Washer Power': Sending state 0.00000 W with 1 decimals of accuracy
[13:50:37][D][sensor:118]: 'Socket Washer Energy': Sending state 0.00000 Wh with 3 decimals of accuracy
[13:50:45][D][sensor:118]: 'Socket Washer Wifi Strength': Sending state -72.00000 dBm with 0 decimals of accuracy
[13:51:15][D][sensor:118]: 'Socket Washer Wifi Strength': Sending state -73.00000 dBm with 0 decimals of accuracy
[13:51:37][D][hlw8012:082]: Got power=0.0W, voltage=0.0V
This is my configuration:
substitutions:
device_name: socket_washer
friendly_name: Socket Washer
esphome:
name: ${device_name}
platform: ESP8266
board: esp01_1m
board_flash_mode: dout
wifi:
networks:
- ssid: !secret wifi_iot_ssid
password: !secret wifi_iot_password
hidden: true
manual_ip:
static_ip: 192.168.5.18
subnet: 255.255.255.0
gateway: 192.168.5.1
ap:
ssid: ${device_name} AP
password: !secret wifi_ap_password
captive_portal:
# Enable logging
logger:
ota:
password: !secret ota_password
safe_mode: true
api:
switch:
- platform: gpio
name: ${friendly_name}
pin: GPIO12
id: relay
restore_mode: ALWAYS_ON
sensor:
- platform: wifi_signal
name: ${friendly_name} Wifi Strength
update_interval: 30s
- platform: hlw8012
sel_pin: 5
cf_pin: 14
cf1_pin: 13
current:
name: ${friendly_name} Current
unit_of_measurement: "A"
voltage:
name: ${friendly_name} Voltage
unit_of_measurement: "V"
power:
name: ${friendly_name} Power
id: power
unit_of_measurement: "W"
device_class: power
state_class: total_increasing
update_interval: 60s
- platform: total_daily_energy
name: ${friendly_name} Energy
power_id: power
unit_of_measurement: "Wh"
device_class: energy
state_class: total_increasing
time:
- platform: homeassistant
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: ${friendly_name} Button
on_press:
- switch.toggle: relay
- platform: status
name: ${friendly_name} Status
While I’d still need to calibrate them, before they were giving values, even if they weren’t accurate. Accuracy for me is not the main point, it’s mostly to trigger automations based on certain loads.
Other plugs based on the POW R2 using the cse7766 chip seem to have no issues at all.
Am I the only one experiencing this or is there anyone who has tips? Thanks!