-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Sonoff POW telemetry update #1032
Comments
It takes time to measure the power and current values, they are not available
immediately after the device is turned on. It can take up to 4 seconds to gather
the values.
|
if you do not want to wait telemetry period, you can query Energy infos using cmd: |
I do understand the problem and normally would also vote for a telemetrie update, if the power gets changed that is read for example on a per second intervall. But, after doing some investigation there are some not easy to overcome problems. 1. do you really want to flood your MQTT server every second, if there s a change. 2. what is a ‚change‘? More than 1% or 5% from actual value. All not very easy to Programm on a general way. My workaround is to use ‚teleperiod 15‘. This works OOTB and the delay is maximum 14 seconds. |
actually, it can take several seconds to calculate the power usage on the POW.
|
What about the value you see in the web interface. These look to me like calculated on a per second base. |
if you do not want to wait telemetry period, you can query Energy infos using cmd:
|
@stefanbode : Why should be MQTT message sent each second? When relay change state, then counter can be set to teleperiod value. E.g. If relay is set OFF, power and current became 0 immediately, there is no measure necessary. But this is still better than wait several seconds for correct values till teleperiod 15, 30, 60, ... seconds is reached. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem. |
When relay change state On/Off, on web interface are measured values Voltage, Power, Current,... updated immediately. But MQTT message is send only when telemetry period is reached. This leads to discrepancy in HA, where switch is updated immediatly e.g. to ON but Voltage, Power, Current shows still 0.
Can be sent after change of relay state also telemetry data to have correct values and not wait till telemetry period is reach?
tele/home214/ENERGY = {"Time":"2017-10-17T16:21:02", "Total":74.901, "Yesterday":0.587, "Today":1.297, "Period":1, "Power":79, "Factor":0.91, "Voltage":224, "Current":0.384}
The text was updated successfully, but these errors were encountered: