37 lines
917 B
YAML
37 lines
917 B
YAML
blueprint:
|
|
name: ZBMINIR2 detached relay mode
|
|
description: Configure ZBMINIR2 to toggle light without turn off the switch.
|
|
domain: automation
|
|
author: Philipp Klüter
|
|
source_url: https://git.klueter.dev/ThronRycer/HomeAssistant/raw/branch/main/blueprints/sonoff/zbminir2-detached.yaml
|
|
|
|
input:
|
|
zbminir2_device:
|
|
name: ZBMINIR2 input
|
|
description: Binary sensor of the ZBMINIR2 (detach relay mode)
|
|
selector:
|
|
device:
|
|
manufacturer: Sonoff
|
|
model: ZBMINIR2
|
|
|
|
controlled_light:
|
|
name: Toggle target lights
|
|
description: The switch will toggle these lights.
|
|
selector:
|
|
entity:
|
|
domain: light
|
|
multiple: true
|
|
|
|
trigger:
|
|
- platform: device
|
|
domain: binary_sensor
|
|
device_id: !input zbminir2_device
|
|
type: opened
|
|
|
|
action:
|
|
- service: light.toggle
|
|
target:
|
|
entity_id: !input controlled_light
|
|
|
|
mode: single
|