|
@@ -23,12 +23,33 @@ default_config:
|
|
|
# http:
|
|
# http:
|
|
|
# base_url: example.duckdns.org:8123
|
|
# 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:
|
|
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:
|
|
mqtt:
|
|
|
broker: localhost
|
|
broker: localhost
|
|
@@ -47,39 +68,92 @@ media_player:
|
|
|
enable_websocket: false
|
|
enable_websocket: false
|
|
|
|
|
|
|
|
script:
|
|
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
|
|
# - service: system_log.write
|
|
|
# data:
|
|
# 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:
|
|
snips:
|
|
|
intent_script:
|
|
intent_script:
|
|
|
# hello:
|
|
# hello:
|
|
@@ -99,11 +173,13 @@ intent_script:
|
|
|
- service: snips.say
|
|
- service: snips.say
|
|
|
data_template:
|
|
data_template:
|
|
|
text: >
|
|
text: >
|
|
|
- {{now().hour % 12}} {{now().minute}}
|
|
|
|
|
|
|
+ {{now().hour % 12}} {% if now().minute < 10 %}oh{% endif %} {{now().minute}}
|
|
|
|
|
|
|
|
bye:
|
|
bye:
|
|
|
action:
|
|
action:
|
|
|
- - service: homeassistant.restart
|
|
|
|
|
|
|
+ - service: script.water_immersion
|
|
|
|
|
+ data:
|
|
|
|
|
+ duration: '00:00:10'
|
|
|
|
|
|
|
|
playArtist:
|
|
playArtist:
|
|
|
action:
|
|
action:
|
|
@@ -155,8 +231,3 @@ intent_script:
|
|
|
data:
|
|
data:
|
|
|
entity_id: media_player.kodi
|
|
entity_id: media_player.kodi
|
|
|
method: System.Shutdown
|
|
method: System.Shutdown
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-group: !include groups.yaml
|
|
|
|
|
-automation: !include automations.yaml
|
|
|
|
|
-#script: !include scripts.yaml
|
|
|