July 16, 20206 yr Hi Guys Need some assistance in making the dashboard in HA a but more user friendly for the rest of the household. Basically I want to use the value from a sensor ( sensor.xxx_import_from_grid) which is the Watts imported from grid to update the display on a card on the Dashboard. So if sensor.xxx_import_from_grid > 0 then button should read "ESKOM" or be a specific color or whatever, else indicate "BATTERIES" (meaning import from grid is 0W). Just an easy way for the household to see if we are on Eskom or Batteries. TIA
July 17, 20206 yr Hi Tia I am currently running this in my home assistant with my Voltronic based inverter that is hooked up to a Rapsberry PI, it might help you with your requirement:https://github.com/ned-kelly/docker-voltronic-homeassistant Have a great day
July 17, 20206 yr Hi @Parky This is great, however I am using ICC - I assume the two can run in parallel and wont affect either?
July 20, 20206 yr Author I actually read up a bit more and used Templates within HA.Here is an example. Basically creates a new sensor entity with the states based on the filter/if statement. I can then setup my dashboard using these new states. ############ TEMPLATES ############### - platform: template sensors: powersource: friendly_name: "PowerSource" value_template: > {% if states('sensor.xxx_import_from_grid') != "0" %} ESKOM {% else %} BATTERIES {% endif %} gridstatus: friendly_name: "EskomStatus" value_template: > {% if states('sensor.xxx_ac_input_voltage') == "0" %} DOWN/LOADSHEDDING {% else %} UP {% endif %}
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.