Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################
- configuration.yaml
- ################################
- homeassistant:
- # Name of the location where Home Assistant is running
- name: Home
- # Location required to calculate the time the sun rises and sets
- latitude: -xxxxxxxxxx
- longitude: xxxxxxxxxx
- # Impacts weather/sunrise data (altitude above sea level in meters)
- elevation: 26
- # metric for Metric, imperial for Imperial
- unit_system: metric
- # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
- time_zone: Australia/Melbourne
- customize:
- # Only the 'entity_id' is required. All other options are optional.
- light.gateway_light_f0b429b3e568:
- friendly_name: Xiaomi Light
- sensor.humidity_158d0001107b4d:
- friendly_name: Humidity Lounge
- sensor.temperature_158d0001107b4d:
- friendly_name: Temperature Lounge
- zone 2:
- name: Home
- latitude: -xxxxxxxxxx
- longitude: xxxxxxxxxxx
- radius: 100
- icon: mdi:home
- zone 3:
- name: Work
- latitude: -xxxxxxxxxxx
- longitude: xxxxxxxxxx
- radius: 100
- icon: mdi:work
- # Show links to resources in log and frontend
- #introduction:
- # Enables the frontend
- frontend:
- http:
- # Uncomment this to add a password (recommended!)
- api_password: test
- # Uncomment this if you are using SSL or running in Docker etc
- # base_url: example.duckdns.org:8123
- # Checks for available updates
- updater:
- # 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:
- # View all events in a logbook
- logbook:
- # Track the sun
- sun:
- # Weather Prediction
- #sensor:
- # platform: yr
- # Text to speech
- #tts:
- # platform: google
- media_player:
- platform: kodi
- host: 192.168.1.50
- sensor:
- - platform: bom
- station: IDV60901.95936
- name: Melbourne
- monitored_conditions:
- - air_temp
- mqtt:
- broker: m21.cloudmqtt.com
- port: xxxxxxxx
- username: ha
- password: xxxxxxxx
- device_tracker:
- - platform: owntracks
- xiaomi:
- gateways:
- - sid:
- key: xxxxxxxxxxxxx
- scene:
- - name: Bedroom_normal
- entities:
- light.bedroom:
- state: on
- transition: 2
- brightness: 150
- xy_color: [ 0.4448, 0.4066 ]
- - name: Bedroom_work
- entities:
- light.bedroom:
- state: on
- transition: 2
- brightness: 75
- xy_color: [ 0.5926, 0.3814 ]
- automation:
- alias: Turn on bedroom light for work
- trigger:
- platform: time
- hours: 22
- minutes: 35
- seconds: 0
- action:
- service: homeassistant.turn_on
- entity_id: script.timed_lamp
- script: !include scripts.yaml
- group: !include groups.yaml
- ################################################################################
- #Groups
- ###############################################################################
- default_view:
- view: yes
- entities:
- - device_tracker.adam_adam
- - device_tracker.silvia_silvia
- - sun.sun
- LivingRoom:
- name: Living Room
- view: yes
- entities:
- - light.gateway_light_f0b429b3e568
- - light.tv_light
- - sensor.humidity_158d0001107b4d
- - sensor.temperature_158d0001107b4d
- - media_player._samsung_ua32j5500
- - media_player.kodi
- BedRoom:
- name: Bedroom
- view: yes
- entities:
- - light.bedroom
- YolandaRoom:
- name: Yolandas Room
- view: yes
- entities:
- - light.yolandas
- Automations:
- name: Automations
- view: yes
- entities:
- - group.all_automations
- ##################################################################################
- #scripts
- ##################################################################################
- scripts.yaml
- timed_lamp:
- alias: "Turn on lamp and set timer"
- sequence:
- # Cancel ev. old timers
- - service: script.turn_off
- data:
- entity_id: script.timer_off
- - service: light.turn_on
- data:
- entity_id: light.bedroom
- # Set new timer
- - service: script.turn_on
- data:
- entity_id: script.timer_off
- timer_off:
- alias: "Turn off lamp after 10 minutes"
- sequence:
- - delay:
- minutes: 10
- - service: light.turn_off
- data:
- entity_id: light.bedroom
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement