Skip to content
View in the app

A better way to browse. Learn more.

Power Forum - Renewable Energy Discussion

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

HA Assistance

Featured Replies

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

  • 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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.