diff --git a/automation/System/Wink_update_notification.yaml b/automation/System/Wink_update_notification.yaml new file mode 100755 index 00000000..6dee80ea --- /dev/null +++ b/automation/System/Wink_update_notification.yaml @@ -0,0 +1,25 @@ +- alias: "Wink Update Available Notification" + hide_entity: True + trigger: + platform: template + value_template: "{{ is_state_attr('binary_sensor.carlowink', 'update needed', True) }} != False }}" + + action: + - service: script.ifttt_notify + data_template: + value1: 'Check the Wink Hub. Update is needed.' + value2: "{{ states.binary_sensor.carlowink.attributes }}" + value3: '' + + - service: notify.html5 + data_template: + title: "Wink Update Available" + message: "Wink Update is available. - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}" + data: + url: "https://home-assistant.io/getting-started/installation-raspberry-pi-all-in-one/#upgrading" + + - service: persistent_notification.create + data: + title: "Wink Update Available" + message: "Wink Update is available. - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}" + notification_id: "update_available" diff --git a/emulated_hue_ids.json b/emulated_hue_ids.json index 39e6f1f8..f8dfd547 100644 --- a/emulated_hue_ids.json +++ b/emulated_hue_ids.json @@ -1 +1 @@ -{"51": "light.led_garage_large", "6": "group.dining_room_lights", "5": "switch.living_room_amp", "50": "input_boolean.flash", "17": "input_boolean.guest_mode", "9": "switch.living_room_outlet", "8": "switch.printer_outlet", "33": "group.office_lights", "19": "group.all_switches", "38": "scene.front_full_brightness", "28": "switch.foyer_outlet", "46": "light.garage_large", "35": "input_boolean.school_mode", "30": "switch.outlet_304_4", "4": "group.dinette_lights", "47": "switch.ge_outdoor_outle_switch_7_0", "10": "group.garage_lights", "39": "input_boolean.last_message", "31": "group.outdoor_lights", "37": "input_boolean.alert_mode", "41": "input_boolean.home_stats", "22": "light.outdoor_den", "21": "group.bedroom_lights", "45": "input_boolean.work", "34": "group.exterior_lights", "44": "input_boolean.good_morning", "49": "input_boolean.guard_dog", "43": "input_boolean.tv_time", "48": "switch.ge_outdoor_outle_switch_8_0", "53": "input_boolean.color_tornado", "14": "switch.den_outlet", "16": "switch.kitchen_accent_2", "54": "light.led_outdoor_den", "52": "light.led_garage_small", "36": "input_boolean.speech_notifications", "42": "input_boolean.meal_time", "40": "input_boolean.responsibilities", "2": "group.outdoor_front_lights", "20": "switch.garage_outlet", "13": "group.kitchen_lights", "1": "switch.front_door_outlet", "26": "scene.living_room_tv_time", "29": "group.amps", "3": "switch.kitchen_accents", "24": "group.outdoor_pool_lights", "12": "group.all_lights", "15": "group.hallway_lights", "7": "group.living_room_accents", "27": "group.upstairs_lights", "25": "group.interior_lights", "18": "group.den_lights", "11": "group.foyer_lights", "23": "light.garage_left", "32": "group.living_room_lights"} \ No newline at end of file +{"13": "group.kitchen_lights", "46": "light.garage_large", "10": "group.garage_lights", "30": "switch.outlet_304_4", "47": "switch.ge_outdoor_outle_switch_7_0", "52": "light.led_garage_small", "18": "group.den_lights", "22": "light.outdoor_den", "56": "input_boolean.medicine", "39": "input_boolean.last_message", "15": "group.hallway_lights", "12": "group.all_lights", "38": "scene.front_full_brightness", "33": "group.office_lights", "8": "switch.printer_outlet", "14": "switch.den_outlet", "20": "switch.garage_outlet", "23": "light.garage_left", "34": "group.exterior_lights", "57": "input_boolean.garage_check", "31": "group.outdoor_lights", "27": "group.upstairs_lights", "40": "input_boolean.responsibilities", "4": "group.dinette_lights", "48": "switch.ge_outdoor_outle_switch_8_0", "49": "input_boolean.guard_dog", "53": "input_boolean.color_tornado", "25": "group.interior_lights", "42": "input_boolean.meal_time", "9": "switch.living_room_outlet", "45": "input_boolean.work", "11": "group.foyer_lights", "51": "light.led_garage_large", "16": "switch.kitchen_accent_2", "54": "light.led_outdoor_den", "35": "input_boolean.school_mode", "6": "group.dining_room_lights", "19": "group.all_switches", "17": "input_boolean.guest_mode", "28": "switch.foyer_outlet", "2": "group.outdoor_front_lights", "21": "group.bedroom_lights", "1": "switch.front_door_outlet", "41": "input_boolean.home_stats", "50": "input_boolean.flash", "3": "switch.kitchen_accents", "5": "switch.living_room_amp", "44": "input_boolean.good_morning", "55": "input_boolean.outside_weather", "32": "group.living_room_lights", "43": "input_boolean.tv_time", "7": "group.living_room_accents", "24": "group.outdoor_pool_lights", "26": "scene.living_room_tv_time", "29": "group.amps", "36": "input_boolean.speech_notifications", "37": "input_boolean.alert_mode"} \ No newline at end of file diff --git a/group/network.yaml b/group/network.yaml index 19d2c735..0da60ad1 100755 --- a/group/network.yaml +++ b/group/network.yaml @@ -12,6 +12,7 @@ Network: - sensor.wii - sensor.hue_hub_1 - sensor.hue_hub_2 + - binary_sensor.carlowink - sensor.tablotv - sensor.alexa_echo - sensor.amazon_dot diff --git a/recorder.yaml b/recorder.yaml index 9ddce869..9e765959 100755 --- a/recorder.yaml +++ b/recorder.yaml @@ -2,9 +2,10 @@ # recorder ############################################################ -purge_days: 7 +purge_days: 4 exclude: entities: + - sensor.ha_uptime - sensor.weather_apparent_temperature - sensor.weather_humidity - sensor.weather_icon diff --git a/script/voice_notify.yaml b/script/voice_notify.yaml index f897eb5d..c05b02d8 100755 --- a/script/voice_notify.yaml +++ b/script/voice_notify.yaml @@ -63,9 +63,9 @@ voice_notify: data_template: volume_level: > {% if now().strftime("%H")|int < 12 and now().strftime("%H")|int > 6%} - 0.4 + 0.35 {% elif now().strftime("%H")|int > 12 and now().strftime("%H")|int < 20%} - 0.6 + 0.55 {% else %} 0.3 {% endif %} @@ -138,9 +138,6 @@ voice_notify: {{ personarriving }} - {% if is_state('input_boolean.responsibilities', 'on') %} - {{responsibilities()}} - {%endif%} {{ NestStatus}} {% if is_state('input_boolean.inside_weather', 'on') %} {{inside_weather()}} diff --git a/sensor/hass_stats.yaml b/sensor/hass_stats.yaml index f764a5a2..4c1eb064 100755 --- a/sensor/hass_stats.yaml +++ b/sensor/hass_stats.yaml @@ -4,7 +4,8 @@ - platform: command_line name: HA Installed Version - command: "/srv/hass/hass_venv/bin/hass --version" + command: >- + cat $HASS_CONFIG/.HA_VERSION scan_interval: 86400 - platform: command_line