diff --git a/configuration.yaml b/configuration.yaml index d5182f2..5dc467f 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -16,26 +16,19 @@ google_assistant: report_state: true homeassistant: - customize: !include customize.yaml - customize_domain: !include customize_domain.yaml - customize_glob: !include customize_glob.yaml packages: !include_dir_named packages -group: !include groups.yaml automation: !include automations.yaml -script: !include scripts.yaml -scene: !include scenes.yaml -template: !include template.yaml +#template: !include template.yaml sensor: !include sensors.yaml -input_select: !include input_select.yaml -# input_boolean: !include GreeClimateComponent-input_boolean.yaml # climate: !include GreeClimateComponent-climate.yaml # var: !include var.yaml http: use_x_forwarded_for: true trusted_proxies: - - 192.168.88.110 + - 192.168.88.102 # LXC + - 192.168.88.110 # Docker logger: default: info @@ -54,7 +47,7 @@ history: influxdb: api_version: 2 ssl: false - host: 192.168.88.102 + host: 192.168.88.112 port: 8086 token: !secret influxdb_token organization: habad diff --git a/customize.yaml b/customize.yaml deleted file mode 100644 index e69de29..0000000 diff --git a/customize_domain.yaml b/customize_domain.yaml deleted file mode 100644 index 07ffd3a..0000000 --- a/customize_domain.yaml +++ /dev/null @@ -1,9 +0,0 @@ -# Klimatizace -climate: - # hvac_modes: auto, cool, dry, fan_only, heat, off - hvac_modes: - - heat - - cool - - dry - - fan_only - - "off" diff --git a/customize_glob.yaml b/customize_glob.yaml deleted file mode 100644 index e69de29..0000000 diff --git a/groups.yaml b/groups.yaml deleted file mode 100644 index e69de29..0000000 diff --git a/input_select.yaml b/input_select.yaml deleted file mode 100644 index 6c325b2..0000000 --- a/input_select.yaml +++ /dev/null @@ -1,10 +0,0 @@ -air_conditioner: - name: Klimatizace - options: - - livingroom - - bathroom - - bedroom - - childrensroom - - guestroom - initial: livingroom - icon: mdi:air-conditioner diff --git a/scenes.yaml b/scenes.yaml deleted file mode 100644 index e69de29..0000000 diff --git a/scripts.yaml b/scripts.yaml deleted file mode 100644 index e69de29..0000000 diff --git a/template.yaml b/template.yaml index 9c7e84d..4260b6f 100644 --- a/template.yaml +++ b/template.yaml @@ -1,107 +1,65 @@ -- sensor: - # # Shelly3EM - # - unique_id: shelly3em_energy_total - # name: "Shelly3EM Energy Total" - # icon: mdi:lightning-bolt - # availability: >- - # {{ 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 +# - sensor: +# # 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') }} - # 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) }} - # 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: > - # {% set price_vt = 3.37067 %} - # {% set price_nt = 2.85523 %} - # {% set vat = 21 %} - - # {% 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 %}