Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- homeassistant:
- # Name of the location where Home Assistant is running
- name: Home
- # Location required to calculate the time the sun rises and sets
- latitude: 43.0286
- longitude: -89.5181
- # Impacts weather/sunrise data (altitude above sea level in meters)
- elevation: 320
- # metric for Metric, imperial for Imperial
- unit_system: imperial
- # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
- time_zone: America/Chicago
- customize: !include customize.yaml
- packages: !include_dir_named packages
- # Show links to resources in log and frontend
- introduction:
- # Enables the frontend
- frontend:
- cover: ## this makes the garage door card appear in HA
- - platform: mqtt
- name: "garage"
- state_topic: "sensor/garage/state1"
- command_topic: "sensor/garage/action1"
- payload_open: "OPEN"
- payload_close: "OPEN"
- payload_stop: "OPEN"
- state_open: "open"
- state_closed: "closed"
- optomistic: false
- retain: false
- automation old:
- - alias: "Led Motion Light"
- trigger:
- - platform: state
- entity_id: sensor.sn1_pir
- from: 'standby'
- to: 'motion detected'
- action:
- - service: homeassistant.turn_on
- entity_id: script.timed_lamp_dining_room
- - alias: "led Motion Light Off"
- trigger:
- - platform: state
- entity_id: sensor.sn1_pir
- from: 'motion detected'
- to: 'standby'
- action:
- - service: homeassistant.turn_on
- entity_id: script.timer_off_dining_room
- automation old2:
- - alias: "Led Motion Light"
- trigger:
- - platform: state
- entity_id: sensor.sn2_pir
- from: 'standby'
- to: 'motion detected'
- action:
- - service: homeassistant.turn_on
- entity_id: script.timed_lamp_dining_room
- - alias: "led Motion Light Off"
- trigger:
- - platform: state
- entity_id: sensor.sn2_pir
- from: 'motion detected'
- to: 'standby'
- action:
- - service: homeassistant.turn_on
- entity_id: script.timer_off_dining_room
- ifttt:
- key: dI7S7UpfkV-aUP2OTc0Y4f
- media_player:
- platform: emby
- host: 192.168.0.192:8096
- api_key: "emby_api_key"
- mqtt:
- broker: 192.168.0.106
- port: 1883
- username: James
- password: Xnormal23
- light:
- - platform: mqtt_json
- name: "Porch"
- state_topic: "bruh/porch"
- command_topic: "bruh/porch/set"
- effect: true
- effect_list:
- - bpm
- - candy cane
- - confetti
- - cyclon rainbow
- - dots
- - fire
- - glitter
- - juggle
- - lightning
- - noise
- - police all
- - police one
- - rainbow
- - rainbow with glitter
- - ripple
- - sinelon
- - solid
- - twinkle
- brightness: true
- flash: true
- rgb: true
- optimistic: false
- qos: 0
- input_number:
- porch_animation_speed:
- name: Porch Animation Speed
- initial: 150
- min: 1
- max: 150
- step: 10
- dining_room_delay:
- name: led wall Light Delay
- initial: 1
- min: 0
- max: 20
- step: 0.5
- automation:
- - alias: "Porch Animation Speed"
- initial_state: True
- hide_entity: False
- trigger:
- - platform: state
- entity_id: input_number.porch_animation_speed
- action:
- - service: mqtt.publish
- data_template:
- topic: "bruh/porch/set"
- payload: '{"transition":{{ trigger.to_state.state | int }}}'
- switch:
- platform: mqtt
- name: "Outlet"
- command_topic: "cmnd/Outlet/power"
- state_topic: "stat/Outlet/POWER"
- qos: 1
- payload_on: "ON"
- payload_off: "OFF"
- retain: true
- panel_iframe:
- configurator:
- title: Configurator
- icon: mdi:wrench
- url: http://192.168.0.106:3218
- # Enables configuration UI
- config:
- http:
- # Secrets are defined in the file secrets.yaml
- #api_password: Xnormal23 !secret http_password
- # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
- # Checks for available updates
- # Note: This component will send some information about your system to
- # the developers to assist with development of Home Assistant.
- # For more information, please see:
- # https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
- updater:
- # Optional, allows Home Assistant developers to focus on popular components.
- # include_used_components: true
- # Discover some devices automatically
- discovery:
- # Allows you to issue voice commands from the frontend in enabled browsers
- conversation:
- # Enables support for tracking state changes over time
- history:
- # Tracked history is kept for 10 days
- recorder:
- purge_keep_days: 10
- # View all events in a logbook
- logbook:
- # Enables a map showing the location of tracked devices
- map:
- # Track the sun
- sun:
- # Weather prediction
- sensor:
- - platform: yr
- - platform: mqtt
- state_topic: "bruh/sensornode1"
- name: "SN1 Humidity"
- unit_of_measurement: "%"
- value_template: '{{ value_json.humidity | round(1) }}'
- - platform: mqtt
- state_topic: "bruh/sensornode1"
- name: "SN1 LDR"
- unit_of_measurement: "LUX"
- value_template: '{{ value_json.ldr }}'
- - platform: mqtt
- state_topic: "bruh/sensornode1"
- name: "SN1 PIR"
- value_template: '{{ value_json.motion }}'
- - platform: mqtt
- state_topic: "bruh/sensornode2"
- name: "SN1 Temperature"
- unit_of_measurement: "°F"
- value_template: '{{ value_json.temperature | round(1) }}'
- - platform: yr
- - platform: mqtt
- state_topic: "bruh/sensornode2"
- name: "SN2 Humidity"
- unit_of_measurement: "%"
- value_template: '{{ value_json.humidity | round(1) }}'
- - platform: mqtt
- state_topic: "bruh/sensornode2"
- name: "SN2 LDR"
- ##This sensor is not calibrated to actual LUX. Rather, this a map of the input voltage ranging from 0 - 1023.
- unit_of_measurement: "LUX"
- value_template: '{{ value_json.ldr }}'
- - platform: mqtt
- state_topic: "bruh/sensornode2"
- name: "SN2 PIR"
- value_template: '{{ value_json.motion }}'
- - platform: mqtt
- state_topic: "bruh/sensornode2"
- name: "SN2 Temperature"
- unit_of_measurement: "°F"
- value_template: '{{ value_json.temperature | round(1) }}'
- # Text to speech
- tts:
- - platform: google
- # Cloud
- cloud:
- group:
- Motion Light:
- name: Motion Setting
- entities:
- - script.timed_lamp_dining_room
- - script.timer_off_dining_room
- - input_number.dining_room_delay
- - automation.led_motion_light
- - automation.led_motion_light_off
- light_node_1_card:
- name: Led Light
- entities:
- - light.porch
- - automation.porch_animation_speed
- - input_number.porch_animation_speed
- sensor_node_1_card:
- name: Sensor Node 1
- entities:
- - sensor.sn1_temperature
- - sensor.sn1_humidity
- - sensor.sn1_ldr
- - sensor.sn1_pir
- - light.sn1_led
- sensor_node_2_card:
- name: Sensor Node 2
- entities:
- - sensor.sn2_temperature
- - sensor.sn2_humidity
- - sensor.sn2_ldr
- - sensor.sn2_pir
- - light.sn2_led
- script: !include scripts.yaml
- customize:
- cover.garage:
- device_class: garage
- friendly_name: Garage 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement