Browse Source

danke ki

master
Thomas 5 years ago
parent
commit
3f612348a6
Signed by: taschenbier
GPG Key ID: 306F574D34A9673B
  1. 12
      automations/automations.yaml

12
automations/automations.yaml

@ -4,30 +4,32 @@
trigger: trigger:
platform: state platform: state
entity_id: input_boolean.zigbee_permit_join entity_id: input_boolean.zigbee_permit_join
to: 'on' to: "on"
action: action:
- service: mqtt.publish - service: mqtt.publish
data: data:
topic: zigbee2mqtt/bridge/config/permit_join topic: zigbee2mqtt/bridge/config/permit_join
payload: 'true' payload: "true"
- service: timer.start - service: timer.start
data: data:
entity_id: timer.zigbee_permit_join entity_id: timer.zigbee_permit_join
- id: disable_zigbee_join - id: disable_zigbee_join
alias: Disable Zigbee joining alias: Disable Zigbee joining
trigger: trigger:
- entity_id: input_boolean.zigbee_permit_join - entity_id: input_boolean.zigbee_permit_join
platform: state platform: state
to: 'off' to: "off"
action: action:
- data: - data:
payload: 'false' payload: "false"
topic: zigbee2mqtt/bridge/config/permit_join topic: zigbee2mqtt/bridge/config/permit_join
service: mqtt.publish service: mqtt.publish
- data: - data:
entity_id: timer.zigbee_permit_join entity_id: timer.zigbee_permit_join
service: timer.cancel service: timer.cancel
hide_entity: true hide_entity: true
- id: disable_zigbee_join_timer - id: disable_zigbee_join_timer
alias: Disable Zigbee joining by timer alias: Disable Zigbee joining by timer
hide_entity: true hide_entity: true
@ -40,7 +42,7 @@
- service: mqtt.publish - service: mqtt.publish
data: data:
topic: zigbee2mqtt/bridge/config/permit_join topic: zigbee2mqtt/bridge/config/permit_join
payload: 'false' payload: "false"
- service: input_boolean.turn_off - service: input_boolean.turn_off
data: data:
entity_id: input_boolean.zigbee_permit_join entity_id: input_boolean.zigbee_permit_join
Loading…
Cancel
Save