# This is used for Telsa Solar / Consumption power distribution card
# sensor used to show power flow from Panels to Grid, but shows a negative at night
solaredge_template_panels_2_grid_day:
friendly_name: 'Panels 2 Grid during daylight'
value_template: >-
{{ (states('sensor.solaredge_solar_power') | float -
states('sensor.solaredge_power_consumption') | float ) | round(2) }}
unit_of_measurement: 'kW'
device_class: "power"
# shows the current grid power being fed from the grid to the house and doesn't allow it to show a negative number only positive numbers
solaredge_template_curent_grid_consumption:
friendly_name: grid 2 house"
unit_of_measurement: kW
device_class: power
value_template: >-
{% if states('sensor.solaredge_grid_power')|float < 0 %}
0
{% else %}
{{ states('sensor.solaredge_grid_power') }}
{% endif %}
# sensor used to show power flow from Panels to Grid and doesn't allow it to show a negative number only positive numbers
solaredge_template_panels_2_grid:
friendly_name: 'Panels 2 Grid'
unit_of_measurement: 'kW'
device_class: "power"
value_template: >-
{% if states('sensor.solaredge_template_panels_2_grid_day') | int > 0 %}
{{ states('sensor.solaredge_template_panels_2_grid_day') }}
{% else -%}
0
{% endif %}
# shows the solar power being fed to the house and doesn't allow it to show a negative number only positive numbers
solaredge_template_curent_solar_consumption:
friendly_name: Solar 2 House"
unit_of_measurement: kW
device_class: power
value_template: >-
{% if states('sensor.solaredge_template_panels_2_grid_day') | int > 0 %}
{{ states('sensor.solaredge_power_consumption') }}
{% else -%}
0
{% endif %}
Hey you all. Iām about to push the latest beta release 1.1.5 as the new version of the card. This one is NOT backwards compatible. Meaning you have to redefine the configuration. Now the flows are determining everything. Could some of you try to check out the Readme and let me know if this makes sense and you would know how to deal with it? Any feedback is welcome.
How can it be that it works well in the PC browser but not in the mobile app and the mobile browser? all is ā0ā there and not showing appliances thenā¦ ?
The mobile app needs you to refresh the cash. You find it underneath āMenuā->āApp configurationā->āreset frontend cacheā. For your mobile browsers you have to do a cache refresh also. But that will depend on your current browser. This is necessary since browsers on mobile donāt ācloseā.
I think I have a Bug in my Setup with this Sensor.
solar_consumption:
unique_id: 'solar_verbrauch_2bb67bd5264f4ec39f141f1722fea085'
value_template: >-
{% set solar = states('sensor.grid_infeed') | float %}
{% set house = states('sensor.hausverbrauch') | float %}
{{ solar if house > solar else house }}
device_class: "power"
unit_of_measurement: W