Nedis Zigbee Remote Control ZBRC10WT - Tuya TS0215A_remote
Place this file in your Home Assistant config folder and Restart Home Assistant.
/config/blueprints/automation/local/nedis_remote.yaml
Nedis Zigbee Remote Control - Blueprint for Zigbee2MQTT:
blueprint:
name: Zigbee2MQTT - Nedis Remote
description: Control your smart home devices with the Nedis Zigbee Remote Control
domain: automation
input:
remote:
name: Nedis Remote Sensor
description: The Nedis remote sensor entity
selector:
entity:
domain: sensor
integration: mqtt
arm_all_zones_action:
name: Top Right Button Action
description: Action to run when the top right button is pressed
default: []
selector:
action: {}
emergency_action:
name: Top Left Button Action
description: Action to run when the top left button is pressed
default: []
selector:
action: {}
arm_day_zones_action:
name: Bottom Left Button Action
description: Action to run when the bottom left button is pressed
default: []
selector:
action: {}
disarm_action:
name: Bottom Right Button Action
description: Action to run when the bottom right button is pressed
default: []
selector:
action: {}
mode:
name: Automation Mode
description: How automation runs in relation to itself (see Home Assistant documentation)
default: single
selector:
select:
options:
- single
- restart
- queued
- parallel
mode: !input mode
max_exceeded: silent
trigger:
- platform: state
entity_id: !input remote
condition:
- condition: template
value_template: "{{ trigger.to_state.state != '' and trigger.to_state.state != 'unknown' }}"
action:
- variables:
button_action: "{{ trigger.to_state.state }}"
- choose:
- conditions:
- condition: template
value_template: "{{ button_action == 'arm_all_zones' }}"
sequence: !input arm_all_zones_action
- conditions:
- condition: template
value_template: "{{ button_action == 'emergency' }}"
sequence: !input emergency_action
- conditions:
- condition: template
value_template: "{{ button_action == 'arm_day_zones' }}"
sequence: !input arm_day_zones_action
- conditions:
- condition: template
value_template: "{{ button_action == 'disarm' }}"
sequence: !input disarm_action
Nedis Zigbee Remote Control - Raw Debug Automation:
alias: Nedis Remote - Raw Debug
description: "Capture the exact structure of the remote data"
mode: single
trigger:
- platform: state
entity_id: sensor.nedis_remote_action
action:
- service: persistent_notification.create
data:
title: "Nedis Remote Raw Data"
message: >
State: {{ states('sensor.nedis_remote_action') }}
Attributes: {{ states.sensor.nedis_remote_action.attributes }}
Raw to_state: {{ trigger.to_state }}
Raw from_state: {{ trigger.from_state }}