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
after 2023.5.1 there are no more data readings for sonoff R3 pow origin #4529
Comments
I too have the usual problem, which continues to be present even with 2023.5.3 |
Same problem here with a Sonoff POW Elite |
Same here All of my Sonoff POW Origin (esp32) stopped working after update. Platform cse7766 doesn't provide any readings. ESPHome 2023.5.3 |
ESPHome 2023.5.4 didn't fix this issue for me. |
This issue is present since ESPHome 2023.5.0 - tested by downgrading . Temporarily fixed by downgrading to ESPHome 2023.4.4 and updating all of my devices without code change. |
Same here with sonoff powr320d (Esphome 2023.5.5). |
Edit: The issue seems to be related to newer Sonoff POW (Elite, powr320d) with ESP32. |
The only related change I can see is esphome/esphome#4762 Maybe the problem is that the UART is not being referenced with an ID, and that PR caused it to fall back to the standard UART port (?) Can you try assigning a specific ID to the uart? like this: uart:
rx_pin: GPIO16
baud_rate: 4800
id: pm_uart # Assign ID to UART for power meter
################################################
# Sensor
#########################
sensor:
- platform: uptime
name: "${esp_devicename} Uptime"
- platform: cse7766
uart_id: pm_uart # Select power meter's UART
update_interval: 5s
current:
name: "${esp_devicename} Corrente"
voltage:
name: "${esp_devicename} Voltaggio"
power:
name: "${esp_devicename} Power"
id: power
energy:
name: "${esp_devicename} Energy"
id: energy
icon: mdi:chart-line Also, since the change only was implemented for Arduino, you can try using esp-idf platform and see if the issue is present. |
Thanx for the time and help @CarlosGS. UPDATE: I tried the esp-idf platform both with the uart_id and without it. It didn't work. So there must be something else. UPDATE #2 : Found a workaround! For some reason that is beyond my level of knowledge, esphome must communicate through UART1 not UART0. The only way to do this according to the mentioned change esphome/esphome#4762 is to define a "dummy" uart and a proper one like so:
And now it works! (but it is messy). It has to be a simpler way to be able to access the desired UART without this. It must also be said that voltage is not correct when the relay is off. It shows ~ 14 - 17 V when it should show ~235V. |
anyone have any news? it is really disastrous not to receive the data |
Try to use the workaround above. In the meantime lets hope @spectrumjade will have a look at it again. |
I didn't see your previous reply. Thank you |
Just found out that it also works with a simpler manner commenting out the "baud_rate" line, without using ids, so:
|
Issue still present in ESPHome 2023.6.5. I'm giving up. Updating code on all my devices with |
I believe it has to do with following PR esphome/esphome#4762 As it uses another UART when the logger is disabled on the first UART |
My new POWR320D was working with Tasmota but with ESPHome 2023.8.2 it wasn't able to read and display any power-related value (A, V, W, ecc.). After a lot of tries I found that Tasmota configure the UART at 4800 baud 8E1, while ESPHOME use 4800 baud 8N1. After setting
the values are read from CSE7766, despite this warning:
I hope this ca be useful. |
I see the datasheet also describes the even parity bit. So this should be correct. |
I can confirm this also happens on the Athom v3 EU Plug (ESP32 C3 based), where @mspiridakis's fix using a dummy uart works (thanks!). |
The problem
I have been using this code for a long time and it has always worked. After the update, I no longer receive current, voltage and power data.
Which version of ESPHome has the issue?
2023.5.1
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2023.5.3
What platform are you using?
ESP32
Board
Sonoff POW ORIGIN (R3)
Component causing the issue
No response
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: