Skip to content

Commit

Permalink
move to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
matt8707 committed Feb 17, 2020
1 parent fa5e4fb commit fc62bde
Show file tree
Hide file tree
Showing 302 changed files with 1,132 additions and 3,785 deletions.
2 changes: 1 addition & 1 deletion .HA_VERSION
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.105.1
0.105.4
Empty file modified .gitattributes
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Home Assistant Configuration

[Hass.io](https://home-assistant.io/) installed on a [Raspberry Pi 3 Model B+](https://www.raspberrypi.org/products/raspberry-pi-3-model-b-plus/) and my use case is a [wall mounted](https://www.durable.eu/information-and-presentation/tablet-holder/wall-mounted-tablet-holder/tablet-holder-wall.html) tablet [[Samsung 10.1"]](https://www.samsung.com/us/mobile/tablets/galaxy-tab-a/galaxy-tab-a-10-1-2019-32gb-black-wi-fi-sm-t510nzkaxar/) displaying Home Assistant in [Fully Kiosk Browser](https://www.ozerov.de/fully-kiosk-browser/) and on desktop [applicationize](https://applicationize.me/) (chrome). I've opted for local control only but I expose my configuration to homekit with Apple Tv acting as a hub for remote connection.
[Home Assistant Core](https://home-assistant.io/) in [docker](https://www.docker.com/) on a [Synology DiskStation DS918+](https://www.synology.com/products/DS918+). My use case is a [wall mounted](https://www.durable.eu/information-and-presentation/tablet-holder/wall-mounted-tablet-holder/tablet-holder-wall.html) tablet [[Samsung 10.1"](https://www.samsung.com/us/mobile/tablets/galaxy-tab-a/galaxy-tab-a-10-1-2019-32gb-black-wi-fi-sm-t510nzkaxar/)] displaying Home Assistant in [Fully Kiosk Browser](https://www.ozerov.de/fully-kiosk-browser/) and on desktop using [applicationize](https://applicationize.me/) (chrome). My configuration is exposed to HomeKit with Apple Tv acting as a hub for remote connection. I also support [Nabu Casa](https://www.nabucasa.com/).

If you like anything here, Be sure to :star2: my repo!

Expand Down Expand Up @@ -52,7 +52,7 @@ All [Philips Hue](https://www2.meethue.com) lights with [sensors](https://www2.m

### Switches

* [SwitchBot](https://www.switch-bot.com/bot) to cold boot computer. Numerous shell commands to monitor and control macOS.
* [SwitchBot](https://www.switch-bot.com/bot) to cold boot computer (with [usb bluetooth adapter](https://plugable.com/products/usb-bt4le) in NAS). Numerous shell commands to monitor and control macOS.
* [Belkin WeMo Switch](https://www.belkin.com/) to control studio monitors (speakers) with automations to apply [EQ calibration](https://www.sonarworks.com/reference) and volume control through AppleScript.
* Control a pedestal fan, using [Belkin WeMo Switch](https://www.belkin.com/) and hue motion sensor temperature data to automate on summer nights.

Expand Down
159 changes: 85 additions & 74 deletions automations.yaml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
action:
- service: shell_command.clear_logs

- alias: clear_plex_poster
trigger:
platform: time_pattern
minutes: "/30"
action:
- service: shell_command.clear_plex_poster
# - alias: clear_plex_poster
# trigger:
# platform: time_pattern
# minutes: "/30"
# action:
# - service: shell_command.clear_plex_poster

- alias: reset_conditional_media
trigger:
Expand Down Expand Up @@ -114,6 +114,8 @@
action:
- service: input_boolean.turn_on
entity_id: input_boolean.motion_vardagsrum
# - service: light.turn_on
# entity_id: light.hall

- alias: turn_off_motion_vardagsrum
trigger:
Expand Down Expand Up @@ -286,7 +288,7 @@
from: 'off'
to: 'on'
for:
hours: "{{ states('input_number.flakt_minuter') | int }}"
hours: "{{ states('input_number.fan_timer') | int }}"
action:
- service: switch.turn_off
entity_id: switch.wemo_flakt
Expand All @@ -300,10 +302,10 @@
condition: or
conditions:
- condition: state
entity_id: device_tracker.mattias
entity_id: person.mattias
state: 'home'
- condition: state
entity_id: device_tracker.sanja
entity_id: person.sanja
state: 'home'
action:
- service: switch.turn_on
Expand Down Expand Up @@ -336,12 +338,6 @@

- alias: close_popups_on_tablet
trigger:
- platform: state
entity_id: switch.fullykiosk_screen
from: 'on'
to: 'off'
for:
seconds: 30
- platform: state
entity_id: switch.fullykiosk_screensaver
from: 'off'
Expand All @@ -362,8 +358,8 @@
action:
- service: switch.turn_off
entity_id: switch.fullykiosk_screensaver
- service: switch.turn_on
entity_id: switch.fullykiosk_screen
# - service: switch.turn_on
# entity_id: switch.fullykiosk_screen

- alias: turn_off_fullykiosk_screen
trigger:
Expand All @@ -375,27 +371,27 @@
- service: switch.turn_on
entity_id: switch.fullykiosk_screensaver

- alias: fullykiosk_update_screensaver_status
trigger:
- platform: state
entity_id: switch.fullykiosk_screensaver
from: 'off'
to: 'on'
- platform: state
entity_id: switch.fullykiosk_screensaver
from: 'on'
to: 'off'
action:
- service: homeassistant.update_entity
entity_id:
['sensor.fullykiosk', 'switch.fullykiosk_screensaver']
# - alias: fullykiosk_update_screensaver_status
# trigger:
# - platform: state
# entity_id: switch.fullykiosk_screensaver
# from: 'off'
# to: 'on'
# - platform: state
# entity_id: switch.fullykiosk_screensaver
# from: 'on'
# to: 'off'
# action:
# - service: homeassistant.update_entity
# entity_id:
# ['sensor.fullykiosk', 'switch.fullykiosk_screensaver']

- alias: fullykiosk_automatic_brightness
trigger:
- platform: state
entity_id: switch.fullykiosk_screen
from: 'off'
to: 'on'
# - platform: state
# entity_id: switch.fullykiosk_screen
# from: 'off'
# to: 'on'
- platform: state
entity_id: switch.fullykiosk_screensaver
from: 'on'
Expand All @@ -406,9 +402,9 @@
entity_id: input_number.fullykiosk_brightness_slider
value: >
{% if is_state('sun.sun', 'above_horizon') %}
80
90
{% else %}
40
50
{% endif %}
Expand Down Expand Up @@ -651,9 +647,9 @@
from: 'off'
to: 'on'
condition:
- condition: state
entity_id: switch.fullykiosk_screen
state: 'on'
# - condition: state
# entity_id: switch.fullykiosk_screen
# state: 'on'
- condition: state
entity_id: switch.fullykiosk_screensaver
state: 'off'
Expand All @@ -674,9 +670,9 @@
from: 'on'
to: 'off'
condition:
- condition: state
entity_id: switch.fullykiosk_screen
state: 'on'
# - condition: state
# entity_id: switch.fullykiosk_screen
# state: 'on'
- condition: state
entity_id: switch.fullykiosk_screensaver
state: 'off'
Expand All @@ -695,9 +691,9 @@
domain: browser_mod
service: popup
condition:
- condition: state
entity_id: switch.fullykiosk_screen
state: 'on'
# - condition: state
# entity_id: switch.fullykiosk_screen
# state: 'on'
- condition: state
entity_id: switch.fullykiosk_screensaver
state: 'off'
Expand Down Expand Up @@ -837,8 +833,8 @@
- alias: reveal_laundry_timer
trigger:
- platform: state
entity_id: calendar.tvatta
to: 'on'
entity_id: sensor.tvatta_countdown_timer_trigger
to: 'true'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.laundry_timer_visibility
Expand All @@ -849,7 +845,7 @@
entity_id: input_boolean.laundry_timer_visibility
to: 'on'
for:
hours: 6
hours: 4
action:
- service: input_boolean.turn_off
entity_id: input_boolean.laundry_timer_visibility
Expand All @@ -861,42 +857,57 @@
event_data:
entity_id: timer.laundry
action:
- service: automation.turn_off
entity_id:
['automation.ui_sound_on', 'automation.ui_sound_off', 'automation.ui_sound_popup']
- service: media_player.play_media
data:
entity_id: media_player.tablet
media_content_id: /local/timer.mp3
media_content_type: music
- delay: 00:00:02
- service: tts.google_translate_say
entity_id: media_player.tablet
- service: media_player.play_media
data_template:
message: "{{ ['Tvätten är färdig', 'Dags att gå ner', 'Tvätten är klar'] | random }}"
entity_id: media_player.tablet
media_content_id: >
{{ ['/local/tts_custom/timer_tvatten_ar_fardig.mp3',
'/local/tts_custom/timer_tvatten_ar_klar.mp3',
'/local/tts_custom/timer_dags_att_ga_ner.mp3'] | random}}
media_content_type: music
# - service: tts.google_translate_say
# entity_id: media_player.tablet
# data_template:
# message: "{{ ['Tvätten är färdig', 'Dags att gå ner', 'Tvätten är klar'] | random }}"
- service: shell_command.notify_laundry
- delay: '00:00:03'
- service: automation.turn_on
entity_id:
['automation.ui_sound_on', 'automation.ui_sound_off', 'automation.ui_sound_popup']




##################### TEST #####################

- alias: timer_welcome_home
trigger:
- platform: state
entity_id: input_boolean.motion_hall
from: 'off'
to: 'on'
condition:
condition: and
conditions:
- condition: state
entity_id: device_tracker.mattias
state: 'not_home'
for:
minutes: 30
- condition: state
entity_id: device_tracker.sanja
state: 'not_home'
for:
minutes: 30
action:
- service: script.turn_on
entity_id: script.auto_hemma_tracker
# - alias: timer_welcome_home
# trigger:
# - platform: state
# entity_id: input_boolean.motion_hall
# from: 'off'
# to: 'on'
# condition:
# condition: and
# conditions:
# - condition: state
# entity_id: person.mattias
# state: 'not_home'
# for:
# minutes: 30
# - condition: state
# entity_id: person.sanja
# state: 'not_home'
# for:
# minutes: 30
# action:
# - service: script.turn_on
# entity_id: script.auto_hemma_tracker
Loading

0 comments on commit fc62bde

Please sign in to comment.