More entitiy name changes since moving back to smartthings...

This commit is contained in:
Jeffrey Stone 2020-06-07 19:28:26 -04:00
parent 47f8be33cd
commit 69ff8d77d0
1 changed files with 60 additions and 48 deletions

View File

@ -35,31 +35,8 @@ input_boolean:
icon: mdi:dog-side icon: mdi:dog-side
sensor: #sensor:
- platform: mqtt
name: "Kitchen Alarm Type"
state_topic: "zwave2mqtt/nodeID_19/113/1/0"
value_template: "{{ value }}"
- platform: mqtt
name: "Kitchen Alarm Level"
state_topic: "zwave2mqtt/nodeID_19/113/1/1"
value_template: "{{ value }}"
- platform: mqtt
name: "Kitchen Alarm Battery"
state_topic: "zwave2mqtt/nodeID_19/128/1/0"
value_template: "{{ value }}"
- platform: mqtt
name: "Garage Alarm Type"
state_topic: "zwave2mqtt/nodeID_30/113/1/0"
value_template: "{{ value }}"
- platform: mqtt
name: "Garage Alarm Level"
state_topic: "zwave2mqtt/nodeID_30/113/1/1"
value_template: "{{ value }}"
- platform: mqtt
name: "Garage Alarm Battery"
state_topic: "zwave2mqtt/nodeID_30/128/1/0"
value_template: "{{ value }}"
automation: automation:
- id: enable_vacation_mode - id: enable_vacation_mode
@ -159,10 +136,10 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: entity_id:
- binary_sensor.front_door - binary_sensor.front_door_contact
- binary_sensor.laundry_room_door - binary_sensor.laundry_door_contact
- binary_sensor.attic_door - binary_sensor.attic_door_contact
- binary_sensor.back_door - binary_sensor.back_door_contact
from: 'off' from: 'off'
condition: condition:
condition: and condition: and
@ -190,10 +167,10 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: entity_id:
- binary_sensor.front_door - binary_sensor.front_door_contact
- binary_sensor.laundry_room_door - binary_sensor.laundry_door_contact
- binary_sensor.attic_door - binary_sensor.attic_door_contact
- binary_sensor.back_door - binary_sensor.back_door_contact
from: 'off' from: 'off'
to: 'on' to: 'on'
for: '00:01:00' for: '00:01:00'
@ -230,7 +207,7 @@ automation:
entity_id: input_boolean.audible_notifications entity_id: input_boolean.audible_notifications
state: 'on' state: 'on'
- condition: state - condition: state
entity_id: binary_sensor.front_door entity_id: binary_sensor.front_door_contact
state: 'off' state: 'off'
action: action:
- service: script.ah_report - service: script.ah_report
@ -278,11 +255,11 @@ automation:
trigger: trigger:
- platform: state - platform: state
entity_id: entity_id:
- binary_sensor.front_door - binary_sensor.front_door_contact
- binary_sensor.laundry_room_door - binary_sensor.laundry_door_contact
- binary_sensor.back_door - binary_sensor.back_door_contact
- binary_sensor.side_door - binary_sensor.side_door_contact
- binary_sensor.garage_door - binary_sensor.garage_door_contact
from: 'off' from: 'off'
condition: condition:
- condition: state - condition: state
@ -447,8 +424,8 @@ automation:
initial_state: true initial_state: true
trigger: trigger:
- platform: state - platform: state
entity_id: sensor.kitchen_alarm_type entity_id: sensor.kitchen_smoke_smoke_detector
to: '1' to: 'smoke'
action: action:
- service: input_boolean.turn_on - service: input_boolean.turn_on
entity_id: input_boolean.fire_alarm entity_id: input_boolean.fire_alarm
@ -476,8 +453,8 @@ automation:
initial_state: true initial_state: true
trigger: trigger:
- platform: state - platform: state
entity_id: sensor.kitchen_alarm_type entity_id: sensor.kitchen_smoke_carbon_monoxide_detector
to: '2' to: 'co2'
action: action:
- service: input_boolean.turn_on - service: input_boolean.turn_on
entity_id: input_boolean.fire_alarm entity_id: input_boolean.fire_alarm
@ -504,8 +481,8 @@ automation:
initial_state: true initial_state: true
trigger: trigger:
- platform: state - platform: state
entity_id: sensor.garage_alarm_type entity_id: sensor.garage_smoke_smoke_detector
to: '1' to: 'smoke'
action: action:
- service: input_boolean.turn_on - service: input_boolean.turn_on
entity_id: input_boolean.fire_alarm entity_id: input_boolean.fire_alarm
@ -532,8 +509,8 @@ automation:
initial_state: true initial_state: true
trigger: trigger:
- platform: state - platform: state
entity_id: sensor.garage_alarm_type entity_id: sensor.garage_smoke_carbon_monoxide_detector
to: '2' to: 'co2'
action: action:
- service: input_boolean.turn_on - service: input_boolean.turn_on
entity_id: input_boolean.fire_alarm entity_id: input_boolean.fire_alarm
@ -555,6 +532,41 @@ automation:
data: data:
type: announce type: announce
- id: water_leak_detected
alias: Welcome Home
trigger:
- platform: state
entity_id:
- binary_sensor.fridge_leak_water
from: 'off'
to: 'on'
action:
- service: script.text_notify
data_template:
who: "parents"
title: "Water Leak!!!!"
message: >
{% set location = trigger.to_state.attributes.friendly_name %}
location + has detected a leak
- service: script.jarvis_alert
data_template:
message: >
{% set location = trigger.to_state.attributes.friendly_name %}
{%- macro issue_report(location) -%}
{{ [
'I have detected an issue!',
'We have a problem!',
'You might not like this.',
'There is something that needs your attention.'
] | random }}
{{ [
location + " is detecting a leak.",
location + " has detected water.",
location + " is picking up water."
] | random }}
{%- endmacro -%}
{{issue_report(location)}}
script: script:
lockdown_issue: lockdown_issue:
@ -592,7 +604,7 @@ script:
security_check_garage: security_check_garage:
sequence: sequence:
- condition: state - condition: state
entity_id: binary_sensor.garage_door entity_id: binary_sensor.garage_door_contact
state: 'on' state: 'on'
- service: input_boolean.turn_on - service: input_boolean.turn_on
entity_id: input_boolean.lockdown_issue entity_id: input_boolean.lockdown_issue