Browse Source

disable yr, add simple time-based automations for lights

Martin 6 years ago
parent
commit
584f11687b
1 changed files with 35 additions and 25 deletions
  1. 35 25
      hass/confs/configuration.yaml

+ 35 - 25
hass/confs/configuration.yaml

@@ -27,24 +27,24 @@ zwave:
 
 
 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
     sensors:
@@ -79,6 +79,7 @@ script:
         entity_id: switch.wenzhou_tkb_0
       - service: homeassistant.turn_off
         entity_id: switch.wenzhou_tkb_1
+
   lights_on:
     sequence:
       - service: system_log.write
@@ -90,6 +91,22 @@ script:
         entity_id: switch.wenzhou_tkb_1
 
 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
   #   initial_state: false
   #   trigger:
@@ -143,13 +160,6 @@ automation:
   #   action:
   #     - 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)
   #   initial_state: false