Skip to content

Instantly share code, notes, and snippets.

@theundefined
Created October 6, 2020 21:45
Show Gist options
  • Save theundefined/da24dbccc223b6f9270b091fd52e50f2 to your computer and use it in GitHub Desktop.
Save theundefined/da24dbccc223b6f9270b091fd52e50f2 to your computer and use it in GitHub Desktop.
energy_total:
value_template: "{{ ( states('sensor.shellyem3_XXX_0_energy') | float + states('sensor.shellyem3_XXX_1_energy') | float + states('se
nsor.shellyem3_XXX_2_energy') | float ) | round(2) }}"
unit_of_measurement: 'kWh'
availability_template: "{{ states('sensor.shellyem3_XXX_0_energy') | int != 0 and states('sensor.shellyem3_XXX_1_energy') | int != 0
and states('sensor.shellyem3_XXX_2_energy') | int != 0 }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment