Files
ad_trident/apps/rooms/garage.yaml
2026-06-08 19:40:58 +02:00

36 lines
1.0 KiB
YAML

light_garage:
module: smartlight
class: SmartLight
entity: switch.garage_01
smart_conditions:
trigger_conditions: sensor.garage_last_motion < 3
blocking_conditions: sensor.garage_motion_light_level > 10
p1p_light:
module: smartswitch
class: SmartSwitch
entity: light.garage_p1p_lumiere_de_la_chambre
smart_conditions:
unavaibility_result: Disabled
trigger_conditions: binary_sensor.garage_occupancy or binary_sensor.garage_p1p_timelapse
blocking_conditions: not binary_sensor.p1p_is_printing and fan.garage_p1p_ventilateur_de_refroidissement <= 0 and fan.garage_p1p_ventilateur_de_la_chambre <= 0
p1p_switch:
module: smartswitch
class: SmartSwitch
entity: switch.garage_p1p_plug
off_conditions:
trigger_conditions: binary_sensor.is_anybody_sleeping or not binary_sensor.someone_home
blocking_conditions: binary_sensor.p1p_is_active
toggle_events:
garage_button:
event_name: zha_event
event_data:
device_name: 'garage_p1p_button'
args:
attribute_name: on_off