Sonoff power consumption - odd

Hello

I have a sensor in HA that pulls the power (w) reading via MQTT but they are different from what I see on the sonoff page. Anyone know why this would happen please? sometimes it is 1 or 2w other times it is 20-30w different


image

  - platform: mqtt
    name: "TV Power"
    state_topic: "tele/tv/SENSOR"
    value_template: '{{ value_json["ENERGY"]["Power"] }}'
    unit_of_measurement: "W"

The sampling of the two displays are not synchronised in time in any way. So if the value is changing or noisy the two values will not be the same.

I figured that would be the case… I take it there is no way to force to to update the mqtt quicker? or to me more accurate?

It’s not inaccurate, just sampling a changing signal at different times.

If you want the home assistant sensor to update more often get your sensor to publish more often.

figured it out… you can force Tasmota to update more frequently…

cmnd/tasmota/TelePeriod 30 - forces an update every 30 seconds.