summaryrefslogtreecommitdiff
path: root/hostnix
diff options
context:
space:
mode:
Diffstat (limited to 'hostnix')
-rw-r--r--hostnix/elmo/home-assistant.nix293
1 files changed, 0 insertions, 293 deletions
diff --git a/hostnix/elmo/home-assistant.nix b/hostnix/elmo/home-assistant.nix
index bb6fd89..9b99b04 100644
--- a/hostnix/elmo/home-assistant.nix
+++ b/hostnix/elmo/home-assistant.nix
@@ -70,14 +70,6 @@
# "Smart" configured to channel 25 (some overlap with Wi-Fi channel 11).
zha = { };
-#binary_sensor:
-# - platform: template
-# sensors:
-# rain_today:
-# friendly_name: Rain today
-# value_template: "{{ state_attr('weather.knyc_daynight', 'forecast')[1]['precipitation_probability']|float > 0 or state_attr('weather.knyc_daynight', 'forecast')[2]['precipitation_probability']|float > 0 }}"
-# #value_template: "{{ states('sensor.dark_sky_precip_probability_0d')|float > 5 }}"
-
adaptive_lighting = rec {
lights = [
# Unfortunately the grow light cannot have its own schedule.
@@ -141,291 +133,6 @@
}
];
-# - alias: Sound machine switch
-# description: ''
-# trigger:
-# - device_id: 6abc7b035b2e42e6a620eb66ccc8de74
-# domain: binary_sensor
-# entity_id: binary_sensor.button_2
-# platform: device
-# type: turned_on
-# condition: []
-# action:
-# - entity_id: switch.pinky
-# service: switch.toggle
-# id: f6405dfa252e4121b51ab015c7d5a136
-# - alias: Light relay
-# description: ''
-# trigger:
-# - above: '.15'
-# entity_id: sensor.photoresistor
-# platform: numeric_state
-# condition:
-# - after: sunset
-# condition: sun
-# action:
-# - entity_id: switch.wakko
-# service: switch.turn_on
-# id: ce759a29adb74a6090dcb0d1c1ef704c
-# - alias: Bedroom thermostat off
-# description: ''
-# trigger:
-# - entity_id: climate.bedroom
-# platform: state
-# to: 'off'
-# condition: []
-# action:
-# - entity_id: light.d5_led
-# service: light.turn_on
-# id: 3616bf440fe84c76bbfed07fa336272b
-# - alias: Bedroom thermostat on
-# description: ''
-# trigger:
-# - entity_id: climate.bedroom
-# from: 'off'
-# platform: state
-# condition: []
-# action:
-# - entity_id: light.d5_led
-# service: light.turn_off
-# mode: single
-# id: 117ab3e24e624680aa265efa8b0986d2
-# - alias: Rain light on
-# description: ''
-# trigger:
-# - entity_id: binary_sensor.rain_today
-# platform: state
-# to: 'on'
-# condition: []
-# action:
-# - data: {}
-# entity_id: light.nodemcu_led
-# service: light.turn_on
-# id: 68401f3337c546e38521d77da2bd4040
-# - alias: Rain light off
-# description: ''
-# trigger:
-# - entity_id: binary_sensor.rain_today
-# platform: state
-# to: 'off'
-# condition: []
-# action:
-# - data: {}
-# entity_id: light.nodemcu_led
-# service: light.turn_off
-# id: ba3266d2ebfe4b4cabbc5ef36a63412d
-# - alias: Windows webhook
-# description: ''
-# trigger:
-# - platform: webhook
-# webhook_id: -5ykPDB93EXDiNKFAnaJ6_aZi
-# condition: []
-# action:
-# - choose:
-# - conditions:
-# - condition: template
-# value_template: '{{ trigger.data.action == ''on'' }}'
-# sequence:
-# - repeat:
-# while:
-# - condition: template
-# value_template: '{{ state_attr(''media_player.55_tcl_roku_tv'', ''app_id'')
-# != ''tvinput.hdmi1'' }}
-
-# '
-# - condition: template
-# value_template: '{{ repeat.index < 2 }}'
-# sequence:
-# - alias: Turn on TV to speed up switching source
-# service: media_player.turn_on
-# target:
-# entity_id: media_player.55_tcl_roku_tv
-# continue_on_error: true
-# - service: media_player.select_source
-# data:
-# source: tvinput.hdmi1
-# target:
-# entity_id: media_player.55_tcl_roku_tv
-# continue_on_error: true
-# - wait_template: '{{ state_attr(''media_player.55_tcl_roku_tv'', ''app_id'')
-# == ''tvinput.hdmi1'' }}'
-# timeout: 10
-# alias: Retry while (checks before) TV input not on Windows
-# - conditions:
-# - condition: template
-# value_template: '{{ trigger.data.action == ''off'' }}'
-# sequence:
-# - service: media_player.turn_off
-# data: {}
-# target:
-# entity_id: media_player.55_tcl_roku_tv
-# mode: restart
-# id: c759fbc37e4f46e0a834d95f40a78427
-# - alias: Barrier webhook
-# description: ''
-# trigger:
-# - platform: webhook
-# webhook_id: barrier-webhook-GyQhMV4gPNhSfYbYFx4DNVUc
-# condition: []
-# action:
-# - choose:
-# - conditions:
-# - condition: template
-# value_template: '{{ trigger.data.action == ''on'' }}'
-# sequence:
-# - repeat:
-# while:
-# - condition: template
-# value_template: '{{ state_attr(''media_player.55_tcl_roku_tv'', ''app_id'')
-# != ''tvinput.hdmi1'' }}
-
-# '
-# - condition: template
-# value_template: '{{ repeat.index < 2 }}'
-# sequence:
-# - alias: Turn on TV to speed up switching source
-# service: media_player.turn_on
-# target:
-# entity_id: media_player.55_tcl_roku_tv
-# continue_on_error: true
-# - service: media_player.select_source
-# data:
-# source: tvinput.hdmi1
-# target:
-# entity_id: media_player.55_tcl_roku_tv
-# continue_on_error: true
-# - wait_template: '{{ state_attr(''media_player.55_tcl_roku_tv'', ''app_id'')
-# == ''tvinput.hdmi1'' }}'
-# timeout: 10
-# alias: Retry while (checks before) TV input not on Windows
-# - conditions:
-# - condition: template
-# value_template: '{{ trigger.data.action == ''hdmi2'' }}'
-# sequence:
-# - repeat:
-# while:
-# - condition: template
-# value_template: '{{ state_attr(''media_player.55_tcl_roku_tv'', ''app_id'')
-# != ''tvinput.hdmi2'' }}
-
-# '
-# - condition: template
-# value_template: '{{ repeat.index < 2 }}'
-# sequence:
-# - alias: Turn on TV to speed up switching source
-# service: media_player.turn_on
-# target:
-# entity_id: media_player.55_tcl_roku_tv
-# continue_on_error: true
-# - service: media_player.select_source
-# data:
-# source: tvinput.hdmi2
-# target:
-# entity_id: media_player.55_tcl_roku_tv
-# continue_on_error: true
-# - wait_template: '{{ state_attr(''media_player.55_tcl_roku_tv'', ''app_id'')
-# == ''tvinput.hdmi2'' }}'
-# timeout: 10
-# alias: Retry while (checks before) TV input not on HDMI 2
-# - conditions:
-# - condition: template
-# value_template: '{{ trigger.data.action == ''off'' }}'
-# sequence:
-# - service: media_player.turn_off
-# data: {}
-# target:
-# entity_id: media_player.55_tcl_roku_tv
-# mode: restart
-# id: a86bdf5640e34e5d9b4864f7b58d4bae
-# - id: '1678928586230'
-# alias: Spotify WIP
-# description: ''
-# trigger:
-# - platform: time
-# at: 08:55:00
-# condition:
-# - condition: zone
-# entity_id: person.joe
-# zone: zone.home
-# action:
-# - repeat:
-# until:
-# - condition: or
-# conditions:
-# - condition: state
-# entity_id: media_player.55_tcl_roku_tv
-# attribute: source
-# state: Spotify Music
-# - condition: template
-# value_template: '{{ repeat.index >= 5 }}'
-# sequence:
-# - alias: Turn on TV to speed up switching source
-# service: media_player.turn_on
-# target:
-# entity_id: media_player.55_tcl_roku_tv
-# continue_on_error: true
-# - service: media_player.select_source
-# data:
-# source: Spotify Music
-# target:
-# entity_id: media_player.55_tcl_roku_tv
-# continue_on_error: true
-# - delay:
-# hours: 0
-# minutes: 0
-# seconds: 15
-# milliseconds: 0
-# - wait_template: '{{ state_attr(''media_player.spotify_yoyoyojomo'', ''source_list'')
-# | default([], true) | contains(''55" TCL Roku TV'') }}'
-# continue_on_timeout: true
-# timeout: '15:00'
-# - service: media_player.select_source
-# data:
-# source: 55" TCL Roku TV
-# target:
-# entity_id: media_player.spotify_yoyoyojomo
-# enabled: false
-# - service: media_player.play_media
-# data:
-# media_content_id: spotify:playlist:37i9dQZF1E355kum8XgZAW
-# media_content_type: playlist
-# target:
-# entity_id: media_player.spotify_yoyoyojomo
-# enabled: false
-# - stop: Power cycle TV for SPDIF glitch?
-# enabled: false
-# - repeat:
-# until:
-# - condition: or
-# conditions:
-# - condition: device
-# device_id: 41de89da6b761d29f8542ab039951a1b
-# domain: media_player
-# entity_id: media_player.spotify_yoyoyojomo
-# type: is_playing
-# - condition: template
-# value_template: '{{ repeat.index >= 5 }}'
-# sequence:
-# - service: media_player.select_source
-# data:
-# source: 55" TCL Roku TV
-# target:
-# entity_id: media_player.spotify_yoyoyojomo
-# - service: media_player.play_media
-# data:
-# media_content_id: spotify:playlist:37i9dQZEVXbgyUT3Ewvdog
-# media_content_type: playlist
-# target:
-# entity_id: media_player.spotify_yoyoyojomo
-# continue_on_error: true
-# - delay:
-# hours: 0
-# minutes: 0
-# seconds: 20
-# milliseconds: 0
-# - stop: 'Release Radar (updates Fridays): 37i9dQZEVXbgyUT3Ewvdog'
-# mode: single
-
automation = let
button = entity_id: action: {