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 / 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 / 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 / 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 / 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 }}"
alias: Omrin Morgen
description: ''
trigger:
- platform: time
at: '20:00:00'
condition:
- condition: or
conditions:
- condition: state
entity_id: sensor.omrin_morgen
@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