Witam.
Podłączyłem moje Rotenso Aquami modułem USR-DR404 WIFI TCP <=> Modbus RTU .
Do pliku configuration.yaml dodałem ten wiersz modbus: !include modbus.yaml i plik modbus.yaml a w nim:
- name: rotenso
type: tcp
host: 192.168.0.101
port: 502
delay: 5
timeout: 2
switches:
- name: heatpump_on_off_toggle
unique_id: heatpump_on_off_toggle
slave: 1
address: 0
write_type: holding
command_on: 2
command_off: 0
verify:
input_type: holding
address: 0
state_on: 2
state_off: 0
sensors:
- name: heatpump_Fan_Speed
unique_id: heatpump_Fan_Speed
scan_interval: 5
address: 102
state_class: measurement
slave: 1
scale: 1
input_type: holding
unit_of_measurement: r/min
- name: heatpump_flow_rate
unique_id: heatpump_flow_rate
scan_interval: 5
address: 138
state_class: measurement
slave: 1
scale: 0.01
precision: 3
input_type: holding
unit_of_measurement: m3/h
- name: heatpump_power_state
unique_id: heatpump_power_state
address: 0
scan_interval: 5
slave: 1
- name: heatpump_temperature_C1
unit_of_measurement: °C
state_class: measurement
unique_id: heatpump_temperature_C1
scan_interval: 5
address: 2
slave: 1
offset: 0
scale: 1
- name: heatpump_temperature_TW_IN
unit_of_measurement: °C
state_class: measurement
unique_id: heatpump_temperature_TW_IN
scan_interval: 5
address: 104
slave: 1
offset: 0
scale: 1
- name: heatpump_temperature_TW_OUT
unit_of_measurement: °C
state_class: measurement
unique_id: heatpump_temperature_TW_OUT
scan_interval: 5
address: 105
slave: 1
offset: 0
scale: 1
- name: heatpump_condensor_temperature_T3
unit_of_measurement: °C
state_class: measurement
unique_id: heatpump_condensor_temperature_T3
scan_interval: 5
address: 106
slave: 1
offset: 0
scale: 1
- name: heatpump_outdoor_temperature_T4
unit_of_measurement: °C
state_class: measurement
unique_id: heatpump_outdoor_temperature_T4
scan_interval: 5
address: 107
slave: 1
offset: 0
scale: 1
- name: heatpump_exhaust_gas_temperature_Tp
unit_of_measurement: °C
state_class: measurement
unique_id: heatpump_exhaust_gas_temperature_Tp
scan_interval: 5
address: 108
slave: 1
offset: 0
scale: 1
- name: heatpump_suction_temperature_Th
unit_of_measurement: °C
state_class: measurement
unique_id: heatpump_suction_temperature_Th
scan_interval: 5
address: 109
slave: 1
offset: 0
scale: 1
- name: heatpump_refrigerant_liquid_side_temperature_T2
unit_of_measurement: °C
state_class: measurement
unique_id: heatpump_refrigerant_liquid_side_temperature_T2
scan_interval: 5
address: 112
slave: 1
offset: 0
scale: 1
- name: heatpump_refrigerant_liquid_side_temperature_T2B
unit_of_measurement: °C
state_class: measurement
unique_id: heatpump_refrigerant_liquid_side_temperature_T2B
scan_interval: 5
address: 113
slave: 1
offset: 0
scale: 1
- name: heatpump_total_water_outlet_T1
unit_of_measurement: °C
state_class: measurement
unique_id: heatpump_total_water_outlet_T1
scan_interval: 5
address: 110
slave: 1
offset: 0
scale: 1
- name: heatpump_Operating_frequency_Hz
unit_of_measurement: Hz
unique_id: heatpump_Operating_frequency_Hz
scan_interval: 5
address: 100
slave: 1
offset: 0
scale: 1
- name: heatpump_Power
unit_of_measurement: kW
unique_id: heatpump_Power
device_class: power
scan_interval: 5
address: 140
state_class: measurement
slave: 1
scale: 0.01
offset: 0
precision: 3
- name: heatpump_PMV
unit_of_measurement: P
unique_id: heatpump_PMV
device_class: energy
scan_interval: 5
address: 103
state_class: total_increasing
slave: 1
- name: heatpump_high_pressure
unit_of_measurement: kPa
unique_id: heatpump_high_pressure
scan_interval: 5
address: 116
slave: 1
offset: 0
scale: 1
- name: heatpump_low_pressure
unit_of_measurement: kPa
unique_id: heatpump_low_pressure
scan_interval: 360
address: 117
slave: 1
offset: 0
scale: 1
- name: heatpump_total_climate_curve
unit_of_measurement: °C
state_class: measurement
unique_id: heatpump_total_climate_curve
scan_interval: 5
address: 136
slave: 1
offset: 0
scale: 1
- name: heatpump_operating_current
unit_of_measurement: A
unique_id: heatpump_operating_current
device_class: energy
scan_interval: 5
address: 118
state_class: total_increasing
slave: 1
scale: 1
offset: 0
precision: 3
- name: heatpump_Compressor_operation_time
unit_of_measurement: h
unique_id: heatpump_Compressor_operation_timet
device_class: energy
scan_interval: 360
address: 122
state_class: total_increasing
slave: 1
scale: 1
offset: 0
precision: 3
- name: heatpump_128
unique_id: heatpump_128
address: 128
scan_interval: 5
slave: 1
input_type: holding
- name: heatpump_129
unique_id: heatpump_129
address: 129
scan_interval: 5
slave: 1
input_type: holding
- name: heatpump_electricity_consumption
unique_id: heatpump_electricity_consumption
address: 143
slave: 1
data_type: int32
scan_interval: 60
unit_of_measurement: kWh
device_class: energy
state_class: total_increasing
input_type: holding
- name: heatpump_Power_output
unique_id: heatpump_Power_output
address: 145
slave: 1
data_type: int32
unit_of_measurement: kWh
device_class: energy
state_class: total_increasing
scan_interval: 60
input_type: holding
climates:
- name: heatpump_climate
unique_id: heatpump_climate
address: 110
slave: 1
input_type: holding
max_temp: 50
min_temp: 25
precision: 1
scale: 1
target_temp_register: 136
temp_step: 1
temperature_unit: °C
write_registers: true
hvac_mode_register:
address: 1
values:
state_auto: 1
state_cool: 2
state_heat: 3
- name: Górna temp. krzywej 9
unique_id: gorna_temp_krzywej_9
address: 265
data_type: int16
input_type: holding
max_temp: 60
min_temp: 25
offset: 0
precision: 1
scale: 1
target_temp_register: 265
temp_step: 1
temperature_unit: C
hvac_mode_register:
address: 0001
values:
state_heat: 3
- name: Dolna temp. krzywej 9
unique_id: dolna_temp_krzywej_9
address: 266
data_type: int16
input_type: holding
max_temp: 60
min_temp: 25
offset: 0
precision: 1
scale: 1
target_temp_register: 266
temp_step: 1
temperature_unit: C
hvac_mode_register:
address: 0001
values:
state_heat: 3
- name: Dolna temp. zewn. krzywej 9
unique_id: dolna_temp_zewn_krzywej_9
address: 268
data_type: int16
input_type: holding
max_temp: 30
min_temp: -25
offset: 0
precision: 1
scale: 1
target_temp_register: 268
temp_step: 1
temperature_unit: C
hvac_mode_register:
address: 0001
values:
state_heat: 3
- name: Górna temp. zewn. krzywej 9
unique_id: gorna_temp_zewn_krzywej_9
address: 267
data_type: int16
input_type: holding
max_temp: 30
min_temp: -25
offset: 0
precision: 1
scale: 1
target_temp_register: 267
temp_step: 1
temperature_unit: C
hvac_mode_register:
address: 0001
values:
state_heat: 3
Problem polega na tym że się nie znam i nie wiem jak odczytywać i zapisywać pojedyncze bity .NP: informacja o defroście jest na adresie 129 BIT15 ?
I termostat nie działa - na krzywej pokazuje dobrze jak wyłączę krzywą to jest 255 stopni i nie zmienia temperatury