vd Brink Home Automations

Home automations: Home Assistant, ESPHome, Node-RED and more.

Follow me on GitHub

Home Assistant dashboard: Examples

Home Assistant logo

Here you find some random Home Assistant (lovelace) dashboard examples which you can easily add to your own dashboards.




Table of Contents


News headline (nu.nl)

Show the most important news headline.
With clickable arrows to open the news site.

News nu.nl

Get every 15 minutes the latest news headline from the new site nu.nl.


# Sourcecode by vdbrink.github.io
# configuration.yaml
- platform: scrape
  resource: https://www.nu.nl
  select: ".title.fluid:first-of-type"
  name: "nu.nl headline"
  scan_interval: 900

Use a Markdown card to present the news.


# Sourcecode by vdbrink.github.io
# Dashboard card code
 - type: markdown
        content: |
          {{ states('sensor.nu_nl_headline') }} [>>](http://nu.nl)


Create a new custom sensor: chair occupancy

By default, the contact status is inverted as preferred. With this addition to configuration.yaml you can create a new sensor that shows the correct status in your dashboard.


# Sourcecode by vdbrink.github.io
# configuration.yaml
binary_sensor:
  - platform: template
    sensors:
      chair:
        friendly_name: "chair"
        value_template: >-
          {% if is_state('binary_sensor.contact1_contact', 'off') %}
             on
          {% else %}
             off
          {% endif %}

homeassistant:
  customize: 
    binary_sensor.chair:
      icon: mdi:chair-rolling


^^ Top

<< See also my other Home Assistant tips and tricks


Top | Homepage | Best Buy Tips