P1P integration

This commit is contained in:
2026-06-08 19:40:58 +02:00
parent 77cd648d03
commit 09681d93bb
4 changed files with 47 additions and 10 deletions

View File

@@ -6,3 +6,30 @@ light_garage:
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