Closed kodek closed 3 years ago
Hey, sorry was busy the last few weeks. So the error happens on your tesla_card_solar_consumption template sensor. This sensor is giving you a load of ~1.1kwh in your example and it should be 0. The question is which flag or attribute tells you that it is active but not being used for the house consumption. So first the question would be which one is it using? power_solar_now or power_load_now? If it is using powerwall_soler_now maybe the is_active attribute is not being used? Or there is another one? If it is using powerwall_load_now mabye there is an is_active flag there too? You have to check on your template:
- name: 'tesla_card_solar_consumption'
unique_id: 'tesla_card_2bb67bd5264f4ec39f141f1722fea085'
state: >-
{% set solar = states('sensor.powerwall_solar_now') | float if is_state_attr('sensor.powerwall_solar_now', 'is_active', true) else 0 %}
{% set house = states('sensor.powerwall_load_now') | float %}
{{ solar if house > solar else house }}
device_class: power
unit_of_measurement: kW
If you want more help I would need a sample with also the values of the powerwall sensors and attributes, sadly I cannot test it because the powerwall was way too expensive in my country when I got my installation.
@kodek Please check out #76 and see if it fixes your issue :)
Thanks for the support, everyone! I have updated my config to reflect #76.
Unfortunately, the current power usage isn't very interesting, so I will have to wait until tomorrow. I'll report tomorrow if this is fixed. :)
I can confirm this is fixed. Thank you!
I see some rounding errors causing power to flow into my solar entity. I will look into it and follow up in a separate issue.
Hi there,
Having trouble setting things up based on the example Powerwall (in the documentation). It seems to be accurate when the Powerwall is set to "self-powered" mode. Unfortunately, I'm having issues when using time-based controls.
Recently, I changed the Powerwall to time-based controls/advanced. This causes solar to be exported directly to the grid, while the Powerwall feeds the house. Unfortunately, the Lovelace card shows extra solar power, and the house drawing the excess. Any ideas?
This is what it looks like in HA:
My Lovelace config:
My HA templates: