Files
zorruno-homeassistant/packages/nspanel_keepawake.yaml
2024-12-13 14:33:44 +13:00

46 lines
1.4 KiB
YAML

#nspanel_keepawake:
# name: Entities to keep NSPanel Awake
# unique_id: Entities_to_keep_NSPanel_Awake
# # Keeps the bedroom NSPanel Bright if any of these are true
# If 'all' is set to true, they are 'ANDed' otherwise 'ORd'
#all: true
# entities:
# - binary_sensor.inverted_quiet_time_sensor
# - light.tasmo_arlecrgb_3522_bulb_3
# - light.tasmo_ifan02_3793_bedrm1_1
# - light.tasmo_ks811t_3647_bedrm1_1b
#light:
# - platform: template
# sensors:
# inverted_quiet_time_sensor:
# value_template: >-
# {{ is_state('input_boolean.quiet_time', 'off') }}
# #device_class: None
# friendly_name: Quiet Time (Inverted)
light:
- platform: template
lights:
inverted_quiet_time_as_light:
friendly_name: "Inverted Quiet time as light"
unique_id: "inverted quiet time as light"
value_template: "{{ is_state('input_boolean.quiet_time', 'off') }}"
turn_on:
service: light.turn_on
target:
entity_id: light.inverted_quiet_time_light
turn_off:
service: light.turn_off
target:
entity_id: light.inverted_quiet_time_as_light
- platform: group
name: "Entities to keep NSPanel Awake"
unique_id: "Entities to keep NSPanel Awake"
entities:
- light.inverted_quiet_time_as_light
- light.tasmo_arlecrgb_3522_bulb_3
- light.tasmo_ifan02_3793_bedrm1_1
- light.tasmo_ks811t_3647_bedrm1_1b