Package - Vypocet spotreby elektricke podlahove topeni

config.yaml
Odpovědět
karnas99
Začínající autor
Začínající autor
Příspěvky: 33
Registrován: 03. listopad 2022, 07:44

Package - Vypocet spotreby elektricke podlahove topeni

Příspěvek od karnas99 »

Jeste trochu bojuju s rozdelenim configu do vice souboru.

config.yaml

Kód: Vybrat vše

sensor: !include_dir_merge_list sensors/   
v adresari sensors mam therm_stats.yaml

Kód: Vybrat vše

sensor:
  - platform: history_stats
    name: "bbathroom time"
    entity_id: sensor.hvac_activity_bbathroom
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}" 
    
  - platform: history_stats
    name: "Livingroom time"
    entity_id: sensor.hvac_activity_livingroom
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}"    
    
  - platform: history_stats
    name: "Adams room time"
    entity_id: sensor.hvac_activity_adams
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}"  
    
  - platform: history_stats
    name: "bedroom time"
    entity_id: sensor.hvac_activity_bedroom
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}" 
    
  - platform: history_stats
    name: "cloakroom time"
    entity_id: sensor.hvac_activity_cloakroom
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}" 
    
  - platform: history_stats
    name: "entrance hall time"
    entity_id: sensor.hvac_activity_entrance_hall
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}" 
    
  - platform: history_stats
    name: "hall time"
    entity_id: sensor.hvac_activity_hall
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}" 
    
  - platform: history_stats
    name: "office time"
    entity_id: sensor.hvac_activity_office
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}"
    
  - platform: history_stats
    name: "sbathroom time"
    entity_id: sensor.hvac_activity_sbathroom
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}"
    
  - platform: history_stats
    name: "troom time"
    entity_id: sensor.hvac_activity_troom
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}"
    
  - platform: history_stats
    name: "toilet time"
    entity_id: sensor.hvac_activity_toilet
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}"
	
	
template:
  - sensor:
    - name: "Bbathroom consumption"
      unique_id: bbathroom_consumption_heating
      state: "{{ ((states('sensor.bbathroom_time') | float * 0.75) | round(2) )}}"
      availability: "{{ states('sensor.bbathroom_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing
      
  - sensor:
    - name: "Livingroom consumption"
      unique_id: livingroom_consumption_heating
      state: "{{ ((states('sensor.livingroom_time') | float * 4) | round(2) )}}"
      availability: "{{ states('sensor.livingroom_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing 
      
  - sensor:
    - name: "Adams room consumption"
      unique_id: adamsroom_consumption_heating
      state: "{{ ((states('sensor.adams_room_time') | float * 0.95) | round(2) )}}"
      availability: "{{ states('sensor.adams_room_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing   
      
  - sensor:
    - name: "Bedroom consumption"
      unique_id: bedroom_consumption_heating
      state: "{{ ((states('sensor.bedroom_time') | float * 0.95) | round(2) )}}"
      availability: "{{ states('sensor.bedroom_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing      
      
  - sensor:
    - name: "Cloakroom consumption"
      unique_id: cloakroom_consumption_heating
      state: "{{ ((states('sensor.cloakroom_time') | float * 0.25) | round(2) )}}"
      availability: "{{ states('sensor.cloakroom_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing     
      
  - sensor:
    - name: "Entrance hall consumption"
      unique_id: entrance_hall_consumption_heating
      state: "{{ ((states('sensor.entrance_hall_time') | float * 0.6) | round(2) )}}"
      availability: "{{ states('sensor.entrance_hall_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing
      
  - sensor:
    - name: "Hall consumption"
      unique_id: hall_consumption_heating
      state: "{{ ((states('sensor.hall_time') | float * 0.12) | round(2) )}}"
      availability: "{{ states('sensor.hall_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing
      
  - sensor:
    - name: "Office consumption"
      unique_id: office_consumption_heating
      state: "{{ ((states('sensor.office_time') | float * 0.95) | round(2) )}}"
      availability: "{{ states('sensor.office_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing
      
  - sensor:
    - name: "Sbathroom consumption"
      unique_id: sbathroom_consumption_heating
      state: "{{ ((states('sensor.sbathroom_time') | float * 0.4) | round(2) )}}"
      availability: "{{ states('sensor.sbathroom_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing
      
  - sensor:
    - name: "Troom consumption"
      unique_id: troom_consumption_heating
      state: "{{ ((states('sensor.troom_time') | float * 0.4) | round(2) )}}"
      availability: "{{ states('sensor.troom_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing
      
  - sensor:
    - name: "Toilet consumption"
      unique_id: toilet_consumption_heating
      state: "{{ ((states('sensor.toilet_time') | float * 0.2) | round(2) )}}"
      availability: "{{ states('sensor.toilet_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing
      
  - sensor:
    - name: "Heating total kWh"
      unique_id: total_consumption_heating
      state: >
        {{ (states('sensor.bbathroom_consumption') | float(0) +
            states('sensor.livingroom_consumption') | float(0) +
            states('sensor.bedroom_consumption') | float(0) +
            states('sensor.cloakroom_consumption') | float(0) +
            states('sensor.entrance_hall_consumption') | float(0) +
            states('sensor.office_consumption') | float(0) +
            states('sensor.hall_consumption') | float(0) +
            states('sensor.troom_consumption') | float(0) +
            states('sensor.sbathroom_consumption') | float(0) +
            states('sensor.toilet_consumption') | float(0) +
            states('sensor.adams_room_consumption') | float(0))
            | round(2) }}
      availability: >
        {{ states('sensor.bbathroom_consumption') | is_number and
           states('sensor.livingroom_consumption') | is_number and
           states('sensor.bedroom_consumption') | is_number and
           states('sensor.cloakroom_consumption') | is_number and
           states('sensor.entrance_hall_consumption') | is_number and
           states('sensor.office_consumption') | is_number and
           states('sensor.hall_consumption') | is_number and
           states('sensor.troom_consumption') | is_number and
           states('sensor.sbathroom_consumption') | is_number and
           states('sensor.toilet_consumption') | is_number and
           states('sensor.adams_room_consumption') | is_number }}
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing	
 
      
  - sensor:
    - name: "HVAC Activity bbathroom"
      state: "{{ state_attr('climate.big_bathroom_thermostat', 'hvac_action') }}"
   
    - name: "HVAC Activity livingroom"
      state: "{{ state_attr('climate.livingroom_thermostat', 'hvac_action') }}"
      
    - name: "HVAC Activity adams"
      state: "{{ state_attr('climate.adams_s_room_thermostat', 'hvac_action') }}"
      
    - name: "HVAC Activity bedroom"
      state: "{{ state_attr('climate.bedroom_thermostat', 'hvac_action') }}"
      
    - name: "HVAC Activity cloakroom"
      state: "{{ state_attr('climate.cloak_room_thermostat', 'hvac_action') }}"
      
    - name: "HVAC Activity entrance hall"
      state: "{{ state_attr('climate.entrance_hall_thermostat', 'hvac_action') }}"
      
    - name: "HVAC Activity hall"
      state: "{{ state_attr('climate.hall_thermostat', 'hvac_action') }}"
      
    - name: "HVAC Activity office"
      state: "{{ state_attr('climate.office_thermostat', 'hvac_action') }}"
      
    - name: "HVAC Activity sbathroom"
      state: "{{ state_attr('climate.small_bathroom_thermostat', 'hvac_action') }}"
      
    - name: "HVAC Activity troom"
      state: "{{ state_attr('climate.hysen_hy08we_2_thermostat', 'hvac_action') }}"
      
    - name: "HVAC Activity toilet"
      state: "{{ state_attr('climate.toilet_thermostat', 'hvac_action') }}"
