Update Blueprint
This commit is contained in:
@@ -6,40 +6,36 @@ blueprint:
|
|||||||
source_url: https://git.klueter.dev/ThronRycer/HomeAssistant/raw/branch/main/blueprints/sonoff/zbminir2-detached.yaml
|
source_url: https://git.klueter.dev/ThronRycer/HomeAssistant/raw/branch/main/blueprints/sonoff/zbminir2-detached.yaml
|
||||||
|
|
||||||
input:
|
input:
|
||||||
zbminir2_device:
|
zbminir2_entity:
|
||||||
name: ZBMINIR2 input
|
|
||||||
description: Binary sensor of the ZBMINIR2 (detach relay mode)
|
|
||||||
selector:
|
|
||||||
device:
|
|
||||||
filter:
|
|
||||||
manufacturer: SONOFF
|
|
||||||
model: ZBMINIR2
|
|
||||||
multiple: false
|
|
||||||
zbminir2_enitity:
|
|
||||||
name: ZBMINIR2 input
|
name: ZBMINIR2 input
|
||||||
description: Binary sensor of the ZBMINIR2 (detach relay mode)
|
description: Binary sensor of the ZBMINIR2 (detach relay mode)
|
||||||
selector:
|
selector:
|
||||||
entity:
|
entity:
|
||||||
domain: binary_sensor
|
filter:
|
||||||
|
domain: binary_sensor
|
||||||
|
multiple: false
|
||||||
|
|
||||||
controlled_light:
|
controlled_light:
|
||||||
name: Toggle target lights
|
name: Toggle target lights
|
||||||
description: The switch will toggle these lights.
|
description: The switch will toggle these lights.
|
||||||
selector:
|
selector:
|
||||||
entity:
|
entity:
|
||||||
domain: light
|
filter:
|
||||||
|
domain: light
|
||||||
multiple: true
|
multiple: true
|
||||||
|
|
||||||
triggers:
|
triggers:
|
||||||
- platform: device
|
- domain: binary_sensor
|
||||||
domain: binary_sensor
|
entity_id: !input "zbminir2_entity"
|
||||||
device_id: !input zbminir2_device
|
|
||||||
entity_id: !input zbminir2_enitity
|
|
||||||
type: opened
|
type: opened
|
||||||
|
trigger: device
|
||||||
|
|
||||||
actions:
|
actions:
|
||||||
- action: light.toggle
|
sequence:
|
||||||
target:
|
- action: light.toggle
|
||||||
entity_id: !input controlled_light
|
metadata: {}
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: !input "controlled_light"
|
||||||
|
|
||||||
mode: single
|
mode: single
|
||||||
|
|||||||
Reference in New Issue
Block a user