started migration to latest version of HA

This commit is contained in:
2020-05-29 17:38:45 -04:00
parent dfa1cd40b8
commit f71b0e3eb2
13 changed files with 2582 additions and 471 deletions

2482
OZW_Log.txt Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,252 +0,0 @@
- alias: 'Come home lights on if dark'
trigger:
- platform: state
entity_id: device_tracker.dan_dansphone
to: 'home'
condition:
condition: and
conditions:
- condition: state
entity_id: device_tracker.dan_dansphone
state: 'home'
- condition: sun
after: sunset
after_offset: '-01:00:00'
action:
- service: light.turn_on
entity_id: group.lightautomation
- service: notify.notify_dan
data:
title: 'Lights on'
message: 'All lights turned on'
- delay: '00:05:00'
- service: light.turn_off
entity_id: light.sengled_e11g13_030b3e1d_1
- service: notify.notify_dan
data:
title: 'EntryWay Light Off - Beacon'
message: 'Entryway light turned off. Welcome Home.'
- alias: 'Leave and lights turn off'
trigger:
platform: state
entity_id: device_tracker.dan_dansphone
to: 'not_home'
condition:
condition: state
entity_id: group.all_lights
state: 'on'
action:
- service: light.turn_off
entity_id: group.all_lights
- service: notify.notify_dan
data:
title: 'Lights off'
message: 'All lights have been turned off'
- alias: 'Switch on'
trigger:
platform: sun
event: sunset
offset: '-01:00:00'
action:
service: switch.turn_on
entity_id: switch.linear_ps15z2_plugin_appliance_module_switch
- alias: 'Switch off'
trigger:
platform: time
at: '00:00:00'
action:
service: switch.turn_off
entity_id: switch.linear_ps15z2_plugin_appliance_module_switch
#- alias: 'Lights_On_Beacon'
# trigger:
# - platform: state
# entity_id: sensor.Dan, sensor.Guest
# from: 'not_home'
# condition:
# condition: and
# conditions:
# - condition: sun
# after: sunset
# after_offset: "-1:00:00"
# - condition: state
# entity_id: group.lightautomation
# state: 'off'
# action:
# - service: light.turn_on
# entity_id: group.lightautomation
# - service: notify.notify_dan
# data:
# title: 'Lights on - Beacon'
# message: 'All lights turned on via beacon'
#
#- alias: 'Entryway_Off_Beacon'
# trigger:
# - platform: state
# entity_id: sensor.Dan
# from: 'EntryWay - HB'
# to: 'Bedroom'
# condition:
# condition: state
# entity_id: light.sengled_e11g13_030b3e1d_1
# state: 'on'
# action:
# - service: light.turn_off
# entity_id: light.sengled_e11g13_030b3e1d_1
# - service: notify.notify_dan
# data:
# title: 'EntryWay Light Off - Beacon'
# message: 'Entryway light turned off. Welcome Home.'
#
#- alias: 'Lights_off_Beacon'
# trigger:
# platform: state
# entity_id: sensor.Dan, sensor.Guest
# to: 'not_home'
# condition:
# condition: state
# entity_id: group.all_lights
# state: 'on'
# action:
# - service: light.turn_off
# entity_id: group.all_lights
# - service: notify.notify_dan
# data:
# title: 'Lights off - Beacon'
# message: 'All lights have been turned off via beacon'
- alias: 'Lights on when home'
trigger:
- platform: sun
event: sunset
offset: '-01:00:00'
condition:
condition: and
conditions:
- condition: template
##value_template: "{% if not is_state('sensor.dan', 'not_home') or not is_state('sensor.guest', 'not_home') or is_state('device_tracker.dan_dansphone', 'home') %}true{% endif %}"
value_template: "{% if is_state('device_tracker.dan_dansphone', 'home') %}true{% endif %}"
- condition: state
entity_id: group.lightlivingroom
state: 'off'
action:
- service: light.turn_on
entity_id: group.lightlivingroom
- service: notify.notify_dan
data:
title: 'Living Room Lights on - Sunset'
message: 'Living Room Lights turned on. But you probably know that.'
- alias: 'IFTT'
trigger:
platform: event
event_type: ifttt_webhook_received
event_data:
action: call_service
action:
service_template: '{{ trigger.event.data.service }}'
data_template:
entity_id: '{{ trigger.event.data.entity_id }}'
- alias: 'Sleep - Lights Off'
trigger:
platform: state
entity_id: sensor.sleep_Info
to: 'startsleep'
action:
- service: light.turn_off
entity_id: group.all_lights
- alias: 'Sleep - Lights On'
trigger:
platform: state
entity_id: sensor.sleep_Info
to: 'stopsleep'
action:
- service: light.turn_on
entity_id: group.all_lights
#########Climate Automations######
- alias: 'Set Away Mode'
trigger:
platform: state
entity_id: device_tracker.dan_dansphone
to: 'not_home'
from: 'home'
condition:
condition: template
value_template: "{% if not is_state('climate.home', 'off') %}true{% endif %}"
action:
- service: climate.set_preset_mode
entity_id: climate.home
data:
preset_mode: 'away'
- service: notify.notify_dan
data:
title: 'Left House - Set thermostate to Away'
message: 'Thermostat set to away mode'
- service: input_boolean.turn_on
data:
entity_id: input_boolean.thermostat_mode
- alias: 'Leave Work Set Home Mode'
trigger:
platform: state
entity_id: device_tracker.dan_dansphone
to: 'not_home'
from: 'Work'
condition:
- condition: template
value_template: "{% if not is_state('climate.home', 'off') %}true{% endif %}"
- condition: time
weekday:
- mon
- tue
- wed
- thu
action:
- service: climate.set_preset_mode
entity_id: climate.home
data:
preset_mode: 'home'
- service: notify.notify_dan
data:
title: 'Left Work - Set thermostate to Home'
message: 'Thermostat set to home mode'
- service: input_boolean.turn_off
data:
entity_id: input_boolean.thermostat_mode
- alias: 'Set Home Mode'
trigger:
platform: state
entity_id: device_tracker.dan_dansphone
to: 'home'
from: 'not_home'
condition:
- condition: template
value_template: "{% if not is_state('climate.home', 'off') %}true{% endif %}"
- condition: state
entity_id: input_boolean.thermostat_mode
state: 'on'
action:
- service: climate.set_preset_mode
entity_id: climate.home
data:
preset_mode: 'home'
- service: notify.notify_dan
data:
title: 'Back Home - Set thermostate to Home'
message: 'Thermostat set to home mode'
- service: input_boolean.turn_off
data:
entity_id: input_boolean.thermostat_mode