pak je problem se senzorama pod template, je treba to jeste nejak prepsat?
Přílohy
Capture.JPG

Uživatelský avatar
Lion®
Administrátor fóra
Administrátor fóra
Příspěvky: 1604
Registrován: 28. září 2020, 14:07
Bydliště: podkrkonoší
Dal poděkování: 144 poděkování
Dostal poděkování: 193 poděkování
Kontaktovat uživatele:

Re: Package - Vypocet spotreby elektricke podlahove topeni

Příspěvek od Lion® »

Když máš v configu

Kód: Vybrat vše

sensor: !include_dir_merge_list sensors
nemůžeš mít v souboru therm_stats.yaml
sensor a template najednou.

Když to v configu nahradíš

Kód: Vybrat vše

homeassistant:
  packages: !include_dir_merge_named packages/
a složku sensors přejmenuješ na packages
mělo by to fungovat.

Nebo musíš soubor therm_stats.yaml rozdělit do dvou souborů. Jeden s
sensor:
a druhý s
template:
nejlépe pak řádek s sensor: a template: zakomentovat # nebo odstranit.
a v configu přidat:

Kód: Vybrat vše

template: !include nazev_souboru_s_template_senzory.yaml

Kód: Vybrat vše

sensor: !include nazev_souboru_s_senzory.yaml
https://www.home-assistant.io/docs/conf ... iguration/
https://www.home-assistant.io/docs/conf ... /packages/
________________
🍻 Přispěj a získej přístup do obsahu fóra pro dárce. :thx:
Oficiální sada s Raspberry Pi 4B/4GB, černá +Argon NEO Raspberry Pi 4 Case
Patriot Burst 2.5" SATA SSD 120GB + AXAGON EE25-XA6 ALINE box

Galerie realizací

karnas99
Začínající autor
Začínající autor
Příspěvky: 33
Registrován: 03. listopad 2022, 07:44

Re: Package - Vypocet spotreby elektricke podlahove topeni

Příspěvek od karnas99 »

Varianta s packages se mi stale nedari

Kód: Vybrat vše

# Loads default set of integrations. Do not remove.
default_config:

# Text to speech
tts:
  - platform: google_translate

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

# HACS debugging
logger:
  default: info
  logs:
    custom_components.hacs: debug
    aiogithubapi: debug

# Influx DB
influxdb:
  host: a0d7b954-influxdb
  database: homeassistant
  username: homeassistant
  password: 
  include:
    entities:
      - climate.livingroom_thermostat
      - climate.big_bathroom_thermostat
      - sensor.big_bathroom_consumption_daily
      - sensor.big_bathroom_heating_consumption
      - sensor.shellyplug_s_f14c17_energy
      - sensor.shellyplug_s_f14c17_power
      
      - sensor.heating_total_daily
      - sensor.heating_total_monthly

homeassistant:
  packages: !include_dir_merge_named packages/
hazi to chybu: The system cannot restart because the configuration is not valid: expected a dictionary for dictionary value @ data['packages']['sensor']

Kód: Vybrat vše

sensor:
  - platform: history_stats
    name: "bbathroom time"
    entity_id: sensor.hvac_activity_bbathroom
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}" 
    
  - platform: history_stats
    name: "Livingroom time"
    entity_id: sensor.hvac_activity_livingroom
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}"    
    
  - platform: history_stats
    name: "Adams room time"
    entity_id: sensor.hvac_activity_adams
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}"  
    
  - platform: history_stats
    name: "bedroom time"
    entity_id: sensor.hvac_activity_bedroom
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}" 
    
  - platform: history_stats
    name: "cloakroom time"
    entity_id: sensor.hvac_activity_cloakroom
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}" 
    
  - platform: history_stats
    name: "entrance hall time"
    entity_id: sensor.hvac_activity_entrance_hall
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}" 
    
  - platform: history_stats
    name: "hall time"
    entity_id: sensor.hvac_activity_hall
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}" 
    
  - platform: history_stats
    name: "office time"
    entity_id: sensor.hvac_activity_office
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}"
    
  - platform: history_stats
    name: "sbathroom time"
    entity_id: sensor.hvac_activity_sbathroom
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}"
    
  - platform: history_stats
    name: "troom time"
    entity_id: sensor.hvac_activity_troom
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}"
    
  - platform: history_stats
    name: "toilet time"
    entity_id: sensor.hvac_activity_toilet
    state: heating
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}"


