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: 49.0342
- longitude: 8.716
- # Impacts weather/sunrise data (altitude above sea level in meters)
- elevation: 0
- # 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: Europe/Berlin
- # Customization file
- customize: !include customize.yaml
- http:
- # Secrets are defined in the file secrets.yaml
- # api_password: !secret http_password
- # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
- # base_url: example.duckdns.org:8123
- #ssl_certificate: /usr/share/hassio/homeassistant/ssl/certificate.pem
- #ssl_key: /usr/share/hassio/homeassistant/ssl/privkey.pem
- recorder:
- purge_keep_days: 5
- db_url: mysql://hass:hass@192.168.1.80/hass?charset=utf8
- # Enables the frontend
- frontend:
- panel_iframe:
- configurator:
- title: Configurator
- icon: mdi:wrench
- url: http://192.168.1.210:3218
- homepanel:
- title: Home-Panel
- icon: mdi:mdi:home-account
- url: http://192.168.1.210:8234
- pihole:
- title: Pi-hole
- icon: mdi:block-helper
- url: http://192.168.1.210:4865
- logviewer:
- title: Log Viewer
- icon: mdi:view-headline
- url: http://192.168.1.210:4277/
- config:
- # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
- # http:
- # base_url: example.duckdns.org:8123
- cloud:
- alexa:
- filter:
- include_entities:
- - light.kuchnia_swiatlo
- include_domains:
- - switch
- entity_config:
- light.kuchnia_swiatlo:
- name: Licht
- description: The light in the kitchen
- switch.stairs:
- display_categories: LIGHT
- # mqtt:
- # broker: 192.168.1.90
- # port: 1883
- # discovery: true
- # discovery_prefix: /
- # client_id: HASS
- # birth_message:
- # topic: 'hass/status'
- # payload: 'online'
- # will_message:
- # topic: 'hass/status'
- # payload: 'offline'
- rflink:
- port: /dev/ttyACM1
- logger:
- default: info
- logs:
- sensor.qnap: debug
- homeassistant.components.sensor.qnap: debug
- mqtt: debug
- homeassistant.components.mqtt: debug
- rflink: debug
- homeassistant.components.rflink: debug
- # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
- # http:
- # base_url: example.duckdns.org:8123
- # 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:
- include:
- domains:
- - sensor
- - switch
- exclude:
- entities:
- - sensor.systemmonitor
- - sensor.qnap
- # View all events in a logbook
- logbook:
- # Enables a map showing the location of tracked devices
- map:
- # Track the sun
- sun:
- # Allow diagnosing system problems
- system_health:
- # Sensors
- sensor:
- - platform: systemmonitor
- resources:
- - type: disk_use_percent
- arg: /home
- - type: memory_free
- - type: memory_use
- - type: processor_use
- - type: last_boot
- - platform: qnap
- host: 192.168.1.100
- port: 8181
- username: hass
- password: hasshass
- monitored_conditions:
- - status
- - cpu_usage
- - memory_percent_used
- - network_tx
- - volume_percentage_used
- # Weather prediction
- #Czujniki temperatury
- #Dwór
- - platform: rflink
- automatic_add: true
- - platform: mqtt
- state_topic: "/akwarium/tempwody/Temperature"
- name: "Temperatura wody"
- unit_of_measurement: "°C"
- device_class: "temperature"
- # - platform: mqtt
- # state_topic: "/akwarium/sypialniaakwa/Temperature"
- # name: "Temperatura obok akwa"
- # unit_of_measurement: "°C"
- # device_class: "temperature"
- # - platform: mqtt
- # state_topic: "/akwarium/sypialniaakwa/Pressure"
- # name: "Ciśń. obok akwa"
- # unit_of_measurement: "hPa"
- # device_class: "pressure"
- - platform: "mqtt"
- name: Drzwi
- state_topic: "/zigbee/DrzwiWejsciowe"
- availability_topic: "/zigbee/bridge/state"
- value_template: "{{ value_json.contact }}"
- - platform: "mqtt"
- name: Temp. Dwór
- state_topic: "/zigbee/Dwor"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "°C"
- device_class: "temperature"
- value_template: "{{ value_json.temperature }}"
- - platform: "mqtt"
- name: Router model
- state_topic: "/zigbee/Router"
- availability_topic: "/zigbee/bridge/state"
- value_template: "{{ value_json.model }}"
- - platform: "mqtt"
- name: Router SW
- state_topic: "/zigbee/Router"
- availability_topic: "/zigbee/bridge/state"
- value_template: "{{ value_json.sw_version }}"
- - platform: "mqtt"
- name: Wilg. Dwór
- state_topic: "/zigbee/Dwor"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "%"
- device_class: "humidity"
- value_template: "{{ value_json.humidity }}"
- - platform: "mqtt"
- name: Ciśń. Dwór
- state_topic: "/zigbee/Dwor"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "hPa"
- device_class: "pressure"
- value_template: "{{ value_json.pressure }}"
- - platform: "mqtt"
- name: Bat. Dwór
- state_topic: "/zigbee/Dwor"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "Bat"
- device_class: "battery"
- value_template: "{{ value_json.battery }}"
- - platform: "mqtt"
- name: Quality Dwór
- state_topic: "/zigbee/Dwor"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "dB"
- value_template: "{{ value_json.linkquality }}"
- #Kuchnia
- - platform: "mqtt"
- name: Temp. Kuchnia
- state_topic: "/zigbee/Kuchnia"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "°C"
- device_class: "temperature"
- value_template: "{{ value_json.temperature }}"
- - platform: "mqtt"
- name: Wilg. Kuchnia
- state_topic: "/zigbee/Kuchnia"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "%"
- device_class: "humidity"
- value_template: "{{ value_json.humidity }}"
- - platform: "mqtt"
- name: Ciśń. Kuchnia
- state_topic: "/zigbee/Kuchnia"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "hPa"
- device_class: "pressure"
- value_template: "{{ value_json.pressure }}"
- - platform: "mqtt"
- name: Bat. Kuchnia
- state_topic: "/zigbee/Kuchnia"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "Bat"
- device_class: "battery"
- value_template: "{{ value_json.battery }}"
- - platform: "mqtt"
- name: Quality Kuchnia
- state_topic: "/zigbee/Kuchnia"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "dB"
- value_template: "{{ value_json.linkquality }}"
- #Akwarium
- - platform: "mqtt"
- name: Temp. Akwarium
- state_topic: "/zigbee/Akwarium"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "°C"
- device_class: "temperature"
- value_template: "{{ value_json.temperature }}"
- - platform: "mqtt"
- name: Wilg. Akwarium
- state_topic: "/zigbee/Akwarium"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "%"
- device_class: "humidity"
- value_template: "{{ value_json.humidity }}"
- - platform: "mqtt"
- name: Ciśń. Akwarium
- state_topic: "/zigbee/Akwarium"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "hPa"
- device_class: "pressure"
- value_template: "{{ value_json.pressure }}"
- - platform: "mqtt"
- name: Bat. Akwarium
- state_topic: "/zigbee/Akwarium"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "Bat"
- device_class: "battery"
- value_template: "{{ value_json.battery }}"
- - platform: "mqtt"
- name: Quality Akwarium
- state_topic: "/zigbee/Akwarium"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "dB"
- value_template: "{{ value_json.linkquality }}"
- #Salon
- - platform: "mqtt"
- name: Temp. Salon
- state_topic: "/zigbee/Salon"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "°C"
- device_class: "temperature"
- value_template: "{{ value_json.temperature }}"
- - platform: "mqtt"
- name: Wilg. Salon
- state_topic: "/zigbee/Salon"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "%"
- device_class: "humidity"
- value_template: "{{ value_json.humidity }}"
- - platform: "mqtt"
- name: Ciśń. Salon
- state_topic: "/zigbee/Salon"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "hPa"
- device_class: "pressure"
- value_template: "{{ value_json.pressure }}"
- - platform: "mqtt"
- name: Bat. Salon
- state_topic: "/zigbee/Salon"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "Bat"
- device_class: "battery"
- value_template: "{{ value_json.battery }}"
- - platform: "mqtt"
- name: Quality Salon
- state_topic: "/zigbee/Salon"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "dB"
- value_template: "{{ value_json.linkquality }}"
- #Sypialnia
- - platform: "mqtt"
- name: Temp. Sypialnia
- state_topic: "/zigbee/Sypialnia"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "°C"
- device_class: "temperature"
- value_template: "{{ value_json.temperature }}"
- - platform: "mqtt"
- name: Wilg. Sypialnia
- state_topic: "/zigbee/Sypialnia"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "%"
- device_class: "humidity"
- value_template: "{{ value_json.humidity }}"
- - platform: "mqtt"
- name: Ciśń. Sypialnia
- state_topic: "/zigbee/Sypialnia"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "hPa"
- device_class: "pressure"
- value_template: "{{ value_json.pressure -10 }}"
- - platform: "mqtt"
- name: Bat. Sypialnia
- state_topic: "/zigbee/Sypialnia"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "Bat"
- device_class: "battery"
- value_template: "{{ value_json.battery }}"
- - platform: "mqtt"
- name: Quality Sypialnia
- state_topic: "/zigbee/Sypialnia"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "dB"
- value_template: "{{ value_json.linkquality }}"
- #Toaleta
- - platform: "mqtt"
- name: Temp. Toaleta
- state_topic: "/zigbee/Toaleta"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "°C"
- device_class: "temperature"
- value_template: "{{ value_json.temperature }}"
- - platform: "mqtt"
- name: Wilg. Toaleta
- state_topic: "/zigbee/Toaleta"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "%"
- device_class: "humidity"
- value_template: "{{ value_json.humidity }}"
- - platform: "mqtt"
- name: Bat. Toaleta
- state_topic: "/zigbee/Toaleta"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "Bat"
- device_class: "battery"
- value_template: "{{ value_json.battery }}"
- - platform: "mqtt"
- name: Quality Toaleta
- state_topic: "/zigbee/Toaleta"
- availability_topic: "/zigbee/bridge/state"
- unit_of_measurement: "dB"
- value_template: "{{ value_json.linkquality }}"
- - platform: yr
- - platform: mqtt
- name: Status bramki /zigbee
- state_topic: "/zigbee/bridge/state"
- icon: mdi:router-wireless
- # Pilot zdalnego sterowania
- - platform: "mqtt"
- name: Dimmer
- state_topic: "/zigbee/Dimmer"
- availability_topic: "/zigbee/bridge/state"
- icon: "mdi:gesture-double-tap"
- value_template: "{{ value_json.action }}"
- force_update: true
- # Pi Hole
- - platform: pi_hole
- host: 192.168.1.210:4865
- monitored_conditions:
- - ads_blocked_today
- - dns_queries_today
- - unique_clients
- light:
- - platform: "mqtt"
- name: Kuchnia światło
- state_topic: "/zigbee/KuchniaSwiatlo"
- availability_topic: "/zigbee/bridge/state"
- brightness: true
- color_temp: true
- schema: "json"
- command_topic: "/zigbee/KuchniaSwiatlo/set"
- # Text to speech
- tts:
- - platform: google
- # Group
- group:
- zigbee_group:
- view: false
- control: hidden
- name: Zigbee2mqtt
- entities:
- - input_boolean.zigbee_permit_join
- - timer.zigbee_permit_join
- - sensor.zigbee2mqtt_bridge_state
- - switch.zigbee2mqtt_main_join
- - automation.enable_zigbee_joining
- - automation.disable_zigbee_joining
- - automation.disable_zigbee_joining_by_timer
- - input_select.zigbee2mqtt_log_level
- - automation.zigbee2mqtt_log_level
- # Input select for Zigbee2mqtt debug level
- input_select:
- zigbee2mqtt_log_level:
- name: Zigbee2mqtt Log Level
- options:
- - debug
- - info
- - warn
- - error
- initial: info
- icon: mdi:format-list-bulleted
- # Input boolean for enabling/disabling joining
- input_boolean:
- zigbee_permit_join:
- name: Allow devices to join
- initial: off
- icon: mdi:cellphone-wireless
- # Timer for joining time remaining (120 sec = 2 min)
- timer:
- zigbee_permit_join:
- name: Time remaining
- duration: 240
- # Switch for enabling joining
- switch:
- - platform: mqtt
- name: "Zigbee2mqtt Main join"
- state_topic: "/zigbee/bridge/config/permit_join"
- command_topic: "/zigbee/bridge/config/permit_join"
- payload_on: "true"
- payload_off: "false"
- - platform: rflink
- automatic_add: true
- # Automations
- automation:
- - alias: Zigbee2mqtt Log Level
- initial_state: 'on'
- trigger:
- - platform: state
- entity_id: input_select.zigbee2mqtt_log_level
- to: debug
- - platform: state
- entity_id: input_select.zigbee2mqtt_log_level
- to: warn
- - platform: state
- entity_id: input_select.zigbee2mqtt_log_level
- to: error
- - platform: state
- entity_id: input_select.zigbee2mqtt_log_level
- to: info
- action:
- - service: mqtt.publish
- data:
- payload_template: '{{ states(''input_select.zigbee2mqtt_log_level'') }}'
- topic: /zigbee/bridge/config/log_level
- - id: enable_zigbee_join
- alias: Enable Zigbee joining
- hide_entity: true
- trigger:
- platform: state
- entity_id: input_boolean.zigbee_permit_join
- to: 'on'
- action:
- - service: mqtt.publish
- data:
- topic: /zigbee/bridge/config/permit_join
- payload: 'true'
- - service: timer.start
- data:
- entity_id: timer.zigbee_permit_join
- - id: disable_zigbee_join
- alias: Disable Zigbee joining
- hide_entity: true
- trigger:
- - entity_id: input_boolean.zigbee_permit_join
- platform: state
- to: 'off'
- action:
- - data:
- payload: 'false'
- topic: /zigbee/bridge/config/permit_join
- service: mqtt.publish
- - data:
- entity_id: timer.zigbee_permit_join
- service: timer.cancel
- - id: disable_zigbee_join_timer
- alias: Disable Zigbee joining by timer
- hide_entity: true
- trigger:
- - platform: event
- event_type: timer.finished
- event_data:
- entity_id: timer.zigbee_permit_join
- action:
- - service: mqtt.publish
- data:
- topic: /zigbee/bridge/config/permit_join
- payload: 'false'
- - service: input_boolean.turn_off
- data:
- entity_id: input_boolean.zigbee_permit_join
- # Text to speech
- #tts:
- # - platform: google
- #group: !include groups.yaml
- #automation: !include automations.yaml
- script: !include scripts.yaml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement