Este commit está contenido en:
SSH User / Docker 2019-09-13 20:38:30 +02:00
padre 4d533165af
commit 04e208b2a1
Se han modificado 12 ficheros con 277 adiciones y 157 borrados

Ver fichero

@ -8,6 +8,7 @@
- light.ambilight - light.ambilight
- light.kuchen_theke - light.kuchen_theke
- light.esstisch - light.esstisch
- light.office
- switch.livingroom_stimmungslicht - switch.livingroom_stimmungslicht
- switch.livingroom_music - switch.livingroom_music
- switch.livingroom_netflix - switch.livingroom_netflix
@ -32,7 +33,10 @@
description: Küche - Theken-Lichter description: Küche - Theken-Lichter
light.esstisch: light.esstisch:
name: Esstisch name: Esstisch
description: Küche - Esstisch-Lampen description: Esstisch-Lichter
light.office:
name: Büro
description: Büro - Deckenlampe
light.stimmungslicht: light.stimmungslicht:
name: Stimmungslicht name: Stimmungslicht
description: Wohnzimmer - Stimmungslicht description: Wohnzimmer - Stimmungslicht

28
automations/theme-switch.yaml Archivo normal
Ver fichero

@ -0,0 +1,28 @@
# You can replace default by Light - Green, for example
- alias: 'Set theme at startup'
trigger:
- platform: homeassistant
event: start
action:
- service: frontend.set_theme
data:
name: default
- alias: 'Set HA theme for day and night'
trigger:
- platform: homeassistant
event: start
- platform: state
entity_id: sun.sun
to: above_horizon
- platform: state
entity_id: sun.sun
to: below_horizon
action:
- service_template: frontend.set_theme
data_template:
name: >
{% if states.sun.sun.state == "above_horizon" %}
default
{% else %}
default
{% endif %}

Ver fichero

@ -7,6 +7,7 @@ homeassistant:
time_zone: Europe/Berlin time_zone: Europe/Berlin
customize: !include_dir_merge_named customizations/ customize: !include_dir_merge_named customizations/
auth_providers: auth_providers:
- type: homeassistant
- type: trusted_networks - type: trusted_networks
trusted_networks: trusted_networks:
- 127.0.0.1 - 127.0.0.1
@ -15,6 +16,7 @@ homeassistant:
- fd00::/8 - fd00::/8
frontend: frontend:
themes: !include_dir_merge_named themes/
http: http:
ip_ban_enabled: true ip_ban_enabled: true
@ -28,11 +30,16 @@ lovelace:
mode: yaml mode: yaml
zone: zone:
- name: !secret work1_name - name: !secret work_name_f
latitude: !secret work1_lat latitude: !secret work_lat_f
longitude: !secret work1_long longitude: !secret work_long_f
radius: 250 radius: 250
icon: mdi:briefcase icon: mdi:briefcase
- name: !secret work_name_j
latitude: !secret work_lat_j
longitude: !secret work_long_j
radius: 500
icon: mdi:briefcase
system_health: system_health:
@ -45,7 +52,8 @@ updater:
conversation: conversation:
tts: tts:
- platform: google - platform: google_translate
service_name: google_say
history: history:
@ -132,8 +140,8 @@ notify:
- name: telegram_fb - name: telegram_fb
platform: telegram platform: telegram
chat_id: !secret telegram_chat_fb chat_id: !secret telegram_chat_fb
- name: android # - name: android
platform: fcm-android # platform: fcm-android
device_tracker: device_tracker:
@ -174,25 +182,11 @@ binary_sensor:
name: Morning name: Morning
after: '05:00' after: '05:00'
before: '11:00' before: '11:00'
- platform: mqtt - platform: ffmpeg_motion
state_topic: /home/camera/yihome1/motion/state input: '-rtsp_transport udp -i rtsp://192.168.2.31/ch0_0.h264'
name: YiHome1 Alarm name: camera_home1_motion
payload_on: 1 changes: 50
payload_off: 0 reset: 20
- platform: command_line
name: backup_error_occured
command: 'if [ `wc -l < /backuplogs/run.err.log` -eq 0 ]; then echo 0; else echo 1; fi'
payload_on: 1
payload_off: 0
scan_interval: 1800
device_class: 'problem'
- platform: command_line
name: backup_sync_error_occured
command: 'if [ `wc -l < /backuplogs/sync.err.log` -eq 0 ]; then echo 0; else echo 1; fi'
payload_on: 1
payload_off: 0
scan_interval: 1800
device_class: 'problem'
weather: weather:
- platform: openweathermap - platform: openweathermap
@ -204,25 +198,15 @@ weather:
# bed: true # bed: true
# number_of_tools: 1 # number_of_tools: 1
#ffmpeg: ffmpeg:
# ffmpeg_bin: /usr/bin/ffmpeg ffmpeg_bin: /usr/bin/ffmpeg
stream:
camera: camera:
# - platform: yi - platform: ffmpeg
# name: YiHome1 name: home1
# host: !secret yihome1 input: '-rtsp_transport tcp -i rtsp://192.168.2.31/ch0_0.h264'
# password: !secret yihome1_password
# ffmpeg_arguments: '-pred 1 -vf scale=800:450'
# - platform: mqtt
# name: YiHome1-Mqtt
# topic: /home/camera/yihome1/motion/photo
# - platform: mjpeg
# name: octoprint_webcam
# mjpeg_url: !secret octoprint_cam_url
# - platform: local_file
#name: elisey_shocked
#friendly_name: Schlechtes Wetter
#file_path: /local/elisey_shocked.png
input_datetime: input_datetime:
bedroom_alarm_clock_time: bedroom_alarm_clock_time:
@ -231,19 +215,23 @@ input_datetime:
has_time: true has_time: true
panel_iframe: panel_iframe:
deconz:
title: 'Deconz'
url: !secret url_deconz
icon: mdi:gate-and
chronograf: chronograf:
title: 'Chronograf' title: 'Chronograf'
url: !secret url_chronograf url: !secret url_chronograf
icon: mdi:monitor-dashboard icon: mdi:monitor-dashboard
deconz:
title: 'Deconz'
url: !secret url_deconz
icon: mdi:gate-and
esphome:
title: 'ESPHome'
url: !secret url_esphome
icon: mdi:chip
#alert: !include alerts.yaml alert: !include_dir_merge_list alerts/
alexa: !include alexa.yaml alexa: !include alexa.yaml
automation: !include_dir_merge_list automations/ automation: !include_dir_merge_list automations/
#scene: !include scenes.yaml #scene: !include scenes.yaml
script: !include scripts.yaml script: !include scripts.yaml
sensor: !include_dir_merge_list sensors/ sensor: !include_dir_merge_list sensors/
switch: !include switches.yaml switch: !include switches.yaml

Ver fichero

@ -2,9 +2,5 @@ icon: mdi:cctv
path: cctv path: cctv
cards: cards:
- type: picture-entity - type: picture-entity
name: Haustür name: Büro
entity: camera.yihome1 entity: camera.home1
- type: picture-entity
name: Haustür Alarm Image
entity: binary_sensor.yihome1_alarm
camera_image: camera.yihome1_alarm

Ver fichero

@ -6,22 +6,23 @@ cards:
- entity: sensor.myip - entity: sensor.myip
name: Öffentliche IP name: Öffentliche IP
icon: mdi:earth icon: mdi:earth
- type: entities - type: horizontal-stack
title: Florian cards:
show_header_toggle: false - type: entities
entities: title: Florian
- entity: device_tracker.mobile_fb show_header_toggle: false
name: Standort entities:
- entity: sensor.device_mobile_fb_battery - entity: device_tracker.mobile_fb
name: Handy-Akku name: Standort
icon: mdi:battery - entity: sensor.device_mobile_fb_battery
- type: entities name: Handy-Akku
title: Jenny icon: mdi:battery
show_header_toggle: false - type: entities
entities: title: Jenny
- entity: device_tracker.mobile_fb show_header_toggle: false
name: Standort entities:
- entity: sensor.device_mobile_fb_battery - entity: device_tracker.mobile_fb
name: Handy-Akku name: Standort
icon: mdi:battery - entity: sensor.device_mobile_fb_battery
name: Handy-Akku
icon: mdi:battery

Ver fichero

