Files
home-assistant/configuration.yaml

90 lines
2.7 KiB
YAML

# Loads default set of integrations. Do not remove.
default_config:
# packages directory
homeassistant:
packages: !include_dir_named packages
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
# Inclusions
automation: !include automations.yaml
script: !include scripts.yaml
sensor: !include sensors.yaml
scene: !include scenes.yaml
switch: !include switches.yaml
light: !include lights.yaml
climate: !include climates.yaml
binary_sensor: !include binary_sensors.yaml
# DO NOT remove - Sets MariaDB as database
recorder:
db_url: !secret mariadb_url
# log INFO level messages
logger:
default: info
# influxdb: !include influxdb_feed.yaml
# Zigbee Network Map not Working
# mqtt:
# sensor:
# - name: Zigbee2mqtt Networkmap
# # if you change base_topic of Zigbee2mqtt, change state_topic accordingly
# state_topic: zigbee2mqtt/bridge/response/networkmap
# value_template: >-
# {{ now().strftime('%Y-%m-%d %H:%M:%S') }}
# # again, if you change base_topic of Zigbee2mqtt, change json_attributes_topic accordingly
# json_attributes_topic: zigbee2mqtt/bridge/response/networkmap
# json_attributes_template: "{{ value_json.data.value | tojson }}"
mqtt:
- sensor:
- name: HP_power
unit_of_measurement: "W"
unique_id: mon_hp_pw
state_topic: monitoring/et/values
value_template: >-
{{ value.split(',')[1] | int }}
- name: HP_max_power
unit_of_measurement: "W"
unique_id: mon_hp_max_pw
state_topic: monitoring/et/values
value_template: >-
{{ value.split(',')[0] | int }}
- name: ACS_temp
unit_of_measurement: "'C"
unique_id: mon_acs_temp
state_topic: monitoring/et/values
value_template: >-
{{ (value.split(',')[3] | int) / 10 }}
- name: Heating_temp
unit_of_measurement: "'C"
unique_id: mon_heating_temp
state_topic: monitoring/et/values
value_template: >-
{{ (value.split(',')[8] | int) / 10 }}
- name: Solar_temp
unit_of_measurement: "'C"
unique_id: mon_solar_temp
state_topic: monitoring/et/values
value_template: >-
{{ (value.split(',')[7] | int) / 10 }}
# add additional cards
lovelace:
mode: yaml
resources:
- url: /local/community/zigbee2mqtt-networkmap/zigbee2mqtt-networkmap.js
type: module
- url: /local/community/lovelace-mushroom/mushroom.js
type: module
- url: /local/community/lovelace-mushroom-better-sliders/mushroom.js
type: module
- url: /local/community/lovelace-template-entity-row/template-entity-rows.js
type: module
- url: /local/community/power-distribution-card/power-distribution-card.js
type: module