Jeffrey Stone a411899190 Migrated to HassOS 4.9 and my zwave/zigbee usb dongles work again
This was a pain. Still not sure what happened. But the upgrade to HassOS 4.8 killed both
zwave2mqtt and zigbee2mqtt is seems. After the upgrade neitehr addon would talk to the hardware.
I migrated back to smartthings...major pain..and then after 4.10 was released was able to get the
addons added abck and talking to the hardware again.

All lights and switches are back talking locally. Also, it takes about 18 hours to migrate back to smartthings,
and about 18 hours to migrate back to local control.

Let's hope that doesn't happen again.
2020-06-09 07:48:35 -04:00

62 lines
1.5 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
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
- id: disable_zigbee_join_timer
alias: Disable Zigbee joining by timer
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