View File

@@ -1,69 +1,25 @@
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: 41.3568
longitude: -82.262
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 244
# metric for Metric, imperial for Imperial
unit_system: imperial
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/New_York
# Customization file
customize: !include customize.yaml
# Show links to resources in log and frontend
#introduction:
# Enables the frontend
frontend:
lovelace:
mode: yaml
# Enables configuration UI
config:
recorder:
db_url: postgresql://ha:password@docker.dandev.us/homeassistant
db_url: mysql://house:x3147qwfsbb9ctWy@192.168.86.198/house?charset=utf8
purge_interval: 0
map:
#namecheapdns:
# domain: danshouse.space
# password: c6dc6147fab242a2a4c50688790995c5
http:
# Secrets are defined in the file secrets.yaml
#api_password: ICYN30blah
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
base_url: icyn30.duckdns.org:8123
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
# Optional, allows Home Assistant developers to focus on popular components.
# include_used_components: true
# Discover some devices automatically
#discovery:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time
history:
# View all events in a logbook
logbook:
# Track the sun
sun:
# Configure a default setup of Home Assistant (frontend, api, etc)
config:
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
#weather
weather:
@@ -72,39 +28,16 @@ weather:
latitude: 41.469249
longitude: -81.713146
name: Amherst
sun:
hue:
bridges:
- host: 192.168.86.44
allow_unreachable: true
# sensors
sensor:
- platform: yr
# - platform: darksky
# api_key: 19b4b95365ea88c65b085805ef046ba0
# latitude: 41.469249
# longitude: -81.713146
# monitored_conditions:
# - icon
# - precip_type
# - precip_intensity
# - precip_probability
# - apparent_temperature
# - apparent_temperature_max
# - apparent_temperature_min
# - precip_intensity_max
# - hourly_summary
# - platform: mqtt
# state_topic: "owntracks/HA/DansPhone"
# name: "Phone Battery"
# unit_of_measurement: "%"
# value_template: '{{ value_json.batt }}'
# - platform: mqtt_room
# device_id: e2c56db5dffb48d2b060d0f5a71096e0_0000_0000
# name: 'Dan'
# state_topic: 'happy-bubbles/presence/ha'
# away_timeout: 60
# - platform: mqtt_room
# device_id: 74278bdab64445208f0c720eaf059935_0000_0000
# name: 'Guest'
# state_topic: 'happy-bubbles/presence/ha'
# away_timeout: 60
# - platform: sonarr
# api_key: c544cae167164f11947c84ad4e04f61c
# host: 192.168.86.20
@@ -138,73 +71,3 @@ sensor:
name: "sleep Info"
# Text to speech
#tts:
# - platform: google
#mqtt:
# broker: core-mosquitto
# username: HA
# password: login
#device_tracker:
# - platform: owntracks
ifttt:
key: bO6GhKW9xCaQoIigKnq1qF
telegram_bot:
- platform: broadcast
api_key: 374239722:AAGd4y_LsEoOe5IUUblKXehCQFJV1s2JdQo
allowed_chat_ids:
438758485
notify:
name: notify_dan
platform: telegram
chat_id: 438758485
hue:
bridges:
- host: 192.168.86.44
allow_unreachable: true
alexa:
zwave:
usb_path: /dev/ttyUSB0
zha:
usb_path: /dev/ttyUSB1
database_path: /config/zigbee.db
ecobee:
api_key: 8DSRpsILZJNUIJXvSzY6C4ufrMQNQsHa
input_boolean:
thermostat_mode:
name: Thermostat Away Mode
influxdb:
host: docker.dandev.us
include:
entities:
- sensor.home_temperature
- sensor.home_humidity
- sensor.thermostat_outside_temperature
- sensor.upstairs_temperature
- device_tracker.dan_dansphone
- sensor.thermostate_current_status
- sensor.thermostate_climate_mode
- light.sengled_e11g13_030b22ba_1
- light.sengled_e11g13_030b3e1d_1
- light.sengled_e11g13_030b3efd_1
- light.sengled_e11g13_030b40af_1
- light.sengled_e11g13_031468d6_1
- light.table
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
zone: !include zones.yaml
intent_script: !include intents.yaml

