move to packages

This commit is contained in:
David Hába 2025-11-03 12:47:07 +01:00
parent 16beddf9ae
commit 36286dd42f
9 changed files with 67 additions and 135 deletions

View File

@ -16,26 +16,19 @@ google_assistant:
report_state: true report_state: true
homeassistant: homeassistant:
customize: !include customize.yaml
customize_domain: !include customize_domain.yaml
customize_glob: !include customize_glob.yaml
packages: !include_dir_named packages packages: !include_dir_named packages
group: !include groups.yaml
automation: !include automations.yaml automation: !include automations.yaml
script: !include scripts.yaml #template: !include template.yaml
scene: !include scenes.yaml
template: !include template.yaml
sensor: !include sensors.yaml sensor: !include sensors.yaml
input_select: !include input_select.yaml
# input_boolean: !include GreeClimateComponent-input_boolean.yaml
# climate: !include GreeClimateComponent-climate.yaml # climate: !include GreeClimateComponent-climate.yaml
# var: !include var.yaml # var: !include var.yaml
http: http:
use_x_forwarded_for: true use_x_forwarded_for: true
trusted_proxies: trusted_proxies:
- 192.168.88.110 - 192.168.88.102 # LXC
- 192.168.88.110 # Docker
logger: logger:
default: info default: info
@ -54,7 +47,7 @@ history:
influxdb: influxdb:
api_version: 2 api_version: 2
ssl: false ssl: false
host: 192.168.88.102 host: 192.168.88.112
port: 8086 port: 8086
token: !secret influxdb_token token: !secret influxdb_token
organization: habad organization: habad

View File

View File

@ -1,9 +0,0 @@
# Klimatizace
climate:
# hvac_modes: auto, cool, dry, fan_only, heat, off
hvac_modes:
- heat
- cool
- dry
- fan_only
- "off"

View File

View File

View File

@ -1,10 +0,0 @@
air_conditioner:
name: Klimatizace
options:
- livingroom
- bathroom
- bedroom
- childrensroom
- guestroom
initial: livingroom
icon: mdi:air-conditioner

View File

View File

View File

@ -1,107 +1,65 @@
- sensor: # - sensor:
# # Shelly3EM # # Klimatizace - aktuální teplota
# - unique_id: shelly3em_energy_total # - unique_id: ac_livingroom_current_temperature
# name: "Shelly3EM Energy Total" # name: "AC Livingroom Current temperature"
# icon: mdi:lightning-bolt # unit_of_measurement: "°C"
# availability: >- # icon: mdi:thermometer
# {{ states('sensor.shelly3em_phase_a_energy') not in ['0', 'unknown', 'unavailable', 'none'] and
# states('sensor.shelly3em_phase_b_energy') not in ['0', 'unknown', 'unavailable', 'none'] and
# states('sensor.shelly3em_phase_c_energy') not in ['0', 'unknown', 'unavailable', 'none'] }}
# state: >-
# {{ (states('sensor.shelly3em_phase_a_energy')|float(1) +
# states('sensor.shelly3em_phase_b_energy')|float(1) +
# states('sensor.shelly3em_phase_c_energy')|float(1)) | round(2) }}
# unit_of_measurement: kWh
# device_class: energy
# state_class: total_increasing
# - unique_id: shelly3em_power_total
# name: "Shelly3EM Power Total"
# icon: mdi:flash
# state: >-
# {{ (states('sensor.shelly3em_phase_a_power')|float(1) +
# states('sensor.shelly3em_phase_b_power')|float(1) +
# states('sensor.shelly3em_phase_c_power')|float(1)) | round(2) }}
# unit_of_measurement: W
# device_class: power
# state_class: measurement
# Klimatizace - aktuální teplota
- unique_id: ac_livingroom_current_temperature
name: "AC Livingroom Current temperature"
unit_of_measurement: "°C"
icon: mdi:thermometer
state: >
{{ state_attr('climate.ac_livingroom', 'current_temperature') }}
- unique_id: ac_bathroom_current_temperature
name: "AC Bathroom Current temperature"
unit_of_measurement: "°C"
icon: mdi:thermometer
state: >
{{ state_attr('climate.ac_bathroom', 'current_temperature') }}
- unique_id: ac_bedroom_current_temperature
name: "AC Bedroom Current temperature"
unit_of_measurement: "°C"
icon: mdi:thermometer
state: >
{{ state_attr('climate.ac_bedroom', 'current_temperature') }}
- unique_id: ac_childrensroom_current_temperature
name: "AC Childrensroom Current temperature"
unit_of_measurement: "°C"
icon: mdi:thermometer
state: >
{{ state_attr('climate.ac_childrensroom', 'current_temperature') }}
- unique_id: ac_guestroom_current_temperature
name: "AC Guestroom Current temperature"
unit_of_measurement: "°C"
icon: mdi:thermometer
state: >
{{ state_attr('climate.ac_guestroom', 'current_temperature') }}
# Korekce teploty: Teplota, kterou měří jednotka - skutečná v místnosti
- unique_id: livingroom_temperature_correction
name: "Livingroom Temperateure Correction"
unit_of_measurement: "°C"
icon: mdi:thermometer-check
state: >
{{ (states('sensor.ac_livingroom_current_temperature')|float - states('sensor.livingroom_thermometer_hygrometer_temperature')|float) | round(0) }}
- unique_id: bathroom_temperature_correction
name: "Bathroom Temperateure Correction"
unit_of_measurement: "°C"
icon: mdi:thermometer-check
state: >
{{ (states('sensor.ac_bathroom_current_temperature')|float - states('sensor.bathroom_thermometer_hygrometer_temperature')|float) | round(0) }}
- unique_id: bedroom_temperature_correction
name: "Bedroom Temperateure Correction"
unit_of_measurement: "°C"
icon: mdi:thermometer-check
state: >
{{ (states('sensor.ac_bedroom_current_temperature')|float - states('sensor.bedroom_thermometer_hygrometer_temperature')|float) | round(0) }}
- unique_id: childrensroom_temperature_correction
name: "Childrensroom Temperateure Correction"
unit_of_measurement: "°C"
icon: mdi:thermometer-check
state: >
{{ (states('sensor.ac_childrensroom_current_temperature')|float - states('sensor.childrensroom_thermometer_hygrometer_temperature')|float) | round(0) }}
- unique_id: guestroom_temperature_correction
name: "Guestroom Temperateure Correction"
unit_of_measurement: "°C"
icon: mdi:thermometer-check
state: >
{{ (states('sensor.ac_guestroom_current_temperature')|float - states('sensor.guestroom_thermometer_hygrometer_temperature')|float) | round(0) }}
# # Aktuální nákupní cena elektřiny - VT/NT
# - name: "Electricity Buy Price"
# unique_id: electricity_buy_price
# unit_of_measurement: "CZK/kWh"
# state_class: measurement
# icon: mdi:cash-minus
# state: > # state: >
# {% set price_vt = 3.37067 %} # {{ state_attr('climate.ac_livingroom', 'current_temperature') }}
# {% set price_nt = 2.85523 %} # - unique_id: ac_bathroom_current_temperature
# {% set vat = 21 %} # name: "AC Bathroom Current temperature"
# unit_of_measurement: "°C"
# icon: mdi:thermometer
# state: >
# {{ state_attr('climate.ac_bathroom', 'current_temperature') }}
# - unique_id: ac_bedroom_current_temperature
# name: "AC Bedroom Current temperature"
# unit_of_measurement: "°C"
# icon: mdi:thermometer
# state: >
# {{ state_attr('climate.ac_bedroom', 'current_temperature') }}
# - unique_id: ac_childrensroom_current_temperature
# name: "AC Childrensroom Current temperature"
# unit_of_measurement: "°C"
# icon: mdi:thermometer
# state: >
# {{ state_attr('climate.ac_childrensroom', 'current_temperature') }}
# - unique_id: ac_guestroom_current_temperature
# name: "AC Guestroom Current temperature"
# unit_of_measurement: "°C"
# icon: mdi:thermometer
# state: >
# {{ state_attr('climate.ac_guestroom', 'current_temperature') }}
# # Korekce teploty: Teplota, kterou měří jednotka - skutečná v místnosti
# - unique_id: livingroom_temperature_correction
# name: "Livingroom Temperateure Correction"
# unit_of_measurement: "°C"
# icon: mdi:thermometer-check
# state: >
# {{ (states('sensor.ac_livingroom_current_temperature')|float - states('sensor.livingroom_thermometer_hygrometer_temperature')|float) | round(0) }}
# - unique_id: bathroom_temperature_correction
# name: "Bathroom Temperateure Correction"
# unit_of_measurement: "°C"
# icon: mdi:thermometer-check
# state: >
# {{ (states('sensor.ac_bathroom_current_temperature')|float - states('sensor.bathroom_thermometer_hygrometer_temperature')|float) | round(0) }}
# - unique_id: bedroom_temperature_correction
# name: "Bedroom Temperateure Correction"
# unit_of_measurement: "°C"
# icon: mdi:thermometer-check
# state: >
# {{ (states('sensor.ac_bedroom_current_temperature')|float - states('sensor.bedroom_thermometer_hygrometer_temperature')|float) | round(0) }}
# - unique_id: childrensroom_temperature_correction
# name: "Childrensroom Temperateure Correction"
# unit_of_measurement: "°C"
# icon: mdi:thermometer-check
# state: >
# {{ (states('sensor.ac_childrensroom_current_temperature')|float - states('sensor.childrensroom_thermometer_hygrometer_temperature')|float) | round(0) }}
# - unique_id: guestroom_temperature_correction
# name: "Guestroom Temperateure Correction"
# unit_of_measurement: "°C"
# icon: mdi:thermometer-check
# state: >
# {{ (states('sensor.ac_guestroom_current_temperature')|float - states('sensor.guestroom_thermometer_hygrometer_temperature')|float) | round(0) }}
# {% if is_state("binary_sensor.electricity_hdo_nt", "on") %}
# {{ (price_nt|float * (1 + vat / 100)) | round(2) }} {# Nízký tarif #}
# {% else %}
# {{ (price_vt|float * (1 + vat / 100)) | round(2) }} {# Vysoký tarif #}
# {% endif %}