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 and binary_sensor.garage_entrance 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 or camera.garage_p1p_camera == 'streaming' blocking_conditions: not binary_sensor.p1p_is_printing and not fan.garage_p1p_ventilateur_de_refroidissement and not fan.garage_p1p_ventilateur_de_la_chambre 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