How to set a sensor's data by hand

Hi,

I’ve setup a power-meter sensor (counting 1 wh every time the power-meter’s LED blinks).

My sensor requests the previous data at boot, to not start the count at 0 everytime. Now Is there a way I could set an initial value by hand using HA ? This initial value being the number of KWH my power-meter indicates.

Thanks,

Yann

Have a look here https://home-assistant.io/developers/rest_api/#post-apistatesltentity_id

Perfect, thanks !!

1 Like