Hi all,
I have a sensor instantValueSensor that receive data (energy consumption) from a device at no specified time interval (it is a random time).
I want to create a new sensor sumSensor with the sum of every value from instantvaluesensor. I don’t want to use statistic sensor, because I do not have a specific time interval for instantValueSensor and so I risk to miss some values. I do not want to use automation also.
This should adjust the state of state of states.sumsensor everytime the state of instantvaluesensor changes. Using float(0) causes only numeric state values to be respected.