|
@@ -27,24 +27,24 @@ zwave:
|
|
|
|
|
|
|
|
|
|
|
|
|
sensor:
|
|
sensor:
|
|
|
- - platform: yr
|
|
|
|
|
- name: weather
|
|
|
|
|
- latitude: 53.386637
|
|
|
|
|
- longitude: -6.131277
|
|
|
|
|
- monitored_conditions:
|
|
|
|
|
- - temperature
|
|
|
|
|
- - symbol
|
|
|
|
|
- - precipitation
|
|
|
|
|
- - windSpeed
|
|
|
|
|
- # - pressure
|
|
|
|
|
- - windDirection
|
|
|
|
|
- # - humidity
|
|
|
|
|
- # - fog
|
|
|
|
|
- - cloudiness
|
|
|
|
|
- # - lowClouds
|
|
|
|
|
- # - mediumClouds
|
|
|
|
|
- # - highClouds
|
|
|
|
|
- # - dewpointTemperature
|
|
|
|
|
|
|
+ # - platform: yr
|
|
|
|
|
+ # name: weather
|
|
|
|
|
+ # latitude: 53.386637
|
|
|
|
|
+ # longitude: -6.131277
|
|
|
|
|
+ # monitored_conditions:
|
|
|
|
|
+ # - temperature
|
|
|
|
|
+ # - symbol
|
|
|
|
|
+ # - precipitation
|
|
|
|
|
+ # - windSpeed
|
|
|
|
|
+ # # - pressure
|
|
|
|
|
+ # - windDirection
|
|
|
|
|
+ # # - humidity
|
|
|
|
|
+ # # - fog
|
|
|
|
|
+ # - cloudiness
|
|
|
|
|
+ # # - lowClouds
|
|
|
|
|
+ # # - mediumClouds
|
|
|
|
|
+ # # - highClouds
|
|
|
|
|
+ # # - dewpointTemperature
|
|
|
|
|
|
|
|
- platform: template
|
|
- platform: template
|
|
|
sensors:
|
|
sensors:
|
|
@@ -79,6 +79,7 @@ script:
|
|
|
entity_id: switch.wenzhou_tkb_0
|
|
entity_id: switch.wenzhou_tkb_0
|
|
|
- service: homeassistant.turn_off
|
|
- service: homeassistant.turn_off
|
|
|
entity_id: switch.wenzhou_tkb_1
|
|
entity_id: switch.wenzhou_tkb_1
|
|
|
|
|
+
|
|
|
lights_on:
|
|
lights_on:
|
|
|
sequence:
|
|
sequence:
|
|
|
- service: system_log.write
|
|
- service: system_log.write
|
|
@@ -90,6 +91,22 @@ script:
|
|
|
entity_id: switch.wenzhou_tkb_1
|
|
entity_id: switch.wenzhou_tkb_1
|
|
|
|
|
|
|
|
automation:
|
|
automation:
|
|
|
|
|
+ - alias: Turn off lights (time)
|
|
|
|
|
+ trigger:
|
|
|
|
|
+ platform: time_pattern
|
|
|
|
|
+ hours: '00'
|
|
|
|
|
+ minutes: '30'
|
|
|
|
|
+ action:
|
|
|
|
|
+ - service: script.lights_off
|
|
|
|
|
+
|
|
|
|
|
+ - alias: Turn on lights (time)
|
|
|
|
|
+ trigger:
|
|
|
|
|
+ platform: time_pattern
|
|
|
|
|
+ hours: '16'
|
|
|
|
|
+ minutes: '00'
|
|
|
|
|
+ action:
|
|
|
|
|
+ - service: script.lights_on
|
|
|
|
|
+
|
|
|
# - alias: Log motion detection status
|
|
# - alias: Log motion detection status
|
|
|
# initial_state: false
|
|
# initial_state: false
|
|
|
# trigger:
|
|
# trigger:
|
|
@@ -143,13 +160,6 @@ automation:
|
|
|
# action:
|
|
# action:
|
|
|
# - service: script.lights_off
|
|
# - service: script.lights_off
|
|
|
|
|
|
|
|
- - alias: Turn off lights (midnight timer)
|
|
|
|
|
- trigger:
|
|
|
|
|
- platform: time_pattern
|
|
|
|
|
- hours: '00'
|
|
|
|
|
- minutes: '30'
|
|
|
|
|
- action:
|
|
|
|
|
- - service: script.lights_off
|
|
|
|
|
|
|
|
|
|
# - alias: water immersion (weekdays)
|
|
# - alias: water immersion (weekdays)
|
|
|
# initial_state: false
|
|
# initial_state: false
|