template:
  - sensor:
    - name: "Bbathroom consumption"
      unique_id: bbathroom_consumption_heating
      state: "{{ ((states('sensor.bbathroom_time') | float * 0.75) | round(2) )}}"
      availability: "{{ states('sensor.bbathroom_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing
      
  - sensor:
    - name: "Livingroom consumption"
      unique_id: livingroom_consumption_heating
      state: "{{ ((states('sensor.livingroom_time') | float * 4) | round(2) )}}"
      availability: "{{ states('sensor.livingroom_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing 
      
  - sensor:
    - name: "Adams room consumption"
      unique_id: adamsroom_consumption_heating
      state: "{{ ((states('sensor.adams_room_time') | float * 0.95) | round(2) )}}"
      availability: "{{ states('sensor.adams_room_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing   
      
  - sensor:
    - name: "Bedroom consumption"
      unique_id: bedroom_consumption_heating
      state: "{{ ((states('sensor.bedroom_time') | float * 0.95) | round(2) )}}"
      availability: "{{ states('sensor.bedroom_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing      
      
  - sensor:
    - name: "Cloakroom consumption"
      unique_id: cloakroom_consumption_heating
      state: "{{ ((states('sensor.cloakroom_time') | float * 0.25) | round(2) )}}"
      availability: "{{ states('sensor.cloakroom_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing     
      
  - sensor:
    - name: "Entrance hall consumption"
      unique_id: entrance_hall_consumption_heating
      state: "{{ ((states('sensor.entrance_hall_time') | float * 0.6) | round(2) )}}"
      availability: "{{ states('sensor.entrance_hall_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing
      
  - sensor:
    - name: "Hall consumption"
      unique_id: hall_consumption_heating
      state: "{{ ((states('sensor.hall_time') | float * 0.12) | round(2) )}}"
      availability: "{{ states('sensor.hall_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing
      
  - sensor:
    - name: "Office consumption"
      unique_id: office_consumption_heating
      state: "{{ ((states('sensor.office_time') | float * 0.95) | round(2) )}}"
      availability: "{{ states('sensor.office_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing
      
  - sensor:
    - name: "Sbathroom consumption"
      unique_id: sbathroom_consumption_heating
      state: "{{ ((states('sensor.sbathroom_time') | float * 0.4) | round(2) )}}"
      availability: "{{ states('sensor.sbathroom_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing
      
  - sensor:
    - name: "Troom consumption"
      unique_id: troom_consumption_heating
      state: "{{ ((states('sensor.troom_time') | float * 0.4) | round(2) )}}"
      availability: "{{ states('sensor.troom_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing
      
  - sensor:
    - name: "Toilet consumption"
      unique_id: toilet_consumption_heating
      state: "{{ ((states('sensor.toilet_time') | float * 0.2) | round(2) )}}"
      availability: "{{ states('sensor.toilet_time') | is_number }}"
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing
      
  - sensor:
    - name: "Heating total kWh"
      unique_id: total_consumption_heating
      state: >
        {{ (states('sensor.bbathroom_consumption') | float(0) +
            states('sensor.livingroom_consumption') | float(0) +
            states('sensor.bedroom_consumption') | float(0) +
            states('sensor.cloakroom_consumption') | float(0) +
            states('sensor.entrance_hall_consumption') | float(0) +
            states('sensor.office_consumption') | float(0) +
            states('sensor.hall_consumption') | float(0) +
            states('sensor.troom_consumption') | float(0) +
            states('sensor.sbathroom_consumption') | float(0) +
            states('sensor.toilet_consumption') | float(0) +
            states('sensor.adams_room_consumption') | float(0))
            | round(2) }}
      availability: >
        {{ states('sensor.bbathroom_consumption') | is_number and
           states('sensor.livingroom_consumption') | is_number and
           states('sensor.bedroom_consumption') | is_number and
           states('sensor.cloakroom_consumption') | is_number and
           states('sensor.entrance_hall_consumption') | is_number and
           states('sensor.office_consumption') | is_number and
           states('sensor.hall_consumption') | is_number and
           states('sensor.troom_consumption') | is_number and
           states('sensor.sbathroom_consumption') | is_number and
           states('sensor.toilet_consumption') | is_number and
           states('sensor.adams_room_consumption') | is_number }}
      unit_of_measurement: "kWh" 
      device_class: energy
      state_class: total_increasing	


  - sensor:
    - name: "HVAC Activity bbathroom"
      state: "{{ state_attr('climate.big_bathroom_thermostat', 'hvac_action') }}"
   
    - name: "HVAC Activity livingroom"
      state: "{{ state_attr('climate.livingroom_thermostat', 'hvac_action') }}"
      
    - name: "HVAC Activity adams"
      state: "{{ state_attr('climate.adams_s_room_thermostat', 'hvac_action') }}"
      
    - name: "HVAC Activity bedroom"
      state: "{{ state_attr('climate.bedroom_thermostat', 'hvac_action') }}"
      
    - name: "HVAC Activity cloakroom"
      state: "{{ state_attr('climate.cloak_room_thermostat', 'hvac_action') }}"
      
    - name: "HVAC Activity entrance hall"
      state: "{{ state_attr('climate.entrance_hall_thermostat', 'hvac_action') }}"
      
    - name: "HVAC Activity hall"
      state: "{{ state_attr('climate.hall_thermostat', 'hvac_action') }}"
      
    - name: "HVAC Activity office"
      state: "{{ state_attr('climate.office_thermostat', 'hvac_action') }}"
      
    - name: "HVAC Activity sbathroom"
      state: "{{ state_attr('climate.small_bathroom_thermostat', 'hvac_action') }}"
      
    - name: "HVAC Activity troom"
      state: "{{ state_attr('climate.hysen_hy08we_2_thermostat', 'hvac_action') }}"
      
    - name: "HVAC Activity toilet"
      state: "{{ state_attr('climate.toilet_thermostat', 'hvac_action') }}"

Uživatelský avatar
Pete30
Moderátor
Moderátor
Příspěvky: 3333
Registrován: 30. září 2020, 20:33
Dal poděkování: 172 poděkování
Dostal poděkování: 364 poděkování

Re: Package - Vypocet spotreby elektricke podlahove topeni

Příspěvek od Pete30 »

I když by si to zasloužilo samostatné vlákno, tak v rychlosti jak to mám já a funkční ;)
V configuration.yaml přidat

Kód: Vybrat vše

homeassistant:
  packages: !include_dir_merge_named packages
v rootu vytvořit složku s názvem packages
ve složce vytvořit soubor s názvem jaký chceš (já mám například zatím 2, jeden sablony_binarni_senzory.yaml a druhý sablony_senzory.yaml)
a protože bych ho chtěl pod sablony_senzory.yaml otevřu tento prázdný soubor a tam vložím

Kód: Vybrat vše

sablony_senzory:
  template:
    - sensor:
        - name: "Bbathroom consumption"
          unique_id: bbathroom_consumption_heating
          state: "{{ ((states('sensor.bbathroom_time') | float * 0.75) | round(2) )}}"
          availability: "{{ states('sensor.bbathroom_time') | is_number }}"
          unit_of_measurement: "kWh" 
          device_class: energy
          state_class: total_increasing
Atd, prostě musíš správně nastavit celou cestu a v souboru už je cpeš pod sebe všechny co máš a potřebuješ jen už vynecháš template ;)
Pokud nejsem přítomen tak jsem na rybách ;)

Uživatelský avatar
Lion®
Administrátor fóra
Administrátor fóra
Příspěvky: 1604
Registrován: 28. září 2020, 14:07
Bydliště: podkrkonoší
Dal poděkování: 144 poděkování
Dostal poděkování: 193 poděkování
Kontaktovat uživatele:

Re: Package - Vypocet spotreby elektricke podlahove topeni

Příspěvek od Lion® »

Ve složce config mám složku all_package
a v configuration.yaml

Kód: Vybrat vše

homeassistant:
  packages: !include_dir_named all_package
ve složce all_package mám balíčky podle integrací mnohdy včetně automatizaci.
...
Příklad, řeším něco s vysavačem otevřu soubor balíčku vacuum.yaml a mám tam vsechno pohromadě.
helpery, senzory, scripty, automatizace a dokonce i zakomentovanou kartu ovl. panelu.
________________
🍻 Přispěj a získej přístup do obsahu fóra pro dárce. :thx:
Oficiální sada s Raspberry Pi 4B/4GB, černá +Argon NEO Raspberry Pi 4 Case
Patriot Burst 2.5" SATA SSD 120GB + AXAGON EE25-XA6 ALINE box

Galerie realizací

Uživatelský avatar
Pete30
Moderátor
Moderátor
Příspěvky: 3333
Registrován: 30. září 2020, 20:33
Dal poděkování: 172 poděkování
Dostal poděkování: 364 poděkování

Re: Package - Vypocet spotreby elektricke podlahove topeni

Příspěvek od Pete30 »

Jasně záleží na prioritě a jak to chceš mít uspořádáno. Já dával jen příklad ;)
Pokud nejsem přítomen tak jsem na rybách ;)

Jezinka
Začínající autor
Začínající autor
Příspěvky: 40
Registrován: 06. leden 2022, 09:34
Dal poděkování: 2 poděkování
Dostal poděkování: 1 poděkování

Re: Package - Vypocet spotreby elektricke podlahove topeni

Příspěvek od Jezinka »

Ahoj. Nedaří se mi nastavit správně balíčky. Hlavně mám problém se šablonami senzorů a binárních sensorů.

toto je configuration.yaml
homeassistant:
packages: !include_dir_named integrations

potom je složka s názvem integrations ve které jsou yaml soubory s názvy jednotlivých skupin, kde dochází přesměrování pomocí include na složku entities a zde jdou další adresáře a v nich soubory. Z dokumentace jsem ale nepochopil, zda třeba komponenta template binární senzory má být v názvu složky, souboru, neboaž v kodu souboru. I díky tomu jak se změnila struktura nových šablon tak mi to dělá problémy a vše nefunguje jak má.

Obrázek
Obrázek
Obrázek

Zde jsou příklady jak to mám po nočním trápení.

Jezinka
Začínající autor
Začínající autor
Příspěvky: 40
Registrován: 06. leden 2022, 09:34
Dal poděkování: 2 poděkování
Dostal poděkování: 1 poděkování

Re: Package - Vypocet spotreby elektricke podlahove topeni

Příspěvek od Jezinka »

Tak už vyřešeno.

Odpovědět

Zpět na „Konfigurace HA“