@ -1,21 +1,151 @@
icon: mdi:water-percent icon: mdi:water-percent
path: humidity path: humidity
cards: cards:
- type: history-graph - type: vertical-stack
title: 'Badezimmer' cards:
refresh_interval: 30 - type: markdown
entities: content: "### Elternbad"
- entity: sensor.bathroom_hygrometer_temperature - type: horizontal-stack
name: Temperatur cards:
- entity: sensor.bathroom_hygrometer_humidity - type: sensor
name: Luftfeuchtigkeit entity: sensor.parents_bathroom_hygrometer_humidity
- type: history-graph name: Luftfeuchtigkeit
title: 'Dachboden' graph: line
refresh_interval: 30 unit: "%"
entities: detail: 2
- entity: sensor.attic_temperature hours_to_show: 12
name: Temperatur - type: sensor
- entity: sensor.attic_heatIndex entity: sensor.parents_bathroom_hygrometer_temperature
name: Gefühlt name: Temperatur
- entity: sensor.attic_humidity graph: line
name: Luftfeuchtigkeit unit: °C
detail: 2
hours_to_show: 12
- type: markdown
content: "### \"Kinderbad\""
- type: horizontal-stack
cards:
- type: sensor
entity: sensor.kids_bathroom_hygrometer_humidity
name: Luftfeuchtigkeit
graph: line
unit: "%"
detail: 2
hours_to_show: 12
- type: sensor
entity: sensor.kids_bathroom_hygrometer_temperature
name: Temperatur
graph: line
unit: °C
detail: 2
hours_to_show: 12
- type: markdown
content: "### Schlafzimmer"
- type: horizontal-stack
cards:
- type: sensor
entity: sensor.humidity_12
name: Luftfeuchtigkeit
graph: line
unit: "%"
detail: 2
hours_to_show: 12
- type: sensor
entity: sensor.temperature_11
name: Temperatur
graph: line
unit: °C
detail: 2
hours_to_show: 12
- type: markdown
content: "### Gästezimmer"
- type: horizontal-stack
cards:
- type: sensor
entity: sensor.humidity_18
name: Luftfeuchtigkeit
graph: line
unit: "%"
detail: 2
hours_to_show: 12
- type: sensor
entity: sensor.temperature_17
name: Temperatur
graph: line
unit: °C
detail: 2
hours_to_show: 12
- type: vertical-stack
cards:
- type: markdown
content: "### Wohnzimmer"
- type: horizontal-stack
cards:
- type: sensor
entity: sensor.humidity_4
name: Luftfeuchtigkeit
graph: line
unit: "%"
detail: 2
hours_to_show: 12
- type: sensor
entity: sensor.temperature_3
name: Temperatur
graph: line
unit: °C
detail: 2
hours_to_show: 12
- type: markdown
content: "### Hauswirtschaftsraum"
- type: horizontal-stack
cards:
- type: sensor
entity: sensor.hwr_hygrometer_humidity
name: Luftfeuchtigkeit
graph: line
unit: "%"
detail: 2
hours_to_show: 12
- type: sensor
entity: sensor.hwr_hygrometer_temperature
name: Temperatur
graph: line
unit: °C
detail: 2
hours_to_show: 12
- type: markdown
content: "### Büro"
- type: horizontal-stack
cards:
- type: sensor
entity: sensor.humidity_15
name: Luftfeuchtigkeit
graph: line
unit: "%"
detail: 2
hours_to_show: 12
- type: sensor
entity: sensor.temperature_14
name: Temperatur
graph: line
unit: °C
detail: 2
hours_to_show: 12
- type: markdown
content: "### Dachboden"
- type: horizontal-stack
cards:
- type: sensor
entity: sensor.attic_humidity_2
name: Luftfeuchtigkeit
graph: line
unit: "%"
detail: 2
hours_to_show: 12
- type: sensor
entity: sensor.attic_temperature_2
name: Temperatur
graph: line
unit: °C
detail: 2
hours_to_show: 12

Ver fichero

@ -1,10 +0,0 @@
title: Küche
path: kitchen
cards:
# Lights
- type: entities
entities:
- entity: light.kuchen_theke
name: Küchen-Theke
- entity: light.esstisch
name: Esstisch

18
lovelace-views/lights.yaml Archivo normal
Ver fichero

@ -0,0 +1,18 @@
title: Lichter
path: lights
cards:
- type: light
entity: light.kuchen_theke
name: Küchen-Theke
- type: light
entity: light.office
name: Büro
- type: light
entity: light.stimmungslicht
name: Stimmungslicht
- type: light
entity: light.ambilight
name: Ambilight
- type: light
entity: light.esstisch
name: Esstisch

Ver fichero

