I have several Riemann Integrals defined like this in yaml:
- platform: integration
source: sensor.zigbee_power_switch_6_power
name: Test Integration 1
unique_id: test_integration_1
method: left
unit_prefix: k
round: 3
I want to convert these to a Helper Riemann Integrals without losing history.
Is that possible and how?
I think, I solved it:
-
Make a BACK-UP !!! (I didn’t
)
-
First I remarked (with ‘#’) the defintion in the YAML-file (to keep the info for a while)
-
Then I restarted HA
-
I searched for the entity in HA (it still exists, but with an error) and deleted that one.
-
I started to create a new integral using the Helper,
-
I copied the name from the YAML into the name field
-
I filled in the same settings as in the YAML
-
I copied the source entity-name into the input-sensor field
-
I finished the creation of the Helper
And voila, the Integral is created with the same entity-id and with the correct history, missing maybe one integral calculation during the conversion.