Skip to content

Commit

Permalink
Inital commit
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed May 23, 2018
0 parents commit e136071
Show file tree
Hide file tree
Showing 15 changed files with 760 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
secrets.yaml
known_devices.yaml
docker-compose.yaml
home-assistant.log
home-assistant_v2.db
deps/
.HA_VERSION
.uuid
9 changes: 9 additions & 0 deletions .travis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: python
python:
- "3.5.3"
install:
- pip3 install homeassistant
script:
- hass -c . --script check_config
before_install:
- mv travis_secrets.yaml secrets.yaml
60 changes: 60 additions & 0 deletions automation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
- alias: Kitchen Ceiling send state off when lwt is seen
trigger:
platform: mqtt
topic: "tele/kitchen_ceiling_lamp/LWT"
payload: "Offline"
action:
service: mqtt.publish
data:
payload: "OFF"
qos: 1
retain: true
topic: "stat/kitchen_ceiling_lamp/POWER"
- alias: Livingroom Ceiling send state off when lwt is seen
trigger:
platform: mqtt
topic: "tele/livingroom_ceiling_lamp/LWT"
payload: "Offline"
action:
service: mqtt.publish
data:
payload: "OFF"
qos: 1
retain: true
topic: "stat/livingroom_ceiling_lamp/POWER"
- alias: Lobby Ceiling send state off when lwt is seen
trigger:
platform: mqtt
topic: "tele/lobby_ceiling/LWT"
payload: "Offline"
action:
service: mqtt.publish
data:
payload: "OFF"
qos: 1
retain: true
topic: "stat/lobby_ceiling/POWER"
- alias: Studyroom Ceiling send state off when lwt is seen
trigger:
platform: mqtt
topic: "tele/studyroom_ceiling_lamp/LWT"
payload: "Offline"
action:
service: mqtt.publish
data:
payload: "OFF"
qos: 1
retain: true
topic: "stat/studyroom_ceiling_lamp/POWER"
- alias: Storageroom Ceiling send state off when lwt is seen
trigger:
platform: mqtt
topic: "tele/storageroom_ceiling_lamp/LWT"
payload: "Offline"
action:
service: mqtt.publish
data:
payload: "OFF"
qos: 1
retain: true
topic: "stat/storageroom_ceiling_lamp/POWER"
91 changes: 91 additions & 0 deletions configuration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
#################################################################
## Home Assistant
#################################################################

homeassistant:
name: Home
latitude: !secret homeassistant_latitude
longitude: !secret homeassistant_longitude
elevation: !secret homeassistant_elevation
unit_system: metric
time_zone: !secret homeassistant_timezone
customize: !include customize.yaml


frontend:
updater:
reporting: no
include_used_components: true
sun:
map:
config:

logger:
default: critical
logs:
homeassistant.components.http.ban: warning

logbook:

http:
# Uncomment this to add a password (recommended!)
api_password: !secret homeassistant_password
# Uncomment this if you are using SSL or running in Docker etc
base_url: !secret homeassistant_url
ip_ban_enabled: True
login_attempts_threshold: 3

history:

#################################################################
## Components
#################################################################

emulated_hue:
host_ip: !secret homeassistant_host_ip
type: alexa
expose_by_default: false

mqtt:
broker: !secret mqtt_host
port: 1883
client_id: !secret mqtt_client_id
username: !secret mqtt_user
password: !secret mqtt_pass
keepalive: 60

recorder:
db_url: !secret db_url
purge_interval: 0

device_tracker:
- platform: fritz
track_new_devices: yes

xiaomi_aqara:
discovery_retry: 10
gateways:
- mac:
key: !secret xiaomi_aqara_key

media_player:
- platform: denonavr
host: !secret denon_ip
- platform: kodi
host: !secret kodi_ip

#################################################################
## Includes
#################################################################

switch: !include switch.yaml
sensor: !include sensor.yaml
group: !include group.yaml
automation: !include automation.yaml
script: !include scripts.yaml
light: !include_dir_merge_list lights/
input_boolean: !include input_boolean.yaml
input_number: !include input_number.yaml
notify: !include notify.yaml
zone: !include zone.yaml

