Bladeren bron

updated hass confs and manuals

Martin 7 jaren geleden
bovenliggende
commit
ce38509e24

+ 4 - 1
hass-snips-readme.txt

@@ -8,4 +8,7 @@ Snips
         
 Connecting Snips to HASS:
     https://www.home-assistant.io/components/snips/
-    
+    
+Hass setup:
+    install: https://www.home-assistant.io/docs/installation/raspberry-pi/
+    systemd configuration: https://www.home-assistant.io/docs/autostart/systemd/

+ 112 - 41
hass/confs/configuration.yaml

@@ -23,12 +23,33 @@ default_config:
 # http:
 #   base_url: example.duckdns.org:8123
 
+zwave:
+  usb_path: /dev/ttyACM0 # determine using $ dmesg | grep tty
+  # device_config: !include zwave_device_config.yaml
+  network_key: "0xb2, 0x0d, 0x62, 0x9b, 0x7c, 0x91, 0x6e, 0xeb, 0xe8, 0x45, 0x9a, 0x96, 0x7e, 0x5b, 0x43, 0xe9"
+  debug: false
+
+
 sensor:
-  # Weather prediction
-  #  - platform: yr
-  # - platform: time_date
-  #   display_options:
-  #     - 'time'
+  - 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
+
 
 mqtt:
   broker: localhost
@@ -47,39 +68,92 @@ media_player:
     enable_websocket: false
 
 script:
-  # kodi_play_artist:
-  #   sequence:
-  #     - service: system_log.write
-  #       data_template:
-  #         message: >
-  #           play {{artist_name}}
-  #     - service: snips.say
-  #       data_template:
-  #         text: >
-  #           Playing {{artist_name}}
-  #     - service: media_player.play_media
-  #       data:
-  #         entity_id: "media_player.kodi"
-  #         media_content_type: "music"
-  #         media_content_id: "/mnt/nas/music/misc/15-seconds-of-silence.mp3"
-  #     - service: media_player.clear_playlist
-  #       data:
-  #         entity_id: "media_player.kodi"
-  #     - service: media_player.kodi_add_to_playlist
-  #       data_template:
-  #         entity_id: "media_player.kodi"
-  #         media_type: "ALBUM"
-  #         media_name: "ALL"
-  #         artist_name: >
-  #           {{artist_name}}
-  #     - service: media_player.media_next_track
-  #       data:
-  #         entity_id: "media_player.kodi"
+  water_immersion:
+    sequence:
+      - service: system_log.write
+        data_template:
+          message: Test 1 ({{duration}})...
+      - delay: '{{duration}}'
+      - service: system_log.write
+        data:
+          message: Test 2...
+
+
+automation:
+  # - alias: time
+  #   trigger:
+  #     platform: time_pattern
+  #     hours: '1'
+  #     minutes: '*'
+  #   action:
   #     - service: system_log.write
   #       data:
-  #         message: done
+  #         message: "time."
+
+  - alias: water immersion (weekdays)
+    initial_state: false
+    trigger:
+      - platform: time
+        at: '23:01:00'
+    condition:
+      condition: time
+      weekday:
+        - mon
+        - tue
+        - wed
+        - thu
+        - fri
+    action:
+      - service: script.water_immersion
+        data:
+          duration: '00:00:10'
+
 
 
+
+
+  - alias: Turn on kitchen light when there is movement
+    initial_state: true
+    trigger:
+      - platform: state
+        entity_id: sensor.aeotec_multisensor_6_burglar
+        from: "0"
+        to: "8"
+      - platform: state
+        entity_id: sensor.aeotec_multisensor_6_burglar
+        from: "3"
+        to: "8"
+    action:
+      - service: system_log.write
+        data:
+          message: "***** State to 8 *****"
+      - service: snips.say
+        data:
+          text: on, on, on
+
+  - alias: Turn off kitchen light 10 minutes after last movement
+    initial_state: true
+    trigger:
+      - platform: state
+        entity_id: sensor.aeotec_multisensor_6_burglar
+        from: "8"
+        to: "0"
+        for:
+          minutes: 2
+      - platform: state
+        entity_id: sensor.aeotec_multisensor_6_burglar
+        from: "3"
+        to: "0"
+        for:
+          minutes: 2
+    action:
+      - service: system_log.write
+        data:
+          message: "***** State to 0 *****"
+      - service: snips.say
+        data:
+          text: off, off, off
+
 snips:
 intent_script:
   # hello:
@@ -99,11 +173,13 @@ intent_script:
       - service: snips.say
         data_template:
           text: >
-            {{now().hour % 12}} {{now().minute}}
+            {{now().hour % 12}} {% if now().minute < 10 %}oh{% endif %} {{now().minute}}
       
   bye:
     action:
-      - service: homeassistant.restart
+      - service: script.water_immersion
+        data:
+          duration: '00:00:10'
 
   playArtist:
     action:
@@ -155,8 +231,3 @@ intent_script:
         data:
           entity_id: media_player.kodi
           method: System.Shutdown
-
-
-group: !include groups.yaml
-automation: !include automations.yaml
-#script: !include scripts.yaml

BIN
hass/manuals/Aeon Labs MultiSensor 6 manual.pdf


BIN
hass/manuals/TZ68E socket.pdf