mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-02-08 08:41:57 +00:00
e02d084c92
Lots of updates here. Updated my Readme - Added Affiliate Links, added some more information, better organized devices Updated gitignore with paths realtive to my hassio config Combined my switches and lights into single yaml files instead of the directory structure previously Added zigbee2mqtt.yaml to packages - contains automations and such for zigbee2mqtt Archived my previous version in the V4-config branch.
65 lines
1.6 KiB
YAML
Executable File
65 lines
1.6 KiB
YAML
Executable File
|
|
input_boolean:
|
|
zigbee_permit_join:
|
|
name: Allow devices to join
|
|
initial: off
|
|
icon: mdi:cellphone-wireless
|
|
|
|
timer:
|
|
zigbee_permit_join:
|
|
name: Time remaining
|
|
duration: 600 # Updated this to the number of seconds you wish
|
|
|
|
sensor:
|
|
- platform: mqtt
|
|
name: Bridge state
|
|
state_topic: "homeassistant/bridge/state"
|
|
icon: mdi:router-wireless
|
|
|
|
automation:
|
|
- id: enable_zigbee_join
|
|
alias: Enable Zigbee joining
|
|
hide_entity: true
|
|
trigger:
|
|
platform: state
|
|
entity_id: input_boolean.zigbee_permit_join
|
|
to: 'on'
|
|
action:
|
|
- service: mqtt.publish
|
|
data:
|
|
topic: homeassistant/bridge/config/permit_join
|
|
payload: 'true'
|
|
- service: timer.start
|
|
data:
|
|
entity_id: timer.zigbee_permit_join
|
|
- id: disable_zigbee_join
|
|
alias: Disable Zigbee joining
|
|
trigger:
|
|
- entity_id: input_boolean.zigbee_permit_join
|
|
platform: state
|
|
to: 'off'
|
|
action:
|
|
- data:
|
|
payload: 'false'
|
|
topic: homeassistant/bridge/config/permit_join
|
|
service: mqtt.publish
|
|
- data:
|
|
entity_id: timer.zigbee_permit_join
|
|
service: timer.cancel
|
|
hide_entity: true
|
|
- id: disable_zigbee_join_timer
|
|
alias: Disable Zigbee joining by timer
|
|
hide_entity: true
|
|
trigger:
|
|
- platform: event
|
|
event_type: timer.finished
|
|
event_data:
|
|
entity_id: timer.zigbee_permit_join
|
|
action:
|
|
- service: mqtt.publish
|
|
data:
|
|
topic: homeassistant/bridge/config/permit_join
|
|
payload: 'false'
|
|
- service: input_boolean.turn_off
|
|
data:
|
|
entity_id: input_boolean.zigbee_permit_join |