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.
This commit is contained in:
Jeffrey Stone
2020-06-09 07:48:35 -04:00
parent a9288ff0cb
commit a411899190
9 changed files with 465 additions and 397 deletions

View File

@@ -136,10 +136,10 @@ automation:
trigger:
- platform: state
entity_id:
- binary_sensor.front_door_contact
- binary_sensor.laundry_door_contact
- binary_sensor.attic_door_contact
- binary_sensor.back_door_contact
- binary_sensor.front_door
- binary_sensor.laundry_door
- binary_sensor.attic_door
- binary_sensor.back_door
from: 'off'
condition:
condition: and
@@ -167,10 +167,10 @@ automation:
trigger:
- platform: state
entity_id:
- binary_sensor.front_door_contact
- binary_sensor.laundry_door_contact
- binary_sensor.attic_door_contact
- binary_sensor.back_door_contact
- binary_sensor.front_door
- binary_sensor.laundry_door
- binary_sensor.attic_door
- binary_sensor.back_door
from: 'off'
to: 'on'
for: '00:01:00'
@@ -255,11 +255,11 @@ automation:
trigger:
- platform: state
entity_id:
- binary_sensor.front_door_contact
- binary_sensor.laundry_door_contact
- binary_sensor.back_door_contact
- binary_sensor.side_door_contact
- binary_sensor.garage_door_contact
- binary_sensor.front_door
- binary_sensor.laundry_door
- binary_sensor.back_door
- binary_sensor.side_door
- binary_sensor.garage_door
from: 'off'
condition:
- condition: state
@@ -419,118 +419,118 @@ automation:
- service: media_player.media_stop
entity_id: media_player.ha_speaker
- id: Kitchen_Alarm_Smoke
alias: Kitchen Alarm Smoke
initial_state: true
trigger:
- platform: state
entity_id: sensor.kitchen_smoke_smoke_detector
to: 'smoke'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.fire_alarm
- service: script.text_alert
data_template:
title: Security Alert - Smoke
message: Smoke Detected in Kitchen!!
- service: script.jarvis_alert
data_template:
message: Smoke Detected in Kitchen!
- delay:
seconds: 5
- service: script.fire_alarm
- delay:
seconds: 15
- service: notify.alexa_media_everywhere
data:
message: Smoke Detected in Kitchen
data:
type: announce
# - id: Kitchen_Alarm_Smoke
# alias: Kitchen Alarm Smoke
# initial_state: true
# trigger:
# - platform: state
# entity_id: sensor.kitchen_smoke_smoke_detector
# to: 'smoke'
# action:
# - service: input_boolean.turn_on
# entity_id: input_boolean.fire_alarm
# - service: script.text_alert
# data_template:
# title: Security Alert - Smoke
# message: Smoke Detected in Kitchen!!
# - service: script.jarvis_alert
# data_template:
# message: Smoke Detected in Kitchen!
# - delay:
# seconds: 5
# - service: script.fire_alarm
# - delay:
# seconds: 15
# - service: notify.alexa_media_everywhere
# data:
# message: Smoke Detected in Kitchen
# data:
# type: announce
- id: Kitchen_Alarm_Co
alias: Kitchen Alarm CO
initial_state: true
trigger:
- platform: state
entity_id: sensor.kitchen_smoke_carbon_monoxide_detector
to: 'co2'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.fire_alarm
- service: script.text_alert
data_template:
title: Security Alert - CO
message: CO Detected in Kitchen!!
- service: script.jarvis_alert
data_template:
message: Carbon Dioxide Detected in Kitchen!
- delay:
seconds: 5
- service: script.fire_alarm
- delay:
seconds: 15
- service: notify.alexa_media_everywhere
data:
message: Carbon Dioxide Detected in Garage
data:
type: announce
# - id: Kitchen_Alarm_Co
# alias: Kitchen Alarm CO
# initial_state: true
# trigger:
# - platform: state
# entity_id: sensor.kitchen_smoke_carbon_monoxide_detector
# to: 'co2'
# action:
# - service: input_boolean.turn_on
# entity_id: input_boolean.fire_alarm
# - service: script.text_alert
# data_template:
# title: Security Alert - CO
# message: CO Detected in Kitchen!!
# - service: script.jarvis_alert
# data_template:
# message: Carbon Dioxide Detected in Kitchen!
# - delay:
# seconds: 5
# - service: script.fire_alarm
# - delay:
# seconds: 15
# - service: notify.alexa_media_everywhere
# data:
# message: Carbon Dioxide Detected in Garage
# data:
# type: announce
- id: Garage_Alarm_Smoke
alias: Garage Alarm Smoke
initial_state: true
trigger:
- platform: state
entity_id: sensor.garage_smoke_smoke_detector
to: 'smoke'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.fire_alarm
- service: script.text_alert
data_template:
title: Security Alert - Smoke
message: Smoke Detected in Garage!!
- service: script.jarvis_alert
data_template:
message: Smoke Detected in Garage!
- delay:
seconds: 5
- service: script.fire_alarm
- delay:
seconds: 15
- service: notify.alexa_media_everywhere
data:
message: Smoke Detected in Garage
data:
type: announce
# - id: Garage_Alarm_Smoke
# alias: Garage Alarm Smoke
# initial_state: true
# trigger:
# - platform: state
# entity_id: sensor.garage_smoke_smoke_detector
# to: 'smoke'
# action:
# - service: input_boolean.turn_on
# entity_id: input_boolean.fire_alarm
# - service: script.text_alert
# data_template:
# title: Security Alert - Smoke
# message: Smoke Detected in Garage!!
# - service: script.jarvis_alert
# data_template:
# message: Smoke Detected in Garage!
# - delay:
# seconds: 5
# - service: script.fire_alarm
# - delay:
# seconds: 15
# - service: notify.alexa_media_everywhere
# data:
# message: Smoke Detected in Garage
# data:
# type: announce
- id: Garage_Alarm_Co
alias: Garage Alarm CO
initial_state: true
trigger:
- platform: state
entity_id: sensor.garage_smoke_carbon_monoxide_detector
to: 'co2'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.fire_alarm
- service: script.text_alert
data_template:
title: Security Alert - CO
message: CO Detected in Garage!!
- service: script.jarvis_alert
data_template:
message: Carbon dioxide Detected in Garage!
- delay:
seconds: 5
- service: script.fire_alarm
- delay:
seconds: 15
- service: notify.alexa_media_everywhere
data:
message: Carbon Dioxide Detected in Garage
data:
type: announce
# - id: Garage_Alarm_Co
# alias: Garage Alarm CO
# initial_state: true
# trigger:
# - platform: state
# entity_id: sensor.garage_smoke_carbon_monoxide_detector
# to: 'co2'
# action:
# - service: input_boolean.turn_on
# entity_id: input_boolean.fire_alarm
# - service: script.text_alert
# data_template:
# title: Security Alert - CO
# message: CO Detected in Garage!!
# - service: script.jarvis_alert
# data_template:
# message: Carbon dioxide Detected in Garage!
# - delay:
# seconds: 5
# - service: script.fire_alarm
# - delay:
# seconds: 15
# - service: notify.alexa_media_everywhere
# data:
# message: Carbon Dioxide Detected in Garage
# data:
# type: announce
- id: water_leak_detected
alias: Welcome Home
@@ -584,22 +584,22 @@ script:
title: "Lockdown Issue!"
message: "Doors are open and it appears everyone has left!"
fire_alarm:
sequence:
- condition: state
entity_id: input_boolean.fire_alarm
state: "on"
- service: media_player.turn_on
entity_id: media_player.ha_speaker
- service: media_player.volume_set
data_template:
entity_id: media_player.ha_speaker
volume_level: .75
- service: media_player.play_media
entity_id: media_player.ha_speaker
data:
media_content_id: http://192.168.7.40/audio/fire_alarm.mp3
media_content_type: "music"
# fire_alarm:
# sequence:
# - condition: state
# entity_id: input_boolean.fire_alarm
# state: "on"
# - service: media_player.turn_on
# entity_id: media_player.ha_speaker
# - service: media_player.volume_set
# data_template:
# entity_id: media_player.ha_speaker
# volume_level: .75
# - service: media_player.play_media
# entity_id: media_player.ha_speaker
# data:
# media_content_id: http://192.168.7.40/audio/fire_alarm.mp3
# media_content_type: "music"
security_check_garage:
sequence:

View File

@@ -1,62 +1,62 @@
# input_boolean:
# zigbee_permit_join:
# name: Allow devices to join
# initial: off
# icon: mdi:cellphone-wireless
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
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
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
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