@ -3,14 +3,15 @@ path: overview
cards: cards:
- type: vertical-stack - type: vertical-stack
cards: cards:
- type: weather-forecast - type: custom:weather-card
entity: weather.openweathermap entity: weather.openweathermap
# - type: iframe name: Wetter
# url: !secret iframe_windy
# aspect_ratio: 75%
- type: iframe - type: iframe
url: !secret iframe_earth url: !secret iframe_windy
aspect_ratio: 75% aspect_ratio: 75%
# - type: iframe
# url: !secret iframe_earth
# aspect_ratio: 75%
- type: conditional - type: conditional
conditions: conditions:
- entity: binary_sensor.workday_sensor - entity: binary_sensor.workday_sensor
@ -24,36 +25,6 @@ cards:
entities: entities:
- entity: sensor.salzbergen_to_munster_hbf - entity: sensor.salzbergen_to_munster_hbf
name: Abfahrt name: Abfahrt
- type: vertical-stack
cards:
- type: glance
title: Temperatur
show_name: true
show_state: true
entities:
- entity: sensor.bathroom_hygrometer_temperature
name: Badezimmer
icon: mdi:thermometer
- entity: sensor.temperature_3
name: Wohnzimmer
icon: mdi:thermometer
- entity: sensor.attic_temperature
name: Dachboden
icon: mdi:thermometer
- type: glance
title: Luftfeuchtigkeit
show_name: true
show_state: true
entities:
- entity: sensor.bathroom_hygrometer_humidity
name: Badezimmer
icon: mdi:water-percent
- entity: sensor.humidity_4
name: Wohnzimmer
icon: mdi:water-percent
- entity: sensor.attic_humidity
name: Dachboden
icon: mdi:water-percent
- type: vertical-stack - type: vertical-stack
cards: cards:
- type: glance - type: glance
@ -64,4 +35,4 @@ cards:
aspect_ratio: 75% aspect_ratio: 75%
default_zoom: 15 default_zoom: 15
entities: entities:
- zone.home - zone.home

Ver fichero

@ -9,20 +9,4 @@
name: "mobile_fb_callstate" name: "mobile_fb_callstate"
state_topic: "homeassistant/sensor/android_mobile_fb_callstate/state" state_topic: "homeassistant/sensor/android_mobile_fb_callstate/state"
value_template: "{{ value_json.state }}" value_template: "{{ value_json.state }}"
json_attributes_topic: "homeassistant/sensor/android_mobile_fb_callstate/state" json_attributes_topic: "homeassistant/sensor/android_mobile_fb_callstate/state"
- platform: mqtt
name: "Attic Humidity"
state_topic: "home/attic/homenodeTiny1/humidity"
force_update: true
unit_of_measurement: "%"
- platform: mqtt
name: "Attic Temperature"
state_topic: "home/attic/homenodeTiny1/temperature"
force_update: true
unit_of_measurement: "°C"
- platform: mqtt
name: "Attic HeatIndex"
state_topic: "home/attic/homenodeTiny1/heatIndex"
force_update: true
unit_of_measurement: "°C"

Ver fichero

@ -1,3 +1,8 @@
- platform: wake_on_lan
name: Computer
mac_address: "50-E5-49-C4-DF-B4"
host: "192.168.2.168"
- platform: template - platform: template
switches: switches:
harmony_music_bt: harmony_music_bt:

Ver fichero

@ -1,11 +1,16 @@
# Icons @ https://materialdesignicons.com/ # Icons @ https://materialdesignicons.com/
title: Making Home Great Again title: Making Home Great Again
views: views:
- !include lovelace-views/overview.yaml - !include lovelace-views/overview.yaml
- !include lovelace-views/kitchen.yaml - !include lovelace-views/lights.yaml
- !include lovelace-views/livingroom.yaml - !include lovelace-views/livingroom.yaml
- !include lovelace-views/humidity.yaml - !include lovelace-views/humidity.yaml
- !include lovelace-views/spotify.yaml - !include lovelace-views/spotify.yaml
- !include lovelace-views/instagram.yaml - !include lovelace-views/instagram.yaml
- !include lovelace-views/devices.yaml - !include lovelace-views/devices.yaml
# - !include lovelace-views/cctv.yaml - !include lovelace-views/cctv.yaml
resources:
- url: https://cdn.jsdelivr.net/gh/bramkragten/custom-ui@master/weather-card/weather-card.min.js
type: module