Skip to content

Instantly share code, notes, and snippets.

View jlpouffier's full-sized avatar

JLo jlpouffier

View GitHub Profile
type: horizontal-stack
cards:
- type: tile
entity: sensor.living_room_temperature
name: Home
vertical: true
color: primary
icon: mdi:home
tap_action:
action: navigate
@jlpouffier
jlpouffier / card.yaml
Created August 9, 2023 09:20
Home Assistant Hot Tip of the Day: A Navigation Card to declutter your side bar
type: entities
entities:
- type: button
icon: mdi:format-list-bulleted-type
name: Journal
action_name: NAVIGER
tap_action:
action: navigate
navigation_path: /logbook
- type: button
@jlpouffier
jlpouffier / irrigation.yaml
Created August 8, 2023 11:49
Irrigation.yaml
- id: '1688129246113'
alias: Irrigation intelligente - Calculer fin arrosage
description: ''
trigger:
- platform: state
entity_id:
- switch.irrigation_switch
to: 'on'
from: 'off'
condition:
@jlpouffier
jlpouffier / script.yaml
Created August 6, 2023 18:29
Home Assistant Hot Tip of the Day: Run vs Turn on Script
turn_on_kitchen_lights_and_wait_3_seconds:
alias: Turn on Kitchen Lights and Wait 3 seconds
sequence:
- service: light.turn_on
data: {}
target:
entity_id: light.kitchen_lights
- delay:
hours: 0
minutes: 0
@jlpouffier
jlpouffier / configuration.yaml
Created August 5, 2023 20:41
Home Assistant Hot Tip of the Day: Home Occupancy Sensor
# https://www.home-assistant.io/integrations/template/
template:
- binary_sensor:
- name: home_occupied
unique_id: home_occupied
state: "{{states('zone.home')|int > 0}}"
device_class: occupancy
attributes:
is_home_full: "{{states('zone.home')|int == expand(states.person)|list|count}}"
@jlpouffier
jlpouffier / conditions.yaml
Last active August 5, 2023 20:42
Home Assistant Hot Tip of the day: home occupancy
# This condition will be true if your home is empty
condition:
- condition: state
entity_id: zone.home
state: "0"
# This condition will be true if your home is occupied
condition:
- condition: numeric_state
entity_id: zone.home