114 changes: 114 additions & 0 deletions customize.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
switch.kitchen_ceiling_lamp:
emulated_hue_hidden: false
emulated_hue_name: "Küchen Lampe"
icon: mdi:lightbulb
switch.snowboard:
emulated_hue_hidden: false
emulated_hue_name: "Snowboard"
icon: mdi:lightbulb
switch.livingroom_ceiling:
emulated_hue_hidden: false
emulated_hue_name: "Decken Lampe"
icon: mdi:lightbulb
switch.livingroom_small_lamp:
emulated_hue_hidden: false
emulated_hue_name: "Kleine Lampe"
icon: mdi:lightbulb
switch.livingroom_large_lamp:
emulated_hue_hidden: false
emulated_hue_name: "Große Lampe"
icon: mdi:lightbulb
switch.rosie_station:
emulated_hue_hidden: false
emulated_hue_name: "Rosie Station"
switch.storageroom_ceiling_lamp:
emulated_hue_hidden: false
emulated_hue_name: "Abstellkammer Lampe"
icon: mdi:lightbulb
switch.studyroom_ceiling_lamp:
emulated_hue_hidden: false
emulated_hue_name: "Arbeitszimmer Decken Lampe"
icon: mdi:lightbulb
switch.studyroom_lamp:
emulated_hue_hidden: false
emulated_hue_name: "Arbeitszimmer Steh Lampe"
icon: mdi:lightbulb
switch.lobby_ceiling:
emulated_hue_hidden: false
emulated_hue_name: "Flur"
icon: mdi:lightbulb
media_player.denon_avrx1300w:
emulated_hue_hidden: false
emulated_hue_name: "Receiver"
group.all:
emulated_hue_hidden: false
emulated_hue_name: "Wohnung"
group.livingroom:
emulated_hue_hidden: false
emulated_hue_name: "Wohnzimmer"
group.kitchen:
emulated_hue_hidden: false
emulated_hue_name: "Küche"
group.studyroom:
emulated_hue_hidden: false
emulated_hue_name: "Arbeitszimmer"
group.synonym_light:
emulated_hue_hidden: false
emulated_hue_name: "Licht"
script.receiver_set_source_cbl_sat:
emulated_hue_hidden: false
emulated_hue_name: "Sat"
script.receiver_set_source_media_player:
emulated_hue_hidden: false
emulated_hue_name: "Receiver Media Player"
script.receiver_set_source_dvd:
emulated_hue_hidden: false
emulated_hue_name: "Receiver Kodi"
light.bar_table:
emulated_hue_hidden: false
emulated_hue_name: "Bar"
script.bar_table_green:
emulated_hue_hidden: false
emulated_hue_name: "Bar Grün"
script.bar_table_red:
emulated_hue_hidden: false
emulated_hue_name: "Bar Rot"
script.bar_table_white:
emulated_hue_hidden: false
emulated_hue_name: "Bar Weiss"
light.bedroom_yeelight:
emulated_hue_hidden: false
emulated_hue_name: "Schlafzimmer"
switch.plug_158d00015694c5:
friendly_name: Waschmaschine
sensor.travel_time_work_from_home:
icon: mdi: clock
sensor.travel_time_work_from_sindlingen:
icon: mdi: clock
sensor.travel_time_sindlingen_from_home:
icon: mdi: clock
sensor.travel_time_sindlingen_from_work:
icon: mdi: clock
sensor.travel_time_home_from_sindlingen:
icon: mdi: clock
sensor.travel_time_home_from_work:
icon: mdi: clock
sensor.travel_time_work_from_home:
friendly_name: "Slack Benachrichtigung"
icon: mdi: slack
sensor.travel_time_work_from_sindlingen:
friendly_name: "Slack Benachrichtigung"
icon: mdi: slack
sensor.travel_time_sindlingen_from_home:
friendly_name: "Slack Benachrichtigung"
icon: mdi: slack
sensor.travel_time_sindlingen_from_work:
friendly_name: "Slack Benachrichtigung"
icon: mdi: slack
sensor.travel_time_home_from_sindlingen:
friendly_name: "Slack Benachrichtigung"
icon: mdi: slack
sensor.travel_time_home_from_work:
friendly_name: "Slack Benachrichtigung"
icon: mdi: slack

24 changes: 24 additions & 0 deletions entity_registry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
sensor.illumination_286c0785b294:
name:
platform: xiaomi_aqara
unique_id: illumination286c0785b294
switch.plug_158d00015694c5:
name:
platform: xiaomi_aqara
unique_id: status158d00015694c5
light.gateway_light_286c0785b294:
name:
platform: xiaomi_aqara
unique_id: rgb286c0785b294
binary_sensor.door_window_sensor_158d000126a57b:
name:
platform: xiaomi_aqara
unique_id: status158d000126a57b
binary_sensor.switch_158d00012db9e5:
name:
platform: xiaomi_aqara
unique_id: status158d00012db9e5
binary_sensor.motion_sensor_158d00012aab97:
name:
platform: xiaomi_aqara
unique_id: status158d00012aab97
Loading

0 comments on commit e136071

Please sign in to comment.