Skip to content

Instantly share code, notes, and snippets.

View thejeffreystone's full-sized avatar

Jeffrey Stone thejeffreystone

View GitHub Profile
@thejeffreystone
thejeffreystone / configuration.yaml
Created June 9, 2023 14:08
where to put sensors
# There are three ways you can add your sensors to Home Assistant, and they all start in the configuration.yaml file
#
# First you can just add them directly:
sensor:
- platform:
name:
# Or you can create a seperate file like sensors.yaml,
# you will need to of course create the sensors.yaml file first but add this to your configuration.yaml:
sensor: !include sensor.yaml
script:
get_room_services:
sequence:
- variables:
room: >
{% if room is defined %}
{{ room }}
{% else %}
{{ states('sensor.room_audio') }}
{% endif %}