Created
April 15, 2021 16:31
-
-
Save MarkWattTech/19c57363f256519ef08bcf19653f356b to your computer and use it in GitHub Desktop.
Code from the latest room assistant video
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CARD 1 - Current Presence | |
# The first card that shows you what state and what room a given device is in | |
type: glance | |
entities: | |
- entity: device_tracker.marks_apple_watch_tracker | |
- entity: sensor.marks_apple_watch_room_presence | |
title: Current Presence | |
# CARD 2 - Occupancy Card | |
type: entities | |
entities: | |
- binary_sensor.dining_room_occupied | |
# CARD 3 - People in a Room | |
type: entity-filter | |
entities: | |
- entity: sensor.marks_apple_watch_room_presence | |
name: Mark | |
state_filter: | |
- Dining Room | |
card: | |
type: glance | |
title: People in Dining Room | |
show_empty: false | |
# Occupancy Sensor Code | |
- platform: template | |
sensors: | |
dining_room_occupied: | |
friendly_name: "Dining Room Occupied" | |
value_template: >- | |
{{ is_state("sensor.marks_apple_watch_room_presence", "Dining Room")}} | |
kitchen_occupied: | |
friendly_name: "Kitchen Occupied" | |
value_template: >- | |
{{ is_state("sensor.marks_apple_watch_room_presence", "Kitchen")}} | |
## I haven't added the automations as they are very basic and super quick to whip up in the Automations UI | |
# Dont forget to subscribe! : https://www.youtube.com/c/markwatttech | |
# Got any questions or need any help? Check out the Facebook Group : https://www.facebook.com/MarkWattTech (Link is on the page) | |
# Not a fan of Facebook? I also have other social medias and a Sub reddit. All under MarkWattTech | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment