Had to go back to smartthings for devices after HASSOS 4.8 upgrade

This commit is contained in:
Jeffrey Stone 2020-06-07 15:30:34 -04:00
parent 4ac0dce6f5
commit b78465bffa
11 changed files with 389 additions and 360 deletions

View File

@ -36,7 +36,7 @@
alias: Washer Emptied alias: Washer Emptied
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.washer_door entity_id: binary_sensor.washer_door_contact
from: 'off' from: 'off'
to: 'on' to: 'on'
action: action:
@ -135,9 +135,9 @@
- service: scene.turn_on - service: scene.turn_on
entity_id: scene.normal_kitchen_lighting entity_id: scene.normal_kitchen_lighting
- service: switch.turn_off - service: switch.turn_off
entity_id: switch.0xf0d1b80000052281_switch # Rainbow Light entity_id: switch.rainbow_light # Rainbow Light
- service: light.turn_on - service: light.turn_on
entity_id: light.0xe20db9fffe003637_light # Skylar's Lamp entity_id: light.skylars_tower # Skylar's Lamp
- service: scene.turn_on - service: scene.turn_on
entity_id: scene.jeff_light_on entity_id: scene.jeff_light_on
- service: script.twitter_notify_image - service: script.twitter_notify_image
@ -167,10 +167,9 @@
entity_id: input_boolean.vacation_mode entity_id: input_boolean.vacation_mode
state: 'off' state: 'off'
action: action:
- service: switch.turn_on
entity_id: switch.0xf0d1b80000052281_switch # Rainbow Light
- service: scene.turn_on - service: scene.turn_on
entity_id: scene.skylar_lamp_25 entity_id: scene.skylar_room_prebed
- id: jeff_lights_out - id: jeff_lights_out
alias: Jeff lights out alias: Jeff lights out
@ -274,13 +273,13 @@
- service: switch.turn_off - service: switch.turn_off
entity_id: switch.forest entity_id: switch.forest
- service: switch.turn_off - service: switch.turn_off
entity_id: switch.living_room_fan entity_id: switch.livingroom_fan
- service: light.turn_off - service: light.turn_off
data: data:
entity_id: light.kitchen_cabinet_lights entity_id: light.ha_speaker
- service: light.turn_off - service: light.turn_off
data: data:
entity_id: light.kitchen_cabinets entity_id: light.kitchen_cabinets_2
- service: script.good_night_loft - service: script.good_night_loft
- service: script.twitter_notify_image - service: script.twitter_notify_image
data_template: data_template:
@ -307,7 +306,7 @@
action: action:
- service: switch.turn_on - service: switch.turn_on
data: data:
entity_id: switch.front_porch entity_id: switch.front_porch_light
- service: script.sunset_garage_open - service: script.sunset_garage_open
- service: script.twitter_notify_image - service: script.twitter_notify_image
data_template: data_template:
@ -353,7 +352,7 @@
action: action:
- service: switch.turn_off - service: switch.turn_off
data: data:
entity_id: switch.front_porch entity_id: switch.front_porch_light
- service: script.twitter_notify_image - service: script.twitter_notify_image
data_template: data_template:
tweet: >- tweet: >-
@ -560,7 +559,7 @@
platform: time platform: time
condition: condition:
- condition: state - condition: state
entity_id: binary_sensor.garage_door entity_id: binary_sensor.garage_door_contact
state: 'on' state: 'on'
action: action:
- data: - data:
@ -570,7 +569,7 @@
alias: Garage Closed alias: Garage Closed
initial_state: true initial_state: true
trigger: trigger:
- entity_id: binary_sensor.garage_door - entity_id: binary_sensor.garage_door_contact
from: 'on' from: 'on'
platform: state platform: state
to: 'off' to: 'off'
@ -589,14 +588,14 @@
to: 'on' to: 'on'
condition: condition:
- condition: state - condition: state
entity_id: switch.living_room_fan entity_id: switch.livingroom_fan
state: 'off' state: 'off'
- above: '73' - above: '73'
condition: numeric_state condition: numeric_state
entity_id: sensor.living_room_temperature entity_id: sensor.living_room_temperature
action: action:
- data: - data:
entity_id: switch.living_room_fan entity_id: switch.livingroom_fan
service: switch.turn_on service: switch.turn_on
- id: '1562067639239' - id: '1562067639239'
alias: Upstairs Fan Off alias: Upstairs Fan Off
@ -608,7 +607,7 @@
to: 'off' to: 'off'
condition: condition:
- condition: state - condition: state
entity_id: switch.upstairs_fan entity_id: switch.croft_fan
state: 'on' state: 'on'
- below: '72' - below: '72'
condition: numeric_state condition: numeric_state
@ -618,7 +617,7 @@
state: 'off' state: 'off'
action: action:
- data: - data:
entity_id: switch.upstairs_fan entity_id: switch.croft_fan
service: switch.turn_off service: switch.turn_off
- id: '1562630916597' - id: '1562630916597'
alias: Kat Pill Reminder alias: Kat Pill Reminder
@ -685,7 +684,7 @@
initial_state: true initial_state: true
trigger: trigger:
- platform: state - platform: state
entity_id: binary_sensor.kitchen_motion entity_id: binary_sensor.kitchen_motion_motion
to: 'on' to: 'on'
action: action:
- service: script.kitchen_lights_night - service: script.kitchen_lights_night
@ -705,11 +704,11 @@
state: 'below_horizon' state: 'below_horizon'
action: action:
- service: switch.turn_on - service: switch.turn_on
entity_id: switch.driveway_light entity_id: switch.driveway_light_2
- delay: - delay:
minutes: 3 minutes: 3
- service: switch.turn_off - service: switch.turn_off
entity_id: switch.driveway_light entity_id: switch.driveway_light_2
- alias: "Delivered Package Notification" - alias: "Delivered Package Notification"
initial_state: 'on' initial_state: 'on'
@ -738,3 +737,24 @@
A package was just left on the porch. A package was just left on the porch.
call_interuption: 1 call_interuption: 1
- alias: 'Battery Alert'
initial_state: 'on'
trigger:
- platform: time
at: '10:00:00'
- platform: time
at: '18:00:00'
condition:
condition: template
value_template: "{% if states('sensor.low_battery') %}true{% endif %}"
action:
- service: persistent_notification.create
data_template:
title: Low Battery
message: "{{ states('sensor.low_battery') }}"
notification_id: low-battery-alert
- service: script.text_notify
data_template:
title: "HA Issue"
message: "Low battery levels: {{ states('sensor.low_battery') }}"
who: 'jeff'

View File

@ -1,42 +1,42 @@
- platform: mqtt # - platform: mqtt
name: "Back Door" # name: "Back Door"
state_topic: "zwave2mqtt/back_door_sensor/48/1/0" # state_topic: "zwave2mqtt/back_door_sensor/48/1/0"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"
device_class: door # device_class: door
- platform: mqtt # - platform: mqtt
name: "Garage Door" # name: "Garage Door"
state_topic: "zwave2mqtt/garage_door/48/1/0" # state_topic: "zwave2mqtt/garage_door/48/1/0"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"
device_class: garage_door # device_class: garage_door
- platform: mqtt # - platform: mqtt
name: "Front Door" # name: "Front Door"
state_topic: "zwave2mqtt/front_door_sensor/48/1/0" # state_topic: "zwave2mqtt/front_door_sensor/48/1/0"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"
device_class: door # device_class: door
- platform: mqtt # - platform: mqtt
name: "Laundry Room Door" # name: "Laundry Room Door"
state_topic: "zwave2mqtt/laundry_door_sensor/48/1/0" # state_topic: "zwave2mqtt/laundry_door_sensor/48/1/0"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"
device_class: door # device_class: door
- platform: mqtt # - platform: mqtt
name: "Attic Door" # Dome Door Sensor # name: "Attic Door" # Dome Door Sensor
state_topic: "zwave2mqtt/attic_door/48/1/0" # state_topic: "zwave2mqtt/attic_door/48/1/0"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"
device_class: door # device_class: door
- platform: mqtt # - platform: mqtt
name: "Side Door" # Dome Door Sensor # name: "Side Door" # Dome Door Sensor
state_topic: "zwave2mqtt/side_door_sensor/48/1/0" # state_topic: "zwave2mqtt/side_door_sensor/48/1/0"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"
device_class: door # device_class: door
- platform: mqtt # - platform: mqtt
name: "Washer Door" # name: "Washer Door"
state_topic: "zwave2mqtt/washer_door_sensor/48/1/0" # state_topic: "zwave2mqtt/washer_door_sensor/48/1/0"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"
device_class: door # device_class: door

View File

@ -1,16 +1,16 @@
- platform: mqtt # - platform: mqtt
name: "Garage Motion" # Dome Motion Sensor # name: "Garage Motion" # Dome Motion Sensor
state_topic: "zwave2mqtt/garage_motion/48/1/0" # state_topic: "zwave2mqtt/garage_motion/48/1/0"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"
device_class: motion # device_class: motion
- platform: mqtt # - platform: mqtt
name: "Kitchen Motion" # Kaipule Motion Sensor # name: "Kitchen Motion" # Kaipule Motion Sensor
state_topic: "zwave2mqtt/kitchen_motion/48/1/0" # state_topic: "zwave2mqtt/kitchen_motion/48/1/0"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"
device_class: motion # device_class: motion
# - platform: command_line # - platform: command_line
# name: vlc player # name: vlc player

View File

@ -11,30 +11,30 @@ House Conditions:
- sensor.accurite_garage_humidity - sensor.accurite_garage_humidity
Outside Lights: Outside Lights:
- switch.driveway_light - switch.driveway_light_2
- switch.front_porch - switch.front_porch_light
- light.side_door_light - light.side_door_light_2
External Doors: External Doors:
- binary_sensor.side_door - binary_sensor.side_door_contact
- binary_sensor.front_door - binary_sensor.front_door_contact
- binary_sensor.back_door - binary_sensor.back_door_contact
- binary_sensor.laundry_room_door - binary_sensor.laundry_door_contact
- binary_sensor.garage_door - binary_sensor.garage_door_contact
Garage Doors: Garage Doors:
- binary_sensor.side_door - binary_sensor.side_door_contact
- binary_sensor.garage_door - binary_sensor.garage_door_contact
Internal Doors: Internal Doors:
- binary_sensor.attic_door - binary_sensor.attic_door_contact
rgb lr: rgb lr:
- light.0xb0ce18140003608a_light - light.livingroom_tower
- light.0xb0ce181400051b4c_light_2 - light.livingroom_lamp_1
- light.0xb0ce181400051072_light_2 - light.livingroom_lamp_2
incense: incense:
- switch.incense - switch.incense
@ -42,14 +42,16 @@ incense:
- switch.forest - switch.forest
all fans: all fans:
- switch.upstairs_fan - switch.croft_fan
- switch.living_room_fan - switch.livingroom_fan
Skylars Bedroom: Skylars Bedroom:
- light.0xe20db9fffe003637_light - light.skylars_lamp
- switch.0xf0d1b80000052281_switch - switch.rainbow_light
- light.skylars_spotlight
- light.skylars_tower
Master Bedroom: Master Bedroom:
- light.0xe20db9fffe004207_light - light.jeff_lamp

View File

@ -36,33 +36,34 @@
# retain: true # retain: true
# Outside # Outside
- platform: mqtt # - platform: mqtt
name: "Side Door Light" # name: "Side Door Light"
command_topic: "zwave2mqtt/side_door_light/38/1/0/set" # command_topic: "zwave2mqtt/side_door_light/38/1/0/set"
brightness_command_topic: "zwave2mqtt/side_door_light/38/1/0/set" # brightness_command_topic: "zwave2mqtt/side_door_light/38/1/0/set"
brightness_scale: 99 # brightness_scale: 99
brightness_state_topic: "zwave2mqtt/side_door_light/38/1/0" # brightness_state_topic: "zwave2mqtt/side_door_light/38/1/0"
on_command_type: "brightness" # on_command_type: "brightness"
payload_off: 0 # payload_off: 0
# Kitchen # Kitchen
- platform: mqtt # - platform: mqtt
name: "Kitchen Cabinets" # name: "Kitchen Cabinets"
command_topic: "zwave2mqtt/kitchen_cabinets/38/1/0/set" # command_topic: "zwave2mqtt/kitchen_cabinets/38/1/0/set"
brightness_command_topic: "zwave2mqtt/kitchen_cabinets/38/1/0/set" # brightness_command_topic: "zwave2mqtt/kitchen_cabinets/38/1/0/set"
brightness_scale: 99 # brightness_scale: 99
brightness_state_topic: "zwave2mqtt/kitchen_cabinets/38/1/0" # brightness_state_topic: "zwave2mqtt/kitchen_cabinets/38/1/0"
on_command_type: "brightness" # on_command_type: "brightness"
payload_off: 0 # payload_off: 0
retain: true # retain: true
# - platform: mqtt
# name: "Kitchen Cabinet Lights"
# command_topic: "zwave2mqtt/kitchen_strip/38/1/0/set"
# brightness_command_topic: "zwave2mqtt/kitchen_strip/38/1/0/set"
# brightness_scale: 99
# brightness_state_topic: "zwave2mqtt/kitchen_strip/38/1/0"
# on_command_type: "brightness"
# payload_off: 0
# retain: true
- platform: mqtt
name: "Kitchen Cabinet Lights"
command_topic: "zwave2mqtt/kitchen_strip/38/1/0/set"
brightness_command_topic: "zwave2mqtt/kitchen_strip/38/1/0/set"
brightness_scale: 99
brightness_state_topic: "zwave2mqtt/kitchen_strip/38/1/0"
on_command_type: "brightness"
payload_off: 0
retain: true

View File

@ -1,27 +1,61 @@
- name: all lights on
entities:
light.kitchen_cabinets:
state: on
brightness: 100
light.kitchen_cabinet_lights:
state: on
switch.upstairs:
state: on
group.rgb_lr:
state: on
brightness_pct: 100
rgb_color: [255,255,255]
switch.fireplace_lights:
state: on
light.0xe20db9fffe004207_light:
state: on
brightness: 100
light.0xe20db9fffe003637_light:
state: on
brightness: 100
switch.0xf0d1b80000052281_switch:
state: on
switch.rail_lights:
state: on
light.0xb0ce18140003b334_light:
state: on
brightness: 100
light.0xb0ce1814035bb3f0_light:
state: on
brightness: 100
- name: normal livingroom lighting - name: normal livingroom lighting
entities: entities:
group.rgb_lr: group.rgb_lr:
state: on state: on
brightness: 250 brightness: 255
color_temp: 369 color_temp: 369
rgb_color: [255,255,255]
# light.front_door_lamp: # light.front_door_lamp:
# state: on # state: on
# brightness: 250 # brightness: 255
# light.living_room_lamp: # light.living_room_lamp:
# state: on # state: on
# brightness: 250 # brightness: 250
- name: dimished livingroom lighting - name: dimished livingroom lighting
entities: entities:
light.0xb0ce18140003608a_light: light.livingroom_tower:
state: on state: on
brightness: 40 brightness: 40
color_temp: 369 color_temp: 369
light.0xb0ce181400051072_light_2: light.livingroom_lamp_2:
state: off state: off
light.0xb0ce181400051b4c_light_2: light.livingroom_lamp_1:
state: off state: off
switch.fireplace_lights: switch.fireplace_lights_2:
state: off state: off
- name: illuminations livingroom lighting two - name: illuminations livingroom lighting two
@ -61,15 +95,15 @@
- name: night time livingroom lighting - name: night time livingroom lighting
entities: entities:
light.0xb0ce18140003608a_light: light.livingroom_tower:
state: on state: on
brightness: 10 brightness: 10
color_temp: 369 color_temp: 369
light.0xb0ce181400051072_light_2: light.livingroom_lamp_2:
state: off state: off
light.0xb0ce181400051b4c_light_2: light.livingroom_lamp_1:
state: off state: off
switch.fireplace_lights: switch.fireplace_lights_2:
state: off state: off
- name: diminished kitchen lighting - name: diminished kitchen lighting
@ -77,7 +111,7 @@
light.kitchen_cabinets: light.kitchen_cabinets:
state: on state: on
brightness: 10 brightness: 10
light.kitchen_cabinet_lights: switch.ha_speaker:
state: off state: off
- name: normal kitchen lighting - name: normal kitchen lighting
@ -85,28 +119,28 @@
light.kitchen_cabinets: light.kitchen_cabinets:
state: on state: on
brightness: 250 brightness: 250
light.kitchen_cabinet_lights: switch.ha_speaker:
state: on state: on
- name: lights out - name: lights out
entities: entities:
light.kitchen_cabinets: light.kitchen_cabinets:
state: off state: off
light.kitchen_cabinet_lights: switch.ha_speaker:
state: off state: off
switch.upstairs: switch.croft_light:
state: off state: off
group.rgb_lr: group.rgb_lr:
state: off state: off
switch.fireplace_lights: switch.fireplace_lights:
state: off state: off
light.0xb0ce18140003608a_light: light.skylar_tower:
state: off state: off
light.0xe20db9fffe004207_light: light.jeff_lamp:
state: off state: off
light.0xe20db9fffe003637_light: light.skylar_spotlight:
state: off state: off
switch.0xf0d1b80000052281_switch: switch.rainbow_light:
state: off state: off
switch.rail_lights: switch.rail_lights:
state: off state: off
@ -116,36 +150,24 @@
entities: entities:
light.kitchen_cabinets: light.kitchen_cabinets:
state: off state: off
light.kitchen_cabinet_lights: switch.ha_speaker:
state: off state: off
switch.ge_14291_in_wall_smart_switch_switch_2: switch.fireplace_lights:
state: off state: off
group.rgb_lr: group.rgb_lr:
state: on state: on
brightness_pct: 100 brightness: 255
# light.front_door_lamp: switch.rail_lights:
# state: on
# brightness: 40
# light.living_room_lamp:
# state: on
# brightness: 40
switch.fireplace_lights:
state: off state: off
- name: haunted lights out - name: haunted lights out
entities: entities:
light.kitchen_cabinets: light.kitchen_cabinets:
state: off state: off
light.kitchen_cabinet_lights: switch.ha_speaker:
state: off
switch.ge_14291_in_wall_smart_switch_switch_2:
state: off state: off
group.rgb_lr: group.rgb_lr:
state: off state: off
# light.front_door_lamp:
# state: off
# light.living_room_lamp:
# state: off
switch.fireplace_lights: switch.fireplace_lights:
state: off state: off
@ -185,14 +207,18 @@
- name: tower lamp red - name: tower lamp red
entities: entities:
light.0xb0ce18140003608a_light: light.livingroom_tower:
state: on state: on
brightness_pct: 100 brightness_pct: 100
rgb_color: [255,40,0] rgb_color: [255,40,0]
- name: front lamp green - name: front lamp green
entities: entities:
light.0xb0ce181400051072_light_2: light.livingroom_lamp_1:
state: on
brightness_pct: 100
rgb_color: [0,128,0]
light.livingroom_lamp_2:
state: on state: on
brightness_pct: 100 brightness_pct: 100
rgb_color: [0,128,0] rgb_color: [0,128,0]
@ -200,61 +226,61 @@
- name: jeff light on - name: jeff light on
entities: entities:
light.0xe20db9fffe004207_light: light.jeff_bedside_lamp:
state: on state: on
brightness: 100 brightness: 255
- name: jeff light off - name: jeff light off
entities: entities:
light.0xe20db9fffe004207_light: light.jeff_bedside_lamp:
state: off state: off
- name: jeff wake up - name: jeff wake up
entities: entities:
light.0xe20db9fffe004207_light: light.jeff_bedside_lamp:
state: on state: on
brightness: 10 brightness: 10
- name: jeff bedtime - name: jeff bedtime
entities: entities:
light.0xe20db9fffe004207_light: light.jeff_bedside_lamp:
state: on state: on
brightness: 40 brightness: 40
- name: jeff night light - name: jeff night light
entities: entities:
light.0xe20db9fffe004207_light: light.jeff_bedside_lamp:
state: on state: on
brightness: 10 brightness: 10
- name: skylar lamp on - name: skylar tower on
entities: entities:
light.0xe20db9fffe003637_light: light.skylar_tower:
state: on state: on
brightness: 100 brightness: 255
- name: skylar lamp 75 - name: skylar tower 75
entities: entities:
light.0xe20db9fffe003637_light: light.skylar_tower:
state: on state: on
brightness: 75 brightness: 192
- name: skylar lamp 50 - name: skylar tower 50
entities: entities:
light.0xe20db9fffe003637_light: light.skylar_tower:
state: on state: on
brightness: 50 brightness: 130
- name: skylar lamp 25 - name: skylar tower 25
entities: entities:
light.0xe20db9fffe003637_light: light.skylar_tower:
state: on state: on
brightness: 25 brightness: 63
- name: skylar lamp off - name: skylar tower off
entities: entities:
light.0xe20db9fffe003637_light: light.skylar_tower:
state: off state: off
- name: santa protocol - name: santa protocol
@ -264,6 +290,32 @@
switch.rail_lights: switch.rail_lights:
state: on state: on
- name: skylar room prebed
entities:
light.skylar_tower:
state: on
brightness: 192
light.wled_loftbed:
state: on
brightness: 255
rgb_color: [63, 255, 0]
switch.rainbow_light:
state: on
- name: skylar room sleep
entities:
light.skylar_tower:
state: off
light.wled_loftbed:
state: on
brightness_pct: 100
rgb_color: [63, 255, 0]
switch.rainbow_light:
state: on
switch.wled_loftbed_nightlight:
state: on
@ -277,21 +329,34 @@
entities: entities:
group.rgb_lr: group.rgb_lr:
state: on state: on
brightness_pct: 100 brightness: 255
rgb_color: [255,255,255] rgb_color: [255,255,255]
- name : lr_blue - name : lr_blue
entities: entities:
group.rgb_lr: group.rgb_lr:
state: on state: on
brightness_pct: 100 brightness: 255
color_name: "blue" color_name: "blue"
- name : lr_red - name : lr_red
entities: entities:
group.rgb_lr: group.rgb_lr:
state: on state: on
brightness_pct: 100 brightness: 255
rgb_color: [255,40,0] rgb_color: [255,40,0]
#######################################
# Home Theater
- name: normal audio
entities:
media_player.tsr_6750_a3ed2f:
state: on
source: HDMI1
- name: quiet audio
entities:
media_player.tsr_6750_a3ed2f:
state: off

View File

@ -40,7 +40,7 @@ inside_all_on:
- service: switch.turn_on - service: switch.turn_on
entity_id: switch.fireplace_lights entity_id: switch.fireplace_lights
- service: switch.turn_on - service: switch.turn_on
entity_id: switch.upstairs entity_id: switch.croft_light
- service: switch.turn_on - service: switch.turn_on
entity_id: switch.rail_lights entity_id: switch.rail_lights
- service: scene.turn_on - service: scene.turn_on
@ -141,10 +141,10 @@ driveway_off:
- delay: - delay:
seconds: 120 seconds: 120
- condition: state - condition: state
entity_id: binary_sensor.side_door entity_id: binary_sensor.side_door_contact
state: 'off' state: 'off'
- condition: state - condition: state
entity_id: binary_sensor.garage_door entity_id: binary_sensor.garage_door_contact
state: 'off' state: 'off'
- service: switch.turn_off - service: switch.turn_off
entity_id: switch.driveway_light entity_id: switch.driveway_light

View File

@ -5,29 +5,6 @@
######################################### #########################################
##########################
# Dim Living Room lights slowly - Sengled Bulbs - No Built in Transistion.
# Script can take a delay, if no delay is passed delay is set to 5
# delay should be in seconds
# Script takes the following
# entity_id = The light you want to fade in
# transition: = # Seconds to go from current to end brightness
# brightness_pct: = # Brightness to end at as a percentage
lr_sengled_transistion_on:
sequence:
- service: python_script.light_transistion
data:
entity_id: light.tower_lamp_2
brightness_pct: 100
transition: 60
lr_sengled_transistion_off:
sequence:
- service: python_script.light_transistion
data:
entity_id: light.tower_lamp_2
brightness_pct: 0
transition: 60
# Turn on Living Room Lights if sun is down or cloud coverage is above 70% # Turn on Living Room Lights if sun is down or cloud coverage is above 70%
livingroom_lamps_on: livingroom_lamps_on:
@ -57,9 +34,9 @@ good_night_loft:
entity_id: media_player.pn60e550_pn60e550 entity_id: media_player.pn60e550_pn60e550
state: "off" state: "off"
- service: switch.turn_off - service: switch.turn_off
entity_id: switch.upstairs_fan entity_id: switch.croft_fan
- service: switch.turn_off - service: switch.turn_off
entity_id: switch.upstairs entity_id: switch.croft_light
kitchen_lights_on: kitchen_lights_on:
sequence: sequence:

View File

@ -1,66 +1 @@
- platform: mqtt
name: "Battery Front Door Sensor"
state_topic: "zwave2mqtt/front_door_sensor/128/1/0"
unit_of_measurement: "%"
device_class: battery
value_template: "{{ value }}"
json_attributes_topic: "zwave2mqtt/front_door_sensor/128/1/0"
- platform: mqtt
name: "Battery Laundry Door Sensor"
state_topic: "zwave2mqtt/laundry_door_sensor/128/1/0"
unit_of_measurement: "%"
device_class: battery
value_template: "{{ value }}"
json_attributes_topic: "zwave2mqtt/laundry_door_sensor/128/1/0"
- platform: mqtt
name: "Battery Kitchen Smoke Detector"
state_topic: "zwave2mqtt/kitchen_detector/128/1/0"
unit_of_measurement: "%"
device_class: battery
value_template: "{{ value }}"
json_attributes_topic: "zwave2mqtt/kitchen_detector/128/1/0"
- platform: mqtt
name: "Battery Garage Smoke Detector"
state_topic: "zwave2mqtt/garage_detector/128/1/0"
unit_of_measurement: "%"
device_class: battery
value_template: "{{ value }}"
json_attributes_topic: "zwave2mqtt/garage_detector/128/1/0"
- platform: mqtt
name: "Battery Attic Door Sensor"
state_topic: "zwave2mqtt/attic_door/128/1/0"
unit_of_measurement: "%"
device_class: battery
value_template: "{{ value }}"
json_attributes_topic: "zwave2mqtt/attic_door/128/1/0"
- platform: mqtt
name: "Battery Washer Door Sensor"
state_topic: "zwave2mqtt/washer_door_sensor/128/1/0"
unit_of_measurement: "%"
device_class: battery
value_template: "{{ value }}"
json_attributes_topic: "zwave2mqtt/washer_door_sensor/128/1/0"
- platform: mqtt
name: "Battery Back Door Sensor"
state_topic: "zwave2mqtt/back_door_sensor/128/1/0"
unit_of_measurement: "%"
device_class: battery
value_template: "{{ value }}"
json_attributes_topic: "zwave2mqtt/back_door_sensor/128/1/0"
- platform: mqtt
name: "Battery Side Door Sensor"
state_topic: "zwave2mqtt/side_door_sensor/128/1/0"
unit_of_measurement: "%"
device_class: battery
value_template: "{{ value }}"
json_attributes_topic: "zwave2mqtt/side_door_sensor/128/1/0"
- platform: mqtt
name: "Battery Garage Door Sensor"
state_topic: "zwave2mqtt/garage_door/128/1/0"
unit_of_measurement: "%"
device_class: battery
value_template: "{{ value }}"
json_attributes_topic: "zwave2mqtt/garage_door/128/1/0"
- platform: mqtt
name: "Battery Garage Motion Sensor"
state_topic: "zwave2mqtt/garage_motion/128/1/0"

View File

@ -1,29 +1,58 @@
- platform: mqtt # - platform: mqtt
name: "Washer" # name: "Washer"
state_topic: "zwave2mqtt/washer/50/1/0" # state_topic: "zwave2mqtt/washer/50/1/0"
device_class: "power" # device_class: "power"
unit_of_measurement: "kWh" # unit_of_measurement: "kWh"
- platform: mqtt # - platform: mqtt
name: "Washer Power 1" # name: "Washer Power 1"
state_topic: "zwave2mqtt/washer/49/1/4" # state_topic: "zwave2mqtt/washer/49/1/4"
device_class: "power" # device_class: "power"
unit_of_measurement: "W" # unit_of_measurement: "W"
- platform: mqtt # - platform: mqtt
name: "Washer_Power" # name: "Washer_Power"
state_topic: "zwave2mqtt/washer/50/1/2" # state_topic: "zwave2mqtt/washer/50/1/2"
device_class: "power" # device_class: "power"
unit_of_measurement: "W" # unit_of_measurement: "W"
- platform: mqtt # - platform: mqtt
name: "Washer Power 3" # name: "Washer Power 3"
state_topic: "zwave2mqtt/washer/50/1/9" # state_topic: "zwave2mqtt/washer/50/1/9"
device_class: "power" # device_class: "power"
unit_of_measurement: "W" # unit_of_measurement: "W"
- platform: mqtt # - platform: mqtt
name: "Washer Power kwh" # name: "Washer Power kwh"
state_topic: "zwave2mqtt/washer/50/1/1" # state_topic: "zwave2mqtt/washer/50/1/1"
device_class: "power" # device_class: "power"
unit_of_measurement: "kWh" # unit_of_measurement: "kWh"
- platform: template
sensors:
washer_power:
friendly_name: "Washer Power"
entity_id: sensor.time
unit_of_measurement: ''
value_template: >-
{{ states.switch.washer.attributes.current_power_w | int }}
low_battery:
friendly_name: 'Low Battery'
entity_id: sensor.time
value_template: >
{%- set threshold = 15 -%}
{%- set domains = ['light', 'switch', 'sensor', 'zwave', 'lock', 'binary_sensor'] -%}
{%- for domain in domains -%}
{%- for item in states[domain] if ((item.attributes.battery_level is defined and item.attributes['battery_level'] | int < threshold) or ("battery" in item.name | lower and ((item.state | int < threshold and item.state|int != 0) or item.state | lower == "low" or item.state | lower == "unknown"))) -%}
{{ item.attributes.friendly_name }} (
{%- if item.attributes.battery_level is defined -%}
{{ item.attributes.battery_level}}
{%- else -%}
{{item.state}}
{%- endif -%}%)
{%- if not loop.last -%}
{{', '}}
{%- endif -%}
{%- endfor -%}
{%- endfor -%}

View File

@ -1,25 +1,25 @@
# Living Room # Living Room
- platform: mqtt # - platform: mqtt
name: "Incense" # name: "Incense"
state_topic: "zwave2mqtt/incense/37/1/0" # state_topic: "zwave2mqtt/incense/37/1/0"
command_topic: "zwave2mqtt/incense/37/1/0/set" # command_topic: "zwave2mqtt/incense/37/1/0/set"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"
- platform: mqtt # - platform: mqtt
name: "Living Room Fan" # name: "Living Room Fan"
state_topic: "zwave2mqtt/living_room_fan/37/1/0" # state_topic: "zwave2mqtt/living_room_fan/37/1/0"
command_topic: "zwave2mqtt/living_room_fan/37/1/0/set" # command_topic: "zwave2mqtt/living_room_fan/37/1/0/set"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"
- platform: mqtt # - platform: mqtt
name: "Fireplace Lights" # name: "Fireplace Lights"
state_topic: "zwave2mqtt/fireplace_lights/37/1/0" # state_topic: "zwave2mqtt/fireplace_lights/37/1/0"
command_topic: "zwave2mqtt/fireplace_lights/37/1/0/set" # command_topic: "zwave2mqtt/fireplace_lights/37/1/0/set"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"
# Notifications # Notifications
@ -80,19 +80,19 @@
# Outside # Outside
- platform: mqtt # - platform: mqtt
name: "Driveway Light" # name: "Driveway Light"
state_topic: "zwave2mqtt/driveway_light/37/1/0" # state_topic: "zwave2mqtt/driveway_light/37/1/0"
command_topic: "zwave2mqtt/driveway_light/37/1/0/set" # command_topic: "zwave2mqtt/driveway_light/37/1/0/set"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"
- platform: mqtt # - platform: mqtt
name: "Front Porch" # name: "Front Porch"
state_topic: "zwave2mqtt/front_porch/37/1/0" # state_topic: "zwave2mqtt/front_porch/37/1/0"
command_topic: "zwave2mqtt/front_porch/37/1/0/set" # command_topic: "zwave2mqtt/front_porch/37/1/0/set"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"
# Sonoff # Sonoff
@ -107,43 +107,43 @@
# Upstairs # Upstairs
- platform: mqtt # - platform: mqtt
name: "Upstairs Fan" # name: "Upstairs Fan"
state_topic: "zwave2mqtt/upstairs_fan/37/1/0" # state_topic: "zwave2mqtt/upstairs_fan/37/1/0"
command_topic: "zwave2mqtt/upstairs_fan/37/1/0/set" # command_topic: "zwave2mqtt/upstairs_fan/37/1/0/set"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"
- platform: mqtt # - platform: mqtt
name: "Theater Power" # name: "Theater Power"
state_topic: "zwave2mqtt/theater_power/37/1/0" # state_topic: "zwave2mqtt/theater_power/37/1/0"
command_topic: "zwave2mqtt/theater_power/37/1/0/set" # command_topic: "zwave2mqtt/theater_power/37/1/0/set"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"
- platform: mqtt # - platform: mqtt
name: "Upstairs" # name: "Upstairs"
state_topic: "zwave2mqtt/upstairs_light/37/1/0" # state_topic: "zwave2mqtt/upstairs_light/37/1/0"
command_topic: "zwave2mqtt/upstairs_light/37/1/0/set" # command_topic: "zwave2mqtt/upstairs_light/37/1/0/set"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"
# Appliance # Appliance
- platform: mqtt # - platform: mqtt
name: "Washer" # name: "Washer"
state_topic: "zwave2mqtt/washer/37/1/0" # state_topic: "zwave2mqtt/washer/37/1/0"
command_topic: "zwave2mqtt/washer/37/1/0/set" # command_topic: "zwave2mqtt/washer/37/1/0/set"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"
# alarm # alarm
- platform: mqtt # - platform: mqtt
name: "Alarm" # name: "Alarm"
state_topic: "zwave2mqtt/nodeID_21/37/1/0" # state_topic: "zwave2mqtt/nodeID_21/37/1/0"
command_topic: "zwave2mqtt/nodeID_21/37/1/0/set" # command_topic: "zwave2mqtt/nodeID_21/37/1/0/set"
payload_on: "true" # payload_on: "true"
payload_off: "false" # payload_off: "false"