Last active
April 29, 2020 13:50
-
-
Save partofthething/76980bdc8622bab3c7ad to your computer and use it in GitHub Desktop.
Home-assistant configuration with some z-wave devices, HUE lights, some custom commands, weather, etc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
homeassistant: | |
# Name of the location where Home Assistant is running | |
name: [redacted] | |
# Location required to calculate the time the sun rises and sets | |
latitude: [redacted] | |
longitude: [redacted] | |
# C for Celcius, F for Fahrenheit | |
temperature_unit: C | |
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones | |
time_zone: America/Los_Angeles | |
customize: | |
sensor.aeotec_smart_energy_switch_previous_reading: | |
hidden: true | |
sensor.aeotec_smart_energy_switch_previous_reading_2 : | |
hidden: true | |
sensor.aeotec_smart_energy_switch_previous_reading_3 : | |
hidden: true | |
sensor.aeotec_smart_energy_switch_previous_reading_4 : | |
hidden: true | |
sensor.aeotec_smart_energy_switch_previous_reading_5 : | |
hidden: true | |
sensor.aeotec_smart_energy_switch_power_2 : | |
hidden: true | |
sensor.aeotec_smart_energy_switch_power_4: | |
friendly_name: Heater Power | |
icon: mdi:speedometer | |
sensor.aeotec_smart_energy_switch_energy_4: | |
friendly_name: Heater Energy | |
icon: mdi:sigma | |
sensor.aeotec_smart_energy_switch_energy_5: | |
friendly_name: LavaLight Energy | |
icon: mdi:sigma | |
sensor.aeotec_smart_energy_switch_power_5: | |
friendly_name: LavaLight Power | |
icon: mdi:speedometer | |
sensor.__sensor_3: | |
friendly_name: Door | |
sensor.aeotec_multisensor_6_temperature_2: | |
friendly_name: Temperature | |
sensor.aeotec_multisensor_6_relative_humidity_2: | |
friendly_name: Humidity | |
icon: mdi:water | |
sensor.aeotec_multisensor_6_luminance_2: | |
friendly_name: Luminance | |
icon: mdi:weather-sunny | |
sensor.aeotec_multisensor_6_ultraviolet_2: | |
friendly_name: Ultraviolet | |
icon: mdi:sunglasses | |
sensor.aeotec_multisensor_6_sensor_2: | |
friendly_name: Sensor | |
hidden: true | |
switch.aeotec_smart_energy_switch_switch_5: | |
friendly_name: Lava Lamp | |
icon: mdi:lightbulb | |
switch.aeotec_smart_energy_switch_switch_4: | |
friendly_name: Heater | |
sensor.aeotec_multisensor_6_alarm_level_2: | |
hidden: true | |
sensor.aeotec_multisensor_6_alarm_type_2: | |
hidden: true | |
sensor.aeotec_multisensor_6_sourcenodeid_2: | |
hidden: true | |
sensor.aeotec_multisensor_6_burglar_2: | |
friendly_name: Motion sensor | |
icon: mdi:run | |
sensor.ecolink_unknown_type0001_id0002_alarm_level: | |
hidden: true | |
sensor.ecolink_unknown_type0001_id0002_alarm_type: | |
hidden: true | |
sensor.ecolink_unknown_type0001_id0002_burglar: | |
hidden: true | |
sensor.ecolink_unknown_type0001_id0002_sourcenodeid: | |
hidden: true | |
sensor.aeotec_multisensor_6_sensor: | |
hidden: true | |
sensor.ecolink_unknown_type0001_id0002_sensor: | |
friendly_name: Door sensor | |
icon: mdi:bell-ring | |
sensor.weather_wind_speed: | |
icon: mdi:weather-windy | |
sensor.weather_cloud_coverage: | |
icon: mdi:weather-partlycloudy | |
sensor.weather_precip_probability: | |
icon: mdi:weather-rainy | |
script.sexy: | |
icon: mdi:heart | |
switch.ge_unknown_type4952_id3033_switch_6: | |
friendly_name: Kitchen Lights | |
icon: mdi:lightbulb | |
group.a_switches: | |
friendly_name: All Switches | |
switch.ge_unknown_type4952_id3033_switch_7: | |
friendly_name: Light Tower | |
icon: mdi:lightbulb | |
switch.ge_unknown_type4952_id3033_switch_8: | |
friendly_name: Hallway lights | |
icon: mdi:lightbulb | |
script.nightlight: | |
hidden: true | |
# View all events in a logbook | |
logbook: | |
logger: | |
default: info | |
# Discover some devices automatically | |
discovery: | |
# Track the sun | |
sun: | |
# Checks for available updates | |
updater: | |
# Enables the frontend | |
frontend: | |
# Allows you to issue voice commands from the frontend | |
#conversation: | |
# Enables support for tracking state changes over time. | |
history: | |
http: | |
api_password: [redacted] | |
camera: | |
- platform: mjpeg | |
mjpeg_url: http://[redacted] | |
name: Indoor cam | |
port: [redacted] | |
- platform: mjpeg | |
mjpeg_url: http://[redacted] | |
name: Outdoor cam | |
device_tracker: | |
platform: nmap_tracker | |
hosts: [redacted] | |
interval_seconds: 30 | |
sensor: | |
platform: forecast | |
api_key: [redacted] | |
monitored_conditions: | |
- precip_probability | |
- temperature | |
- wind_speed | |
- cloud_cover | |
group: | |
a_switches: | |
- switch.ge_unknown_type4952_id3033_switch_6 | |
- switch.ge_unknown_type4952_id3033_switch_7 | |
- switch.ge_unknown_type4952_id3033_switch_8 | |
- switch.aeotec_smart_energy_switch_switch_4 | |
- switch.aeotec_smart_energy_switch_switch_5 | |
- light.clip_on | |
- light.living_room | |
- light.bedroom | |
- light.bathroom | |
energy: | |
- sensor.aeotec_smart_energy_switch_power | |
- sensor.aeotec_smart_energy_switch_previous_reading | |
- sensor.aeotec_smart_energy_switch_energy | |
- sensor.aeotec_smart_energy_switch_previous_reading_2 | |
- sensor.aeotec_smart_energy_switch_power_3 | |
- sensor.aeotec_smart_energy_switch_power_2 | |
- sensor.aeotec_smart_energy_switch_power_4 | |
- sensor.aeotec_smart_energy_switch_power_5 | |
- sensor.aeotec_smart_energy_switch_energy_4 | |
- sensor.aeotec_smart_energy_switch_previous_reading_3 | |
- sensor.aeotec_smart_energy_switch_previous_reading_4 | |
- sensor.aeotec_smart_energy_switch_energy_5 | |
weather: | |
- sensor.weather_cloud_coverage | |
- sensor.weather_temperature | |
- sensor.weather_precip_probability | |
- sensor.weather_wind_speed | |
hallway: | |
- camera.door_camera | |
- sensor.ecolink_unknown_type0001_id0002_sensor | |
- sensor.__sensor_3 | |
multisensor: | |
- sensor.aeotec_multisensor_6_temperature_2 | |
- sensor.aeotec_multisensor_6_relative_humidity_2 | |
- sensor.aeotec_multisensor_6_luminance_2 | |
- sensor.aeotec_multisensor_6_ultraviolet_2 | |
- sensor.aeotec_multisensor_6_sensor_2 | |
- sensor.aeotec_multisensor_6_burglar_2 | |
toggles: | |
- input_boolean.arm_greeting | |
- input_boolean.morning_armed | |
light: | |
platform: hue | |
host: [redacted] | |
zwave: | |
usb_path: /dev/zwave | |
config_path: /home/pi/python-openzwave/openzwave/config | |
polling_interval: 1000 | |
customize: | |
switch.ge_unknown_type4952_id3033_switch_8: # b/c this switch doesn't send an EVENT | |
polling_intensity: 1 | |
# Example configuration.yaml entry | |
input_boolean: | |
arm_greeting: | |
# Optional, friendly name of entry | |
name: Go romance on motion | |
# Optional, value when Home Assistant starts | |
initial: off | |
# Optional, icon for entry | |
icon: mdi:heart | |
morning_armed: | |
initial: on | |
automation: | |
- alias: Nightlight | |
trigger: | |
platform: state | |
entity_id: sensor.aeotec_multisensor_6_burglar_2 | |
from: "0" | |
to: "8" | |
action: | |
service: script.turn_on | |
entity_id: script.nightlight | |
condition: | |
- platform: time | |
before: '05:00:00' | |
after: '01:00:00' | |
- platform: numeric_state | |
entity_id: sensor.aeotec_multisensor_6_luminance_2 | |
below: "4" | |
- platform: state | |
entity_id: light.bathroom | |
state: 'off' | |
- alias: Morning | |
trigger: | |
platform: state | |
entity_id: sensor.aeotec_multisensor_6_burglar_2 | |
from: "0" | |
to: "8" | |
action: | |
service: scene.turn_on | |
entity_id: scene.Morning | |
condition: | |
- platform: time | |
before: '09:00:00' | |
after: '06:00:00' | |
- platform: state | |
entity_id: group.a_switches | |
state: 'off' | |
- platform: state | |
entity_id: input_boolean.morning_armed | |
state: 'on' | |
- alias: Coming Home | |
trigger: | |
platform: state | |
entity_id: sensor.__sensor_3 | |
from: 'off' | |
to: 'on' | |
action: | |
service: switch.turn_on | |
entity_id: switch.ge_unknown_type4952_id3033_switch_8 | |
condition: | |
- platform: state | |
entity_id: group.a_switches | |
state: 'off' | |
# shut off all lights when hallway light switched off | |
- alias: Leaving | |
trigger: | |
platform: state | |
entity_id: switch.ge_unknown_type4952_id3033_switch_8 | |
from: 'on' | |
to: 'off' | |
action: | |
service: homeassistant.turn_off | |
entity_id: group.a_switches | |
condition: | |
- platform: state | |
entity_id: sensor.__sensor_3 | |
state: 'on' | |
# This helps make it so the morning automation only runs once per morning | |
- alias: Arm Morning | |
trigger: | |
platform: time | |
after: '09:01:00' | |
action: | |
service: input_boolean.turn_on | |
entity_id: input_boolean.morning_armed | |
- alias: 'Alert on Low temperature' | |
trigger: | |
platform: numeric_state | |
entity_id: sensor.aeotec_multisensor_6_temperature_2 | |
below: 18.0 | |
action: | |
service: notify.notify | |
data: | |
message: 'Temperature at Apt Low' | |
- alias: Play adele on motion | |
trigger: | |
platform: state | |
entity_id: sensor.aeotec_multisensor_6_burglar_2 | |
from: '0' | |
to: '8' | |
action: | |
service: script.turn_on | |
entity_id: script.sexy | |
condition: | |
platform: state | |
entity_id: input_boolean.arm_greeting | |
state: 'on' | |
shell_command: | |
play_adele: mpg321 /home/pi/Music/hello.mp3 | |
greet_nick: espeak "Welcome home, Nick" | |
sexy_music: mpg321 /home/pi/Music/marvin_get_it_on.mp3 | |
scene: | |
- name: Romantic | |
entities: | |
light.bedroom: | |
state: on | |
rgb_color: [255,0,0] | |
brightness: 255 | |
light.clip_on: | |
state: on | |
rgb_color: [255,0,0] | |
brightness: 255 | |
light.living_room: | |
state: on | |
rgb_color: [255,0,0] | |
brightness: 255 | |
light.bathroom: | |
state: on | |
rgb_color: [255,0,0] | |
brightness: 255 | |
switch.aeotec_smart_energy_switch_switch_4: | |
state: on | |
switch.aeotec_smart_energy_switch_switch_5: | |
state: on | |
switch.ge_unknown_type4952_id3033_switch_6: | |
state: off | |
switch.ge_unknown_type4952_id3033_switch_7: | |
state: off | |
switch.ge_unknown_type4952_id3033_switch_8: | |
state: off | |
- name: Bright | |
entities: | |
light.bedroom: | |
state: on | |
rgb_color: [255,204,127] | |
brightness: 255 | |
light.clip_on: | |
state: on | |
rgb_color: [255,204,127] | |
brightness: 255 | |
light.living_room: | |
state: on | |
rgb_color: [255,204,127] | |
brightness: 255 | |
switch.ge_unknown_type4952_id3033_switch_6: | |
state: on | |
switch.ge_unknown_type4952_id3033_switch_7: | |
state: on | |
switch.ge_unknown_type4952_id3033_switch_8: | |
state: on | |
light.bathroom: | |
state: on | |
rgb_color: [255,204,127] | |
brightness: 255 | |
- name: Morning | |
entities: | |
light.clip_on: | |
state: on | |
color_temp: 500, | |
rgb_color: [255,175,68] | |
brightness: 254 | |
light.living_room: | |
state: on | |
color_temp: 500, | |
rgb_color: [255,175,68] | |
brightness: 254 | |
light.bathroom: | |
state: on | |
color_temp: 500, | |
rgb_color: [255,175,68] | |
brightness: 254 | |
input_boolean.morning_armed: # make it only happen once | |
state: off | |
script: | |
sexy: | |
alias: Sexy | |
sequence: | |
- alias: Romantic scene on | |
service: scene.turn_on | |
entity_id: scene.Romantic | |
- alias: Music On | |
service: shell_command.sexy_music | |
nightlight: | |
alias: Nightlight | |
sequence: | |
- alias: Light on | |
service: light.turn_on | |
entity_id: light.bathroom | |
data: | |
brightness: 200 | |
rgb_color: [255, 0, 0] | |
- delay: | |
minutes: 3 | |
- alias: Light off | |
service: light.turn_off | |
entity_id: light.bathroom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment