Quotes needed in templates for sensor names (#29832)

This commit is contained in:
Jonah Duckles 2023-11-14 09:20:56 +13:00 committed by GitHub
parent 5cba0d4690
commit a39daa8986
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ Recommended energy dashboard configuration for meter location in feed in path:
Recommended energy dashboard configuration for meter location in consumption path:
- The `Power grid` entity provided by the Fronius API is positive on import and negative on export. Split it up into import- and export-power entities by using helpers with templates `max(states(sensor.solarnet_power_grid) | float, 0)` and `max(0 - states(sensor.solarnet_power_grid) | float, 0)`.
- The `Power grid` entity provided by the Fronius API is positive on import and negative on export. Split it up into import- and export-power entities by using helpers with templates `max(states('sensor.solarnet_power_grid') | float, 0)` and `max(0 - states('sensor.solarnet_power_grid') | float, 0)`.
- Then use [Riemann sum](/integrations/integration/) to integrate these import-/export-power entities into energy values (kWh).
- Use these energy entities for `Grid consumption` and `Return to grid` in the energy dashboard configuration.