2 次代碼提交 174a66017f ... 584f11687b

作者 SHA1 備註 提交日期
  Martin 584f11687b disable yr, add simple time-based automations for lights 6 年之前
  Martin 95a1a50fdf add doc blurb about how to reset zwave entities 6 年之前
共有 2 個文件被更改,包括 39 次插入 和 27 次删除
  1. 4 2
      hass-snips-readme.txt
  2. 35 25
      hass/confs/configuration.yaml

+ 4 - 2
hass-snips-readme.txt

@@ -19,5 +19,7 @@ Hass control commands:
     logs: sudo journalctl -f -u home-assistant@homeassistant
     restart & logs: sudo systemctl restart home-assistant@homeassistant && sudo journalctl -f -u home-assistant@homeassistant
 
-Sync commands:
-    
+Adding/removing Z-Wave entities:
+    on http://hass:8123/config/entities monitor entities
+    on http://hass:8123/config/zwave remove the problematic entities    
+    for e.g. the TKB TZ68, click the hardware button three times quickly and then in the hass UIs click "add node"

+ 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