Skip to content

Instantly share code, notes, and snippets.

View huizebruin's full-sized avatar
🏠
Working from huizebruin

Wobbe huizebruin

🏠
Working from huizebruin
View GitHub Profile
@huizebruin
huizebruin / radio buttons - tekst links home assistant
Last active July 4, 2021 12:35
radio buttons - tekst links home assistant
@huizebruin
huizebruin / radio buttons home asssistant
Last active July 6, 2021 15:54
radio buttons home assistant.
type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:slider-button-card
entity: media_player.huiskamer
show_name: true
slider:
direction: left-right
background: triangle
alias: Omrin Morgen
description: ''
trigger:
- platform: time
at: '20:00:00'
condition:
- condition: or
conditions:
- condition: state
entity_id: sensor.omrin_morgen
@huizebruin
huizebruin / yaml
Created August 6, 2021 13:24
# sensoren voor HA informatie indien nog geen sensor en template de hekjes voor regel 2 en 3 weg halen
# sensoren voor HA informatie
# - platform: template
# sensors:
count_automations:
icon_template: mdi:autorenew
value_template: "{{ states.automation | count }}"
count_scripts:
icon_template: mdi:script-text-outline
value_template: "{{ states.script| count }}"
@huizebruin
huizebruin / welkom.yaml
Last active August 9, 2021 12:13
Handige welkoms informatie op je 1e dashboard pagina.
type: markdown
content: >-
<font size="4"><font color= {{'white' if is_state('sensor.time_of_day','goed')
else 'white'}}> {{states('sensor.time_of_day')}} {{user }}</font><br> <font
size="2"> Het is momenteel {{
states('sensor.temperatuur_voor_temperature')}}°C.<br> En het is {{
states('sensor.surhuisterveen_symbol')}}. <br> Het is
{{states('sensor.atc_temperature_7d')}}°C in de woonkamer.</font>
<br><br><center> <font size="2">Momenteel zijn er : <br> {{
expand(states.light) | selectattr('state','eq','on') |
@huizebruin
huizebruin / update-melding yaml
Created August 10, 2021 20:55
home assistant update notificatie
alias: 'Systeem : Home Assistant update notificatie'
description: ''
trigger:
- platform: state
entity_id: sensor.laatste_beschikbare_versie
condition:
- condition: template
value_template: |-
{{
states('sensor.laatste_beschikbare_versie')
@huizebruin
huizebruin / system counting.yaml
Created August 21, 2021 22:18
system counting frontend code home assistant
type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: button
tap_action:
action: more-info
entity: sensor.count_automations
show_state: true
icon_height: 30px
@huizebruin
huizebruin / systemsensors.yaml
Created January 19, 2022 20:34
Systeem sensoren van je home assistant systeem
sensor:
#==================
#=== System Sensors
#==================
- platform: command_line
name: RPi CPU Temperature
command: "cat /sys/class/thermal/thermal_zone0/temp"
value_template: "{{ value | multiply(0.001) | round(2) }}"
alias: 'Systeem : Home Assistant hacs update'
description: ''
trigger:
- platform: state
entity_id: sensor.hacs
condition:
- condition: template
value_template: '{{ states(trigger.entity_id) != ''unknown''}}'
- condition: template
value_template: '{{ (states(trigger.entity_id) | float) != 0}}'
@huizebruin
huizebruin / update_notifications.yaml
Last active May 4, 2022 14:31 — forked from mdegat01/update_notifications.yaml
Update Notifications Automation Blueprint
blueprint:
name: Update notifications
description: Stuur meldingen voor nieuwe updates en installeer of sla actie over. v04/05/2022
homeassistant:
min_version: '2022.4.0'
domain: automation
input:
update_entities:
name: Update entities
description: >-