Skip to content

Instantly share code, notes, and snippets.

@rattkin
Created June 2, 2026 17:49
Show Gist options
  • Select an option

  • Save rattkin/9e028865721e7c6486b2198fb737d538 to your computer and use it in GitHub Desktop.

Select an option

Save rattkin/9e028865721e7c6486b2198fb737d538 to your computer and use it in GitHub Desktop.
- name: "acond"
type: tcp
host: 192.168.1.94 # Zkontrolujte/upravte IP adresu
port: 502
delay: 30 # Prodleva mezi zápisy / po inicializaci
# =================================================================
# 1. ČTENÍ STAVŮ A TEPLOT (Řada 3xxxx -> input_type: input)
# =================================================================
sensors:
- name: "Acond Venkovní teplota"
unique_id: acond_teplota_venkovni
slave: 1
address: 9 # Mdb 30010 (T_act_air) -> 10 - 1 = 9
input_type: input
data_type: int16
scale: 0.1
precision: 1
device_class: temperature
unit_of_measurement: "°C"
state_class: measurement
scan_interval: 30
- name: "Acond Aktuální teplota v domě"
unique_id: acond_teplota_vnitrni
slave: 1
address: 1 # Mdb 30002 (T_act_indoor1) -> 2 - 1 = 1
input_type: input
data_type: int16
scale: 0.1
precision: 1
device_class: temperature
unit_of_measurement: "°C"
state_class: measurement
scan_interval: 30
- name: "Acond Teplota waters - Náběh"
unique_id: acond_teplota_nabeh
slave: 1
address: 17 # Mdb 30018 (T_act_water_outlet) -> 18 - 1 = 17
input_type: input
data_type: int16
scale: 0.1
precision: 1
device_class: temperature
unit_of_measurement: "°C"
state_class: measurement
scan_interval: 30
- name: "Acond Teplota vody - Zpátečka"
unique_id: acond_teplota_zpatecka
slave: 1
address: 8 # Mdb 30009 (T_act_water_back) -> 9 - 1 = 8
input_type: input
data_type: int16
scale: 0.1
precision: 1
device_class: temperature
unit_of_measurement: "°C"
state_class: measurement
scan_interval: 30
- name: "Acond Teplota T02 PLC"
unique_id: acond_teplota_t02_plc
slave: 1
address: 29 # Mdb 30030 (T02_PLC) -> 30 - 1 = 29
input_type: input
data_type: int16
scale: 0.1
precision: 1
device_class: temperature
unit_of_measurement: "°C"
state_class: measurement
scan_interval: 30
- name: "Acond Celková spotřeba na topení"
unique_id: acond_celkova_spotreba_topeni
slave: 1
address: 36 # Mdb 30037 (EES kWh) -> 37 - 1 = 36
input_type: input
data_type: int32 # KLÍČOVÉ: DINT odpovídá 32-bitovému číslu
scale: 0.1 # KLÍČOVÉ: Zpracuje násobitel x10 z dokumentace
precision: 1
device_class: energy # Povolí integraci do panelu Energie
state_class: total_increasing # Říká HA, že hodnota dlouhodobě roste
unit_of_measurement: "kWh" # Správná jednotka pro statistiky
scan_interval: 60
- name: "Acond Celková spotřeba na chlazení"
unique_id: acond_celkova_spotreba_chlazeni
slave: 1
address: 70 # Mdb 30071 (EES kWh) -> 37 - 1 = 36
input_type: input
data_type: int32 # KLÍČOVÉ: DINT odpovídá 32-bitovému číslu
scale: 0.1 # KLÍČOVÉ: Zpracuje násobitel x10 z dokumentace
precision: 1
device_class: energy # Povolí integraci do panelu Energie
state_class: total_increasing # Říká HA, že hodnota dlouhodobě roste
unit_of_measurement: "kWh" # Správná jednotka pro statistiky
scan_interval: 60
- name: "Acond Teplota TUV (Bojler)"
unique_id: acond_teplota_tuv
slave: 1
address: 5 # Mdb 30006 (T_act_TUV) -> 6 - 1 = 5
input_type: input
data_type: int16
scale: 0.1
precision: 1
device_class: temperature
unit_of_measurement: "°C"
state_class: measurement
scan_interval: 30
# 🆕 NOVÉ SENZORY PODLE FOTKY 🆕
- name: "Acond Aktuální otáčky kompresoru"
unique_id: acond_kompresor_otacky
slave: 1
address: 23 # Mdb 30024 (comp_rpm_actual) -> 24 - 1 = 23
input_type: input
data_type: int16
unit_of_measurement: "rpm"
state_class: measurement
scan_interval: 30
- name: "Acond Chybové číslo"
unique_id: acond_chyba_kod_real
slave: 1
address: 20 # Mdb 30021 (err_number) -> 21 - 1 = 20
input_type: input
data_type: int16
scan_interval: 60
- name: "Acond SCOP"
unique_id: acond_scop
slave: 1
address: 40 # Mdb 30041 (SCOP) -> 41 - 1 = 40
input_type: input
data_type: int16
scale: 0.1
precision: 2
unit_of_measurement: "COP"
state_class: measurement
scan_interval: 60
- name: "Acond Teplota HP (Vysoký tlak)"
unique_id: acond_teplota_hp
slave: 1
address: 41 # Mdb 30042 (T act HP) -> 42 - 1 = 41
input_type: input
data_type: int16
scale: 0.1
precision: 1
device_class: temperature
unit_of_measurement: "°C"
state_class: measurement
scan_interval: 30
- name: "Acond Teplota LP (Nízký tlak)"
unique_id: acond_teplota_lp
slave: 1
address: 42 # Mdb 30043 (T act LP) -> 43 - 1 = 42
input_type: input
data_type: int16
scale: 0.1
precision: 1
device_class: temperature
unit_of_measurement: "°C"
state_class: measurement
scan_interval: 30
- name: "Acond Motohodiny Kompresoru"
unique_id: acond_motohodiny_kompresor
slave: 1
address: 49 # Mdb 30050 (Compressor_hours) -> 50 - 1 = 49
input_type: input
data_type: uint16
unit_of_measurement: "h"
state_class: total_increasing
scan_interval: 60
- name: "Acond Aktuální příkon čerpadla"
unique_id: acond_prikon_tc
slave: 1
address: 26 # Mdb 30027 (ElPwr_TC) -> 27 - 1 = 26
input_type: input
data_type: int16
scale: 0.001 # Předpoklad: Foxtrot posílá Watty (např. 2500 W). Scale 0.001 to převede na 2.5 kW.
precision: 2
device_class: power
unit_of_measurement: "kW"
state_class: measurement
scan_interval: 30
- name: "Acond Aktuální tepelný výkon"
unique_id: acond_tepelny_vykon_tc
slave: 1
address: 27 # Mdb 30028 (HeatingCap) -> 28 - 1 = 27
input_type: input
data_type: int16
scale: 0.001 # Předpoklad: Výkon ve Wattech převedeme na kW
precision: 2
device_class: power
unit_of_measurement: "kW"
state_class: measurement
scan_interval: 30
- name: "Acond Aktuální COP"
unique_id: acond_aktualni_cop
slave: 1
address: 28 # Mdb 30029 (COPHeating) -> 29 - 1 = 28
input_type: input
data_type: int16
scale: 0.1 # Předpoklad: Hodnota např. 42 se převede na COP 4.2
precision: 2
unit_of_measurement: "COP"
state_class: measurement
scan_interval: 30
# =================================================================
# 2. NASTAVENÍ HODNOT (Řada 4xxxx -> input_type: holding)
# =================================================================
number:
- name: "Acond Požadovaná teplota v místnosti"
unique_id: acond_set_indoor
slave: 1
address: 0 # Mdb 40001 (T_set_indoor1) -> 1 - 1 = 0
input_type: holding
data_type: int16
scale: 0.1
step: 0.5
min_value: 15
max_value: 26
unit_of_measurement: "°C"
mode: box
- name: "Acond Požadovaná teplota TUV"
unique_id: acond_set_tuv
slave: 1
address: 4 # Mdb 40005 (T_set_TUV) -> 5 - 1 = 4
input_type: holding
data_type: int16
scale: 0.1
step: 0.5
min_value: 10
max_value: 55
unit_of_measurement: "°C"
mode: box
- name: "Acond Požadovaná teplota zpátečky"
unique_id: acond_set_water_back
slave: 1
address: 7 # Mdb 40008 (T_set_water_back) -> 8 - 1 = 7
input_type: holding
data_type: int16
scale: 0.1
step: 0.5
min_value: 20
max_value: 50
unit_of_measurement: "°C"
mode: box
# NOVÉ NASTAVITELNÉ ČASY PRO TICHÝ REŽIM
# Hodnoty jsou v minutách od půlnoci (např. 1320 = 22:00, 360 = 06:00)
- name: "Acond Tichý režim od (minuty)"
unique_id: acond_silent_start
slave: 1
address: 18 # Mdb 40019 (silent_mode_start) -> 19 - 1 = 18
input_type: holding
data_type: int16
step: 15
min_value: 0
max_value: 1440
mode: box
- name: "Acond Tichý režim do (minuty)"
unique_id: acond_silent_stop
slave: 1
address: 19 # Mdb 40020 (silent_mode_stop) -> 20 - 1 = 19
input_type: holding
data_type: int16
step: 15
min_value: 0
max_value: 1440
mode: box
# =================================================================
# 3. SPÍNAČE (Řada 4xxxx -> write_type: holding)
# =================================================================
switches:
- name: "Acond Tichý režim"
unique_id: acond_silent_mode
slave: 1
address: 17 # Mdb 40018 (silent_mode) -> 18 - 1 = 17
write_type: holding
command_on: 1
command_off: 0
verify:
input_type: holding
address: 17
state_on: 1
state_off: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment