From fe41e2c70750e1b1eb54536ee4a0c4616092eeac Mon Sep 17 00:00:00 2001 From: Petro31 <35082313+Petro31@users.noreply.github.com> Date: Wed, 17 Jul 2019 09:39:52 -0400 Subject: [PATCH 1/2] Update solaredge_local.markdown Remove sensors: section head. This is an incorrect section header. Adding the platform as a list item so new users can copy and paste into existing sensor sections. --- source/_components/solaredge_local.markdown | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/source/_components/solaredge_local.markdown b/source/_components/solaredge_local.markdown index a2f0129e713e..89914e498cf4 100644 --- a/source/_components/solaredge_local.markdown +++ b/source/_components/solaredge_local.markdown @@ -58,11 +58,10 @@ In case you would like to convert the values for example to kWh instead of the d {% raw %} ```yaml -# Example configuration.yaml entry for template platform -sensors: - platform: template - sensors: - solaredge_energy_this_year_template: - value_template: '{{(states('sensor.solaredge_energy_this_year') | float / 1000) | round(2)}}' +# Example configuration.yaml entry for sensor template platform + - platform: template + sensors: + solaredge_energy_this_year_template: + value_template: '{{(states('sensor.solaredge_energy_this_year') | float / 1000) | round(2)}}' ``` {% endraw %} From dc775955700cffcbf78eecc5ca847c7a3ae1503e Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 17 Jul 2019 22:36:14 +0200 Subject: [PATCH 2/2] :pencil2: Tweak --- source/_components/solaredge_local.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/_components/solaredge_local.markdown b/source/_components/solaredge_local.markdown index 89914e498cf4..2e146c5c9d19 100644 --- a/source/_components/solaredge_local.markdown +++ b/source/_components/solaredge_local.markdown @@ -59,9 +59,10 @@ In case you would like to convert the values for example to kWh instead of the d {% raw %} ```yaml # Example configuration.yaml entry for sensor template platform +sensor: - platform: template sensors: solaredge_energy_this_year_template: - value_template: '{{(states('sensor.solaredge_energy_this_year') | float / 1000) | round(2)}}' + value_template: "{{ (states('sensor.solaredge_energy_this_year') | float / 1000) | round(2) }}" ``` {% endraw %}