View File

@@ -1,7 +1,5 @@
default_view:
view: yes
icon: mdi:home
entities:
default_view:
- sensor.dark_sky_apparent_temperature
- sensor.dark_sky_daily_high_apparent_temperature
- sensor.dark_sky_daily_low_apparent_temperature
@@ -24,21 +22,18 @@ default_view:
- light.sengled_e11g13_031468d6_1
- sensor.Dan
- sensor.Guest
media:
name: Media
view: yes
control: hidden
entities:
Media:
- media_player.bedroom
- media_player.galaxy_s7_edge
- media_player.living_room
- media_player.plex_web_chrome
- media_player.roku_yr00av370849
automations:
name: Automations
view: yes
entities:
automations:
- automation.come_home_lights_on_if_dark
- automation.leave_and_lights_turn_off
- automation.Switch_on
@@ -48,11 +43,7 @@ automations:
- automation.Lights_on_when_home
- automation.iftt
LightAutomation:
name: Automated lights
view: no
control: hidden
entities:
LightAutomation:
- light.table
- light.lamp_left
- light.lamp_right
@@ -60,11 +51,7 @@ LightAutomation:
- light.sengled_e11g13_030b22ba_1
- light.sengled_e11g13_030b3efd_1
LightLivingRoom:
name: Automated Lights Living Room
view: no
control: hidden
entities:
LightLivingRoom:
- light.table
- light.lamp_left
- light.lamp_right

14
home-assistant.log Normal file
View File

@@ -0,0 +1,14 @@
2020-05-29 15:52:14 WARNING (MainThread) [homeassistant.components.recorder] The 'purge_interval' option (with value '0') is deprecated, please remove it from your configuration
2020-05-29 15:52:49 WARNING (MainThread) [bellows.zigbee.application] Watchdog heartbeat timeout:
2020-05-29 15:53:09 WARNING (MainThread) [bellows.zigbee.application] Watchdog heartbeat timeout:
2020-05-29 15:53:29 WARNING (MainThread) [bellows.zigbee.application] Watchdog heartbeat timeout:
2020-05-29 15:53:49 WARNING (MainThread) [bellows.zigbee.application] Watchdog heartbeat timeout:
2020-05-29 15:54:09 WARNING (MainThread) [bellows.zigbee.application] Watchdog heartbeat timeout:
2020-05-29 15:57:30 WARNING (MainThread) [homeassistant.components.zwave] Z-Wave not ready after 300 seconds, continuing anyway
2020-05-29 16:01:45 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.home is taking over 10 seconds
2020-05-29 16:09:56 ERROR (SyncWorker_5) [asyncio] Task was destroyed but it is pending!
task: <Task pending coro=<Gateway._send_task() running at /usr/local/lib/python3.7/site-packages/bellows/uart.py:236> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x6fa43a90>()]>>
2020-05-29 16:16:42 WARNING (MainThread) [homeassistant.components.zwave] Z-Wave not ready after 300 seconds, continuing anyway
2020-05-29 16:39:05 ERROR (MainThread) [asyncio] Task was destroyed but it is pending!
task: <Task pending coro=<Gateway._send_task() running at /usr/local/lib/python3.7/site-packages/bellows/uart.py:236> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x6ddc47f0>()]>>
2020-05-29 17:32:16 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.86.198

BIN
home-assistant_v2.db Normal file

Binary file not shown.

19
options.xml Normal file
View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- To be effective, this file should be placed in the user data folder specified in the Options::Create method -->
<Options xmlns='http://code.google.com/p/open-zwave/'>
<Option name="logging" value="true" />
<Option name="Associate" value="true" />
<Option name="NotifyTransactions" value="false" />
<Option name="DriverMaxAttempts" value="5" />
<Option name="SaveConfiguration" value="true" />
<!-- <Option name="RetryTimeout" value="40000" /> -->
<!-- If you are using any Security Devices, you MUST set a network Key -->
<!-- <Option name="NetworkKey" value="0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10" /> -->
<!-- Some Devices have a big UserCode Table, that can mean startup times
when refreshing Session Variables is very long (Especialy on Security
Devices) This option will make the UserCode CC stop on the first
"available" usercode slot rather than retrieve every one -->
<Option name="RefreshAllUserCodes" value="false" />
<Option name="ThreadTerminateTimeout" value="5000" />
</Options>

BIN
pyozw.sqlite Normal file

Binary file not shown.

0
scenes.yaml Normal file
View File

View File

@@ -1,4 +1,4 @@
# Use this file to store secrets like usernames and passwords.
# Learn more at https://home-assistant.io/docs/configuration/secrets/
#http_password: welcome
# Learn more at https://www.home-assistant.io/docs/configuration/secrets/
some_password: welcome

View File

@@ -24,11 +24,7 @@ views:
- light.table
- light.lamp_left
- light.lamp_right
- light.sengled_e11g13_030b3e1d_1
- light.sengled_e11g13_030b3efd_1
#Old Desk Light - light.sengled_e11g13_030b40af_1
- light.sengled_e11g13_030b22ba_1
- light.sengled_e11g13_031468d6_1
- light.sengled_e11_g13_d6681403_level_on_off
- type: entity-filter
entities:
- device_tracker.dan_dansphone
@@ -55,25 +51,25 @@ views:
entities:
- sensor.sonarr_upcoming
- title: Media
icon: mdi:play-network
cards:
- type: media-control
entity: media_player.roku_yr00av370849
# - title: Media
# icon: mdi:play-network
# cards:
# - type: media-control
# entity: media_player.roku_yr00av370849
- title: Automations
icon: mdi:robot
cards:
- type: entities
entities:
- automation.come_home_lights_on_if_dark
- automation.leave_and_lights_turn_off
- automation.switch_on
- automation.switch_off
- automation.lights_on_when_home
- automation.iftt
- automation.sleep_lights_off
- automation.sleep_lights_on
# - title: Automations
# icon: mdi:robot
# cards:
# - type: entities
# entities:
# - automation.come_home_lights_on_if_dark
# - automation.leave_and_lights_turn_off
# - automation.switch_on
# - automation.switch_off
# - automation.lights_on_when_home
# - automation.iftt
# - automation.sleep_lights_off
# - automation.sleep_lights_on
- title: HVAC
icon: mdi:temperature-fahrenheit
@@ -102,10 +98,10 @@ views:
name: Away Mode
- entity: sensor.thermostat_climate_mode
name: Climate Mode
- type: entities
entities:
- automation.set_away_mode
- automation.leave_work_set_home_mode
- automation.set_home_mode
# - type: entities
# entities:
# - automation.set_away_mode
# - automation.leave_work_set_home_mode
# - automation.set_home_mode
- type: thermostat
entity: climate.home

BIN
zigbee.db Normal file

Binary file not shown.

2
zwscene.xml Normal file
View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" ?>
<Scenes xmlns="http://code.google.com/p/open-zwave/" version="1" />