Giter VIP home page Giter VIP logo

home-assistant-config's People

Contributors

rosahas avatar

Stargazers

 avatar

Watchers

 avatar  avatar

home-assistant-config's Issues

Add Emulated Hue

I really liked how this emulated_hue setup uses one line to customize, need to try:

https://github.com/drytoastman/haconfig/blob/e09bb58c2d5fc5acdf17fb904f04fabfe5662731/configuration.yaml

homeassistant:
name: Home
latitude: 47.7396
longitude: -122.3426
elevation: 129
unit_system: imperial
time_zone: America/Los_Angeles
customize:
binary_sensor.littlewindow: { friendly_name: Little Window }
binary_sensor.diningwindow: { friendly_name: Dining Window }
binary_sensor.primarymotion: { friendly_name: Motion }
binary_sensor.livingroomwindow: { friendly_name: Living Room Window }
binary_sensor.officewindow: { friendly_name: Office Window }
binary_sensor.backdoor: { friendly_name: Back Door }
binary_sensor.bedroomslider: { friendly_name: Bedroom Slider }
binary_sensor.garagedoor: { friendly_name: Garage Door }
binary_sensor.patioslider: { friendly_name: Patio Slider }
binary_sensor.frontdoor: { friendly_name: Front Door }
climate.thermostat_heating_1_9_1: { friendly_name: Thermostat }
climate.thermostat_cooling_1_9_2: { hidden: true }
climate.thermostat_heating_econ_9_11: { hidden: true }
climate.thermostat_cooling_econ_9_12: { hidden: true }
group.all_automations: { emulated_hue: false }
group.all_locks: { emulated_hue: false }
group.all_scripts: { emulated_hue: false }
group.all_switches: { emulated_hue: false }
lock.backdoorlock_locked_17_0: { friendly_name: Backdoor Lock }
lock.frontdoorlock_locked_16_0: { friendly_name: Frontdoor Lock }
sensor.frontdoorlock_alarm_type_16_0: { hidden: true }
sensor.frontdoorlock_alarm_level_16_1: { hidden: true }
sensor.backdoorlock_alarm_type_17_0: { hidden: true }
sensor.backdoorlock_alarm_level_17_1: { hidden: true }
switch.alarm: { friendly_name: Alarm, emulated_hue: false }
switch.bedroomlight_switch_10_0: { friendly_name: Bedroom Light }
switch.doorbell: { hidden: true, emulated_hue: false }
switch.drivewaylight_switch_12_0: { friendly_name: Driveway Light }
switch.fan_switch_21_0: { friendly_name: House Fan }
switch.frontdoorlight_switch_3_0: { friendly_name: Frontdoor Light }
switch.garagedoor: { friendly_name: Garage Door }
switch.garagelight_switch_11_0: { friendly_name: Garage Light }
switch.hotwaterswitch_switch_20_0: { friendly_name: Hot Water }
switch.livingroomlight_switch_2_0: { friendly_name: Livingroom Light }
switch.thermostat_switch_9_0: { hidden: true, emulated_hue: false }
switch.warning: { hidden: true, emulated_hue: false }

logger:
default: info
logs:
homeassistant.core: warning
homeassistant.components.http: warning
homeassistant.components.sensor.command_line: warning
custom_components: debug
custom_components.bwio: info

group:
outdoorlights:
name: Outdoor Lights
entities:
- switch.drivewaylight_switch_12_0
- switch.frontdoorlight_switch_3_0

http: !include http.yaml
automation: !include automation.yaml
alarm_control_panel: !include alarm.yaml
recorder: { purge_days: 14 }
frontend:
history:
logbook:
sun:

emulated_hue:
type: alexa
expose_by_default: true

ZWave setup

zwave:
usb_path: /dev/zwave
config_path: /home/pi/.homeassistant/ozwconfig
polling_interval: 60000
customize:
sensor.thermostat_temperature_9_1: { polling_intensity: 1 }
climate.thermostat_heating_1_9_1: { polling_intensity: 1 }

My custom zwave lock interface bits

usercode:
locklogger:
panel_custom:

  • name: locks
    sidebar_title: ZWave Locks
    sidebar_icon: mdi:lock
  • name: alarm
    sidebar_title: Alarm
    sidebar_icon: mdi:security-home
    config:
    alarmid: alarm_control_panel.house

Generic sensors I like to keep an eye on for now

sensor:

  • platform: systemmonitor
    resources:
    • { type: memory_use_percent }
    • { type: processor_use }
  • platform: command_line
    name: CPU Temp
    command: "cat /sys/class/thermal/thermal_zone0/temp"
    unit_of_measurement: "°C"
    value_template: '{{ value | multiply(0.001) }}'

This is all of the I/O from my custom board

bwio:
port: /dev/bwio

binary_sensor:

  • platform: bwio
    pins:
    0: [ littlewindow, opening ]
    1: [ diningwindow, opening ]
    2: [ pin2, opening ] # unknown signal, always ok, where is it?
    3: [ primarymotion, motion ]

    4: disconnected wire in the wall of the bedroom

    5: [ doorbell, sound ]

    6: no input present

    7: isn't connected, used as ground

    8: [ livingroomwindow, opening ]
    9: [ officewindow, opening ]
    10: [ backdoor, opening ]
    11: [ bedroomslider, opening ]
    12: [ garagedoor, opening ]
    13: [ patioslider, opening ]
    14: [ frontdoor, opening ]

    15 isn't connected, used as ground

  • platform: amcrestserver
    cameras:
    192.168.2.3: driveway
    192.168.2.4: frontyard

switch:

  • platform: bwio
    pins:
    11: garagedoor
    15: alarm
  • platform: command_line
    switches:
    warning:
    command_on: "/home/pi/sounds/playloop /home/pi/sounds/warning.wav &"
    command_off: "killall playloop aplay"
    doorbell:
    command_on: "/home/pi/sounds/playloop /home/pi/sounds/bell.wav &"
    command_off: "killall playloop aplay"
  • platform: gitm
    alarm: alarm_control_panel.house
    bedroom: switch.bedroomlight_switch_10_0
    downstairs: switch.livingroomlight_switch_2_0
    wakeup: '08:00'
    tvtime: '17:00'
    bedtime: '23:00'

camera:

  • platform: local_file
    file_path: /var/video/driveway/lastsnap.jpg
    name: Driveway Camera
  • platform: local_file
    file_path: /var/video/frontyard/lastsnap.jpg
    name: FrontYard Camera

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.