Giter Site home page Giter Site logo

basnijholt / home-assistant-config Goto Github PK

View Code? Open in Web Editor NEW
1.7K 85.0 183.0 23.19 MB

Home Assistant config files, rewritten to use the latest features, 100+ documented automations, automatically generated ToC :house: :robot:

License: MIT License

Python 16.13% JavaScript 83.69% Shell 0.18%
home-assistant home-assistant-config yaml appdaemon automation home-automation config philips-hue iot internet-of-things lovelace lovelace-ui

home-assistant-config's Introduction

Bas Nijholt's Home Assistant config files

GitHub stars GitHub last commit HA Version HA Community Yaml Lint

Lovelace UI MacBook touchbar

Using my iOS Light and Dark Mode Themes.

See also my guide for my girlfriend ❤️.

Table of content

Noteworthy (useful) automations

See all my automations and its dependencies down the page!

My cool AppDaemon apps

Popular Reddit posts of features in this config

(Sorted from new to old)

Ideas?

  • Notify us when the window is open and it is raining.
  • Add budget keeper using the Bunq API

My devices

Switches 🎚 Units (#) Price per unit (€) Price (€)
TP-Link HS110 1 35.84 35.84
Xiaomi Aqara Magic Cube 1 11.08 11.08
Xiaomi Aqara Single Button 4 14.35 57.38
Philips Hue Dimmer switch 2 16.61 33.22
Total     137.52
       
Sensors 🌡 Units (#) Price per unit (€) Price (€)
Xiaomi Aqara Door Sensor 4 8.18 32.71
Xiaomi Aqara Temperature Sensor 5 9.15 45.74
Xiaomi Aqara Motion Sensor 10 9.79 97.85
Xiaomi Aqara Vibration Sensor 1 11.59 11.59
Xiaomi Mi Flora 3 15.54 46.63
Total     234.52
       
Vacuum 🧹 Units (#) Price per unit (€) Price (€)
Xiaomi Mi Roborock S5 1 294.31 294.31
Total     294.31
       
Media player 📺🔈 Units (#) Price per unit (€) Price (€)
KEF LS50 Wireless speakers 1 nan nan
KEF LSX speakers 1 nan nan
LG OLED 55 C9 1 nan nan
       
Lights 💡 Units (#) Price per unit (€) Price (€)
Philips Hue E27 White and Color 12 22.22 266.7
Philips Hue E14 White and Color 2 34.88 69.77
Philips Hue GU10 Ambient White 5 18.54 92.7
Philips Hue Go 1 57.05 57.05
Philips Hue LED strip 2m 2 43.2 86.39
Philips Hue LED strip 1m 1 13.84 13.84
Total     586.45
       
Hubs 🌎 Units (#) Price per unit (€) Price (€)
ConBee II 1 39.95 39.95
Total     39.95
       
Server 🖥 Units (#) Price per unit (€) Price (€)
Intel NUC Kit NUC8i3BEH 1 278.3 278.3
8 GB Crucial CT8G4SFS824A DDR4 2 25.52 51.04
Samsung 970 EVO M.2 500GB 1 94.99 94.99
Raspberry Pi 4, 4GB RAM (connected to power/gas meter and connected over MQTT to main HA instance) 1 70.9 70.9
Raspberry Pi 4 FLIRC Case 1 25.85 25.85
SanDisk Ultra microSDHC Memory Card 32GB 1 6.99 6.99
Total     528.07
       
Device tracker 🔍 Units (#) Price per unit (€) Price (€)
iPhone X with the iOS app 1 nan nan
iPhone SE2 with the iOS app 1 nan nan
       
Other Units (#) Price per unit (€) Price (€)
PlayStation Eye Webcam and Microphone array 1 14.95 14.95
DSMR - Slimme Meter kabel 1 19.95 19.95
Nodo-Shop – OpenTherm Gateway (OTGW) with NodeMCU 1 48.81 48.81
Total     83.71
       
Total €1904.53

Supervisor add-ons

I run a Supervised install with the following add-ons:

Automations - Table of Content

  1. Adaptive lighting 🌄🌇 (3 automations)
  2. Alarm clock ⏰ (1 automations)
  3. Apple Watch ⌚ (12 automations)
  4. Arriving 👞 (1 automations)
  5. Bike 🚲 (2 automations)
  6. Climate 🔥🥶 (7 automations)
  7. Control switches 🎛 (12 automations)
  8. Cube ∛ (2 automations)
  9. Doorbell 🚪🔔 (1 automations)
  10. Frontend 👨‍💻 (3 automations)
  11. Leaving 👞 (4 automations)
  12. Light 💡 (34 automations)
  13. Lovelace 👨‍💻 (1 automations)
  14. Mailbox 📫📣 (1 automations)
  15. Media player 🔈📺 (7 automations)
  16. Music 🎵 (2 automations)
  17. Notifications 🔔 (3 automations)
  18. Plant 🌱 (3 automations)
  19. Security 👮🚨 (7 automations)
  20. Night mode 🌕🌑 (5 automations)
  21. System 🖥 (7 automations)
  22. Test 🧪 (5 automations)
  23. Utilities 🧺👚🍽 (3 automations)
  24. Vacation mode 🏝 (2 automations)
  25. Vacuum 🧹 (6 automations)
  26. Work 💼 (3 automations)

⚠️ Total number of automations: 137 ⚠️

which uses:

^ toc

which uses:

^ toc

which uses:

which uses:

which uses:

which uses:

which uses:

^ toc

which uses:

^ toc

which uses:

which uses:

^ toc

which uses:

which uses:

which uses:

which uses:

which uses:

^ toc

which uses:

which uses:

which uses:

which uses:

which uses:

which uses:

which uses:

^ toc

which uses:

which uses:

^ toc

^ toc

which uses:

which uses:

which uses:

^ toc

which uses:

which uses:

which uses:

which uses:

^ toc

which uses:

which uses:

which uses:

which uses:

which uses:

which uses:

which uses:

which uses:

which uses:

which uses:

which uses:

which uses:

which uses:

which uses:

which uses:

which uses:

which uses:

which uses:

which uses:

which uses:

Set the input_select.last_script_bedroom such that colored lights will be chosen

which uses:

which uses:

which uses:

which uses:

which uses:

In case the other automation failed

which uses:

In case the other automation failed

which uses:

In case the other automation failed

which uses:

In case the other automation failed

which uses:

In case the other automation failed

which uses:

which uses:

Refresh the state of all Zigbee2MQTT lights

which uses:

^ toc

which uses:

^ toc

In the UI show the input_boolean.mailbox_full. It needs to be manually switched off after getting the mail."

which uses:

^ toc

The speaker is connected via an optical cable to the TV. Whenever the speakers aren't playing Spotify (via WiFi) directly, switch the source of the speakers to "Opt".

^ toc

which uses:

which uses:

^ toc

which uses:

which uses:

^ toc

which uses:

which uses:

which uses:

^ toc

which uses:

which uses:

which uses:

which uses:

which uses:

^ toc

which uses:

which uses:

which uses:

When it is half sleeping mode and there is no activity in the house for more than an hour go to total sleeping mode.

which uses:

Set the living room lights to sleep mode only when no-one is there anymore.

which uses:

^ toc

Update the DNS at Gandi to point my domain to my Home Assistant instance.

which uses:

Run shell and Python scripts in utils folder.

which uses:

Check whether we are receiving messages over MQTT from my other HA instance.

^ toc

^ toc

which uses:

which uses:

which uses:

^ toc

which uses:

which uses:

^ toc

which uses:

which uses:

which uses:

which uses:

which uses:

^ toc

which uses:

which uses:

^ toc

home-assistant-config's People

Contributors

basnijholt avatar bbigras avatar pixeye33 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

home-assistant-config's Issues

fix template-entity-row

This keeps changing back

entities:
  - entities:
      - icon: 'mdi:currency-eur'
        name: >
          {% set kwh = state_attr('switch.dishwasher', 'today_energy_kwh') |
          float %} {% set cost_today = 0.1979 * kwh %} Today used {{ kwh }} kWh
          and cost €{{ cost_today | round(2) }}.
        type: 'custom:template-entity-row'
    head:
      entity: binary_sensor.dishwasher
      name: Dishwasher
      secondary: >
        {% set on_for = as_timestamp(now()) -
        as_timestamp(states('input_datetime.dishwasher_started')) %} {% set
        off_for = as_timestamp(now()) -
        as_timestamp(states('input_datetime.dishwasher_done')) %} {% if
        states('binary_sensor.dishwasher') == 'on' %} Has been on for {{ (on_for
        / 60)|round(0) }} minutes. {% else %} Has been off for {{ (off_for /
        3600)|round(1) }} hours. {% endif %}
      state: >
        {% if is_state('binary_sensor.dishwasher', 'on') %} {{
        states('sensor.dishwasher_watts') }} Watt {% else %} Off {% endif %}
      type: 'custom:template-entity-row'
    type: 'custom:fold-entity-row'
  - entities:
      - icon: 'mdi:currency-eur'
        name: >
          {% set kwh = state_attr('switch.washing_machine', 'today_energy_kwh')
          | float %} {% set cost_today = 0.1979 * kwh %} Today used {{ kwh }}
          kWh and cost €{{ cost_today | round(2) }}.
        type: 'custom:template-entity-row'
    head:
      entity: binary_sensor.washing_machine
      name: Washing machine
      secondary: >
        {% set on_for = as_timestamp(now()) -
        as_timestamp(states('input_datetime.washing_machine_started')) %} {% set
        off_for = as_timestamp(now()) -
        as_timestamp(states('input_datetime.washing_machine_done')) %} {% if
        states('binary_sensor.washing_machine') == 'on' %} Has been on for {{
        (on_for / 60)|round(0) }} minutes. {% else %} Has been off for {{
        (off_for / 3600)|round(1) }} hours. {% endif %}
      state: >
        {% if is_state('binary_sensor.washing_machine', 'on') %} {{
        states('sensor.washing_machine_watts') }} Watt {% else %} Off {% endif
        %}
      type: 'custom:template-entity-row'
    type: 'custom:fold-entity-row'
  - entities:
      - icon: 'mdi:currency-eur'
        name: |
          Today's usage statistics
        type: 'custom:template-entity-row'
      - icon: 'mdi:currency-eur'
        name: >
          {{ states('sensor.daily_power')|round(2) }} kWh power → €{{
          states('sensor.daily_power_cost')|float|round(2) }}.
        type: 'custom:template-entity-row'
      - icon: 'mdi:currency-eur'
        name: >
          {{ states('sensor.daily_gas')|round(2) }} m³ gas → €{{
          states('sensor.daily_gas_cost')|float|round(2) }}.
        type: 'custom:template-entity-row'
      - icon: 'mdi:currency-eur'
        name: >
          €{{ states('sensor.daily_energy_fixed_cost')|float|round(2) }} (fixed)
          + €{{ (states('sensor.daily_gas_cost')|float +
          states('sensor.daily_power_cost')|float)|round(2)}} = €{{
          (states('sensor.daily_gas_cost')|float +
          states('sensor.daily_power_cost')|float +
          states('sensor.daily_energy_fixed_cost')|float)|round(2) }}.
        type: 'custom:template-entity-row'
      - type: divider
      - icon: 'mdi:currency-eur'
        name: |
          {{ as_timestamp(now()) | timestamp_custom('%B') }}'s usage statistics
        type: 'custom:template-entity-row'
      - icon: 'mdi:currency-eur'
        name: >
          {{ states('sensor.monthly_power')|round(2) }} kWh power → €{{
          states('sensor.monthly_power_cost')|float|round(2) }}.
        type: 'custom:template-entity-row'
      - icon: 'mdi:currency-eur'
        name: >
          {{ states('sensor.monthly_gas')|round(2) }} m³ gas → €{{
          states('sensor.monthly_gas_cost')|float|round(2) }}.
        type: 'custom:template-entity-row'
      - icon: 'mdi:currency-eur'
        name: >
          €{{ states('sensor.monthly_energy_fixed_cost')|float|round(2) }}
          (fixed) + €{{ (states('sensor.monthly_gas_cost')|float +
          states('sensor.monthly_power_cost')|float)|round(2)}} = €{{
          (states('sensor.monthly_gas_cost')|float +
          states('sensor.monthly_power_cost')|float +
          states('sensor.monthly_energy_fixed_cost')|float)|round(2) }}.
        type: 'custom:template-entity-row'
    head:
      entity: sensor.daily_gas
      name: Energy usage
      secondary: >
        Today {{ states("sensor.daily_power")|round(2) }} kWh and {{
        states("sensor.daily_gas")|round(2)}} m³ gas.
      state: >
        €{{ (states("sensor.daily_gas_cost")|float +
        states("sensor.daily_power_cost")|float +
        states("sensor.daily_energy_fixed_cost")|float)|round(2) }}
      type: 'custom:template-entity-row'
    type: 'custom:fold-entity-row'
show_header_toggle: false
title: Utilities
type: entities

'Cleaned Today' history_stats sensor instead of input_boolean

Took a lot of inspiration from your YAML (iets met Goede en Grote Kunstenaars...) so I'd figured I return the favor because I just started with HA and we have the same Vacuum cleaner.

My Roborock has a nasty error 13 which says that the charging pads are not clean. Well, they very much are. So almost every day, the Roborock gives me an error when Docked and will undock and therefore lose battery until it's dead. Happened a couple of times now pre-HA, where I just moved the Roborock back to the dock. With HA, I now wrote an automation that returns the Roborock after 1 minute when its status is error.

You'll probably guess by now, but since the status will turn from returning to docked when this error happens, I get spammed with notifications. It was a nice idea working with some kind of input_boolean, but you need to condition for it and write an automation to reset the input_boolean.

So after some rabbit-holing, I came up with a history_stats sensor with the following configuration:

---
# History Statistics Sensor to check if Vacuum has cleaned today. Resets itself during the night.
# 
- platform: history_stats
  name: Cleaned Today
  entity_id: vacuum.roborock_vacuum_s5
  state: 'cleaning'
  type: count
  start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
  end: '{{ now() }}'

This sensor counts the times the Roborock has cleaned. So if it cleans 10m, it will count as 1.

In my automation, I added the following:

---
# Automation to notify devices of succesful cleaning
# 
alias: "Vacuum: stopped cleaning"
id: "vacuum_stopped_cleaning"
trigger:
  platform: state
  entity_id: vacuum.roborock_vacuum_s5
  from: returning
  to: docked
condition:
  alias: "Checks if Vacuum already cleaned today"
  condition: numeric_state
  entity_id: sensor.cleaned_today
  below: 2
action:
  - service: notify.justin
    data:
      title: "Vacuum"
      message: "Cleanup successful after {{ state_attr('vacuum.roborock_vacuum_s5', 'cleaning_time') }} minutes."

A shorter road to Rome and no input_boolean / helper needed!

Quick fix for failing '0m' in hours outside sensor

I've implemented a quick fix for your issue that the hours outside sensor doesn't work with '0m'.
It does never work when the value has less than 3 arguments. I've added some dummy arguments if there are too few.

Just a quick hack. This can be programmed more efficiently, I guess.
That's why I haven't send a PR.

hours_outside_per_day_marcella: # XXX: fails when returns "0m"

The fix:

    hours_outside_per_day_marcella: # XXX: fails when returns "0m"
      friendly_name: Ten minutes before alarm
      value_template: >
        {% set value = state_attr("sensor.quarantine_meter_marcella", "value") %}
        {% if value != None %}

        {# ----- start fix ----- #}
        {% set args = 1 + (value | length) - (value.replace(' ', '') | length) %}
        {% if args < 2 %}
        {% set value = "0h " ~ value %}
        {% endif %}
        {% if args < 3 %}
        {% set value = "0d " ~ value %}
        {% endif %}
        {# ----- end fix ----- #}

        {% set d, h, m = value.split() %}
        {% set d, h, m = d[:-1] | int, h[:-1] | int, m[:-1] | int %}
        {% set hours_outside = ((14 - d) * 86400 - h * 3600 - m * 60) / 3600 %}
        {{ (hours_outside / 14) | round(1) }}
        {% endif %}

rclone backups

54 15 * * * rclone sync --stats-one-line -P /usr/share/hassio/backup secret-homeassistant:

lights_on_total_hours question

Hey first of all, many thanks for the publication of your script! it is great! Especially at the beginning it is nice if you can get ideas and suggestions here.

but i have a question about your lights_on_total_hours.
you enter different float for the different states here ?!? can you explain to me why that is?

    lights_on_total_hours:
      unit_of_measurement: h
      value_template: >
        {{ states('sensor.hours_bedroom_lights_have_been_on_last_7_days')|float * 7
            + states('sensor.hours_living_room_lights_have_been_on_last_7_days')|float * 5
            + states('sensor.hours_toilet_light_has_been_on_last_7_days')|float * 1
            + states('sensor.hours_bathroom_light_has_been_on_last_7_days')|float * 1
            + states('sensor.hours_kitchen_lights_have_been_on_last_7_days')|float * 2
            + states('sensor.hours_hall_lights_have_been_on_last_7_days')|float * 5
            + states('sensor.hours_bathroom_light_has_been_on_last_7_days')|float * 1 }}

in the part where you add up the total costs, I am also a little surprised.
As an entity you have specified "hours_bathroom_light_has_been_on_last_7_days".
are you doing this on purpose? so that you have a close look at the code and not just copy your script? ;)

- entity: sensor.hours_bathroom_light_has_been_on_last_7_days
      icon: mdi:clock
      name: Total cost estimate for last 7 days
      secondary: 'Total is {{ states(''sensor.lights_on_total_hours'') | round(1)
        }} hours, {{ states(''sensor.lights_on_total_kwh'') | round(1) }} kWh, €{{
        (states(''sensor.lights_on_total_kwh'')|float * 0.21) | round(2) }}.
        '
      state: '{{ states("sensor.hours_bathroom_light_has_been_on_last_7_days") }}
        h'
      type: custom:template-entity-row
    title: Lights on last 7 days
    type: entities

I have included 2 of my entities for the time being. one lamp was on for 1.26 h in the last 7 days. The other 8.08h

However, total coast has a value of 49.22 hours. but that doesn't work with the two lamps ?! Does that have something to do with the float values?

Remove Push from iOS:

Hi,

I came here from your reddit post made 2 years ago,

I just want you to notice that starting from 2022.04 the "push" option is deprecated and it have to be removed from the iOS integration.

Please see the message below:

"WARNING:homeassistant.components.ios:The 'push' option is deprecated, please remove it from your configuration"

You will update your automations accordly?

Moreover did you upgraded some of the action from AW? You already helped me so much but I was wondering if you have some other userful thing to share :)

Thank you

Broken link in README

"Alarm clock" in README is a broken link under AppDaemon heading.

Awesome job with your build - impressive!

Custom Background for HA Core

The instruction for adding the custom background does not work for HA Core as lovelace-ui.yaml does not exist.

Is there an alternative way to make this work?

Apple Watch Set lights

Hi! Not sure if you use this anymore? But i cant get this action to work after there have been some change in the HA IOS APP.
Does your work?

ESP8266 flashing NodeMCU esptool

Just for future reference, I did.

Download firmware from https://github.com/letscontrolit/ESPEasy/releases and then flash using:

esptool-0.4.13-osx$  ./esptool -vv -cd nodemcu -cb 115200 -bz 4M -cp /dev/cu.SLAB_USBtoUART -ca 0x00000 -cf ~/Desktop/ESP_Easy_mega-20200301_normal_ESP8266_4M1M.bin

Connect in HA using Integrations in the UI. With url: socket://192.168.1.26:6638, name "Thermostat", and ID "thermostat".

configuration does not include switch to lovelace-ui.yaml

Looking at configuration.yaml, I was expecting to see the lines

lovelace:
  mode: yaml

You have presented your dashboard in the file lovelace-ui.yaml
Without these, HA utilizes 'storage' mode, for dashboard configuration - located at /config/.storage/lovelace.dashboard_[name]
I don't see how lovelace-ui.yaml in your repo is loaded without switching lovelace to yaml mode.

Conbee II firmware

First I upgraded to

  1. deCONZ_ConBeeII_0x26650700.bin.GCF (problems with ZHA)
  2. deCONZ_ConBeeII_0x26660700.bin.GCF (problems with ZHA)
  3. deCONZ_ConBeeII_0x26580700.bin.GCF (problems with ZHA)
  4. deCONZ_ConBeeII_0x26570700.bin.GCF (problems with ZHA, see zigpy/zigpy-deconz#140 (comment))

So I went back to the latest firmware (deCONZ_ConBeeII_0x26660700.bin.GCF).

See versions on http://deconz.dresden-elektronik.de/deconz-firmware/

Flash with

sudo GCFFlasher_internal -t 60 -d /dev/ttyACM0 -f deCONZ_ConBeeII_0x26580700.bin.GCF 

Both give me issues, I could try: https://community.home-assistant.io/t/conbee-zha-firmware/104353/17?u=basnijholt

Install a different zigpy-deconz version using zigpy/zigpy-deconz#136 (comment)

Tracking issue in zigpy/zigpy-deconz#140

Apple Watch: set temperature

Hi! I am trying out your solution on "Apple Watch: set temperature". But i cant get it to trigger. I have copied all you code and changed it to fit my settings.
How did you get the identifier? I cant get my head around how this is done.

      identifier: set_temperature
      actions:
        - identifier: T15
          title: 15
        - identifier: T16
          title: 16
        - identifier: T17
          title: 17
        - identifier: T18
          title: 18
        - identifier: T19
          title: 19
        - identifier: T20
          title: 20
        - identifier: T21
          title: 21

I have these on my climate.ac that i can use:

hvac_modes:
  - dry
  - heat_cool
  - heat
  - fan_only
  - cool
  - 'off'
min_temp: 10
max_temp: 31
target_temp_step: 1
fan_modes:
  - quiet
  - low
  - medium
  - medium_high
  - high
  - auto
  - strong
swing_modes:
  - stopped
  - fixedTop
  - fixedMiddleTop
  - fixedMiddle
  - fixedMiddleBottom
  - fixedBottom
  - rangeFull
current_temperature: 21.5
temperature: 21
current_humidity: 41.4
fan_mode: auto
swing_mode: fixedTop
battery: null
friendly_name: Status
supported_features: 41
icon: 'mdi:air-conditioner'

Code for YAML to remove the menubar in home assistant per your theme?

I have the below code which I think worked on other themes before, when added to the active theme yaml.
Can it be adopted for your themes by any chance?
Or do you have some other code that means when you switch to one of these themes, the menubar goes away?
Many thanks regardless

# Header
  card-mod-theme: remove-the-x-icons
  card-mod-root-yaml: |
    paper-tabs$: |
      /* This hides tab scroll arrows */
      paper-icon-button {
        display: none !important;
      }
    ha-app-layout$: |
        /* This makes sure the bottom scrollbar isn't hiding cards */
        #contentContainer {
          padding-top: 0px !important;
          padding-bottom: 48px !important;
        }
    .: |
      .action-items {
        display: none !important;
      }

Home Assistants goes into Safe mode

After installing HACS, the IOS theme, changed the configuration and rebooted the system. It's starts in safe mode.

My config is:

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
frontend:
  ... # your configuration.
  themes: !include_dir_merge_named themes
  ... # your configuration.
  
# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

home-assistant-config/automations/frontend.yaml

Hi,
you have made a great job.
i've a problem, the automation not working, exactly this template:
data:
name: >
{% set name = states("input_select.theme") -%}
{% set suffix = "-alternative" if is_state("input_boolean.theme_alternative", "on") else "" -%}
ios-{{ name }}{{ suffix }}
mode: >
{{ "dark" if is_state("input_boolean.dark_mode", "on") else "light" }}
the automations don't change anything, can you help me?

Include screenshots for the configuration

I love the detailed configuration files and the ios theme you developed. However, I cannot find an up to date screenshot of this configuration. The real life example from home-assistant-macbook-touch-bar is unclear and the examples in lovelace-ios-themes seem outdated.

Could you provide some up to date screenshots of your home assistant?

Vacation mode

Hi Bas,

Thank you for publishing your configuration! :)

I have a question about vacation mode.
I cannot find any references in your configuration to the vacation mode boolean beside the automation itself. For what are you using vacation mode? Random lightning etc?

Apple Watch: temperature report - all on one line

Not sure if I'm doing something wrong here, but when I run the action it appears on one line/block of text rather than a newline per temperature? Also when I run the action I have to click on the notification to bring it up? not sure if thats an update to how actions run or a setting I have missed? See below for my code:

alias: "Apple Watch: temperature report"
description: ""
trigger:
  - platform: event
    event_type: ios.action_fired
    event_data:
      actionName: Temperature report
condition: []
action:
  - variables:
      iphone: >-
        notify.mobile_app_{{ trigger.event.data.sourceDeviceName.replace('-',
        '_') }}
  - service: "{{ iphone }}"
    data:
      title: Temperature
      message: >
        Living room: {{states('sensor.living_room_thermostat_current_temperature') }}°C
        Bedroom: {{ states('sensor.temperature_bedroom_temperature') }}°C Spare
        Spare Bedroom: {{ states('sensor.temperature_spare_bedroom_temperature') }}°C
        Thermostat: {{ state_attr('climate.living_room_thermostat', 'temperature') }}°C
        Outside: {{state_attr('sensor.temperature_outside_temperature', 'temperature') }}°C and it's {{ states('weather.home') }}
mode: parallel

Custom element doesn't exist: hui-entity-button-entity-row.

Hi Bas,
I hope you're well.
I've been using your lovelace config as a basis for mine. Was working fine up until a couple of days ago, and now on the lights stack I'm getting the following:
Custom element doesn't exist: hui-entity-button-entity-row.

Any ideas ?

Apple Watch: set temperature

Hi! Do you still get this to work? I cant get it to trigger temperature anymore. This is after core 2021.5.2

  - alias: "Apple Watch: set temperature"
    id: 'sett_temperatur'
    mode: parallel
    trigger:
      platform: event
      event_type: ios.action_fired
      event_data:
        actionName: Set temperature
    action:
      - variables:
          iphone: "notify.mobile_app_{{ trigger.event.data.sourceDeviceName.replace('-', '_') }}"
      - service: "{{ iphone }}"
        data:
          message: "Apple Watch: set temperature"
          data:
            push:
              category: set_temperature
      - wait_for_trigger:
          platform: event
          event_type: ios.notification_action_fired
          event_data:
            categoryName: set_temperature
        timeout: "00:00:20"
        continue_on_timeout: false
      - variables:
          temperature: "{{ wait.trigger.event.data.actionName.split('T')[1] | int }}"
      - service: climate.set_temperature
        data:
          entity_id: climate.ac
          temperature: "{{ temperature }}"```

missing daily_power_peak & offpeak

Hey!

your sensors.yaml is amazing!

I'm looking for a way to "measure" my light entities
your code looks promising. But I somehow I miss daily_power_offpeak and daily_power_peak

Are you missing these two entries? Or am I missing something?

Clock in header

Hi,

I've been searching in your lovelace yaml but couldn't find how you've put the clock in your header.
I would really like to know how I can do this in my config. I've already installed the iOS themes but I guess I'll need to put some code in the lovelace.yaml to make it happen.

Thanks in advance!

Nice dashboard btw!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.