Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################################################
- # Modbus on SYSTEMAIR SAVE_VTR
- ################################################################################
- modbus:
- name: VTR
- type: tcp
- host: 192.168.8.193 # User specific setting
- port: 502 # User specific setting
- timeout: 5 #Timeout for slave response in seconds (default=3)
- delay: 3 #Time to sleep in seconds after connecting and before sending messages (defualt=0)
- message_wait_milliseconds: 100
- climates:
- - name: VTR_TC_SP
- slave: 1
- address: 12102 #Supply Air Temperature sensor (standard)
- input_type: holding
- data_type: int16
- max_temp: 30
- min_temp: 12
- offset: 0
- precision: 1
- scale: 0.1
- #structure: ">f"
- target_temp_register: 2000 #Temperature setpoint for the supply air temperature
- temp_step: 0.5
- temperature_unit: C
- sensors:
- ## 2.2 USER modes ###
- - name: VTR_REG_USERMODE_FIREPLACE_TIME # Time delay setting for user mode Fire Place
- # device_class:
- slave: 1
- address: 1102 #adress from modbus list - 1
- input_type: holding
- # unit_of_measurement:
- scale: 1
- offset: 0
- precision: 0 #decimals
- data_type: int16
- # - name: VTR_REG_USERMODE_REMAINING_TIME_s
- # slave: 1
- # address: 1110 #adress from modbus list - 1
- # input_type: holding
- # unit_of_measurement: "s"
- # count: 2
- # data_type: uint32
- - name: VTR_REG_USERMODE_FIREPLACE_AIRFLOW_ LEVEL_SAF #Fan speed level for mode Fire Place1: Minimum2: Low3: Normal
- # device_class:
- slave: 1
- address: 1138 #adress from modbus list - 1
- input_type: holding
- # unit_of_measurement:
- scale: 1
- offset: 0
- precision: 0 #decimals
- data_type: int16
- - name: VTR_REG_USERMODE_FIREPLACE_AIRFLOW_ LEVEL_EAF #Fan speed level for mode Fire Place1: Minimum2: Low3: Normal
- # device_class:
- slave: 1
- address: 1139 #adress from modbus list - 1
- input_type: holding
- # unit_of_measurement:
- scale: 1
- offset: 0
- precision: 0 #decimals
- data_type: int16
- - name: VTR_REG_USERMODE_COOKERHOOD_AIRFLOW_ LEVEL_SAF #Fan speed level for mode Fire Place1: Minimum2: Low3: Normal
- # device_class:
- slave: 1
- address: 1144 #adress from modbus list - 1
- input_type: holding
- # unit_of_measurement:
- scale: 1
- offset: 0
- precision: 0 #decimals
- data_type: int16
- - name: VTR_REG_USERMODE_COOKERHOOD_AIRFLOW_ LEVEL_EAF #Fan speed level for mode Fire Place1: Minimum2: Low3: Normal
- # device_class:
- slave: 1
- address: 1145 #adress from modbus list - 1
- input_type: holding
- # unit_of_measurement:
- scale: 1
- offset: 0
- precision: 0 #decimals
- data_type: int16
- - name:
- vtr_usermode_mode
- # Active User mode.
- # 0: Auto
- # 1: Manual
- # 2: Crowded
- # 3: Refresh
- # 4: Fireplace
- # 5: Away
- # 6: Holiday
- # 7: Cooker Hood
- # 8: Vacuum Cleaner
- # 9: CDI1
- # 10: CDI2
- # 11: CDI3
- # 12: PressureGuard
- # device_class:
- slave: 1
- address: 1160 #adress from modbus list - 1
- input_type: holding
- # unit_of_measurement:
- scale: 1
- offset: 0
- precision: 0 #decimals
- data_type: int16
- - name: REG_CDI_1_AIRFLOW_LEVEL_SAF #Fan speed level for configurable digital input 1.0: Off1: Minimum2: Low3: Normal4: High5: Maximum
- # device_class:
- slave: 1
- address: 1170 #adress from modbus list - 1
- input_type: holding
- # unit_of_measurement:
- scale: 1
- offset: 0
- precision: 0 #decimals
- data_type: int16
- - name: REG_CDI_1_AIRFLOW_LEVEL_EAF #Fan speed level for configurable digital input 1.0: Off1: Minimum2: Low3: Normal4: High5: Maximum
- # device_class:
- slave: 1
- address: 1171 #adress from modbus list - 1
- input_type: holding
- # unit_of_measurement:
- scale: 1
- offset: 0
- precision: 0 #decimals
- data_type: int16
- - name: REG_CDI_2_AIRFLOW_LEVEL_SAF #Fan speed level for configurable digital input 1.0: Off1: Minimum2: Low3: Normal4: High5: Maximum
- # device_class:
- slave: 1
- address: 1172 #adress from modbus list - 1
- input_type: holding
- # unit_of_measurement:
- scale: 1
- offset: 0
- precision: 0 #decimals
- data_type: int16
- - name: REG_CDI_2_AIRFLOW_LEVEL_EAF #Fan speed level for configurable digital input 1.0: Off1: Minimum2: Low3: Normal4: High5: Maximum
- # device_class:
- slave: 1
- address: 1173 #adress from modbus list - 1
- input_type: holding
- # unit_of_measurement:
- scale: 1
- offset: 0
- precision: 0 #decimals
- data_type: int16
- - name: REG_CDI_3_AIRFLOW_LEVEL_SAF #Fan speed level for configurable digital input 1.0: Off1: Minimum2: Low3: Normal4: High5: Maximum
- # device_class:
- slave: 1
- address: 1174 #adress from modbus list - 1
- input_type: holding
- # unit_of_measurement:
- scale: 1
- offset: 0
- precision: 0 #decimals
- data_type: int16
- - name: REG_CDI_3_AIRFLOW_LEVEL_EAF #Fan speed level for configurable digital input 1.0: Off1: Minimum2: Low3: Normal4: High5: Maximum
- # device_class:
- slave: 1
- address: 1175 #adress from modbus list - 1
- input_type: holding
- # unit_of_measurement:
- scale: 1
- offset: 0
- precision: 0 #decimals
- data_type: int16
- ## 2.3 Airflow control ###
- - name: VTR_REG_SENSOR_RPM_SAF #Supply Air Fan RPM indication from TACHO
- #device_class: speed
- slave: 1
- address: 12400 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: rpm
- scale: 1
- offset: 0
- precision: 0
- data_type: int16
- - name: VTR_REG_SENSOR_RPM_EAF #Extract Air Fan RPM indication from TACHO
- #device_class: speed
- slave: 1
- address: 12401 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: rpm
- scale: 1
- offset: 0
- precision: 0
- data_type: int16
- - name: VTR_REG_USERMODE_MANUAL_AIRFLOW_LEVEL_SAF #Fan speed level for mode Manual,
- # 1:Off
- # 2:Low
- # 3:Normal
- # 4:High
- #device_class:
- slave: 1
- address: 1130 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: rpm
- scale: 1
- offset: 0
- precision: 0
- data_type: int16
- - name: VTR_REG_USERMODE_MANUAL_AIRFLOW_ LEVEL_EAF #Fan speed level for mode Manual, 1:Off 2:Low 3:Normal 4:High
- #device_class:
- slave: 1
- address: 1131 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: rpm
- scale: 1
- offset: 0
- precision: 0
- data_type: int16
- - name: VTR_REG_FAN_LEVEL_SAF_MIN_RPM #Fan speed rpm
- #device_class: speed
- slave: 1
- address: 1410 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: rpm
- scale: 1
- offset: 0
- precision: 0
- data_type: int16
- - name: VTR_REG_FAN_LEVEL_EAF_MIN_RPM #Fan speed rpm
- #device_class: speed
- slave: 1
- address: 1411 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: rpm
- scale: 1
- offset: 0
- precision: 0
- data_type: int16
- - name: VTR_REG_FAN_LEVEL_SAF_LOW_RPM #Fan speed rpm
- #device_class: speed
- slave: 1
- address: 1412 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: rpm
- scale: 1
- offset: 0
- precision: 0
- data_type: int16
- - name: VTR_REG_FAN_LEVEL_EAF_LOW_RPM #Fan speed rpm
- #device_class: speed
- slave: 1
- address: 1413 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: rpm
- scale: 1
- offset: 0
- precision: 0
- data_type: int16
- - name: VTR_REG_FAN_LEVEL_SAF_NORMAL_RPM #Fan speed rpm
- #device_class: speed
- slave: 1
- address: 1414 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: rpm
- scale: 1
- offset: 0
- precision: 0
- data_type: int16
- - name: VTR_REG_FAN_LEVEL_EAF_NORMAL_RPM #Fan speed rpm
- #device_class: speed
- slave: 1
- address: 1415 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: rpm
- scale: 1
- offset: 0
- precision: 0
- data_type: int16
- - name: VTR_REG_FAN_LEVEL_SAF_HIGH_RPM #Fan speed rpm
- #device_class: speed
- slave: 1
- address: 1416 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: rpm
- scale: 1
- offset: 0
- precision: 0
- data_type: int16
- - name: VTR_REG_FAN_LEVEL_EAF_HIGH_RPM #Fan speed rpm
- #device_class: speed
- slave: 1
- address: 1417 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: rpm
- scale: 1
- offset: 0
- precision: 0
- data_type: int16
- - name: VTR_REG_FAN_LEVEL_SAF_MAX_RPM #Fan speed rpm
- #device_class: speed
- slave: 1
- address: 1418 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: rpm
- scale: 1
- offset: 0
- precision: 0
- data_type: int16
- - name: VTR_REG_FAN_LEVEL_EAF_MAX_RPM #Fan speed rpm
- #device_class: speed
- slave: 1
- address: 1419 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: rpm
- scale: 1
- offset: 0
- precision: 0
- data_type: int16
- - name: VTR_REG_OUTPUT_FAN_SPEED1 #READ Fan speed CONTROL SIGNAL%
- device_class: power_factor
- slave: 1
- address: 14370 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: "%"
- scale: 1
- offset: 0
- precision: 0
- data_type: int16
- - name: VTR_REG_OUTPUT_FAN_SPEED2 #READ Fan speed CONTROL SIGNAL%
- device_class: power_factor
- slave: 1
- address: 14371 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: "%"
- scale: 1
- offset: 0
- precision: 0
- data_type: int16
- - name: vtr_REG_TC_SP #Temperature setpoint for the supply air temperature
- device_class: temperature
- slave: 1
- address: 2000 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: °C
- scale: 0.1
- offset: 0
- precision: 1
- data_type: int16
- - name: vtr_REG_TC_SP_SATC #Temperature setpoint for the supply air temperature
- device_class: temperature
- slave: 1
- address: 2053 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: °C
- scale: 0.1
- offset: 0
- precision: 1
- data_type: int16
- - name: VTR_REG_SENSOR_OAT ## Outdoor temperature
- device_class: temperature
- slave: 1
- address: 12101 #adress from modbus list - 1
- scan_interval: 30
- input_type: holding
- unit_of_measurement: °C
- scale: 0.1
- offset: 0
- precision: 1
- data_type: int16
- # - name: VTR_REG_SENSOR_SAT ## Supply air temperature
- # device_class: temperature
- # slave: 1
- # address: 12102 #adress from modbus list - 1
- # input_type: holding
- # unit_of_measurement: °C
- # scale: 0.1
- # offset: 0
- # precision: 1
- # data_type: int16
- - name: VTR_REG_SENSOR_EAT ## extract air temeperature
- device_class: temperature
- slave: 1
- address: 12543 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: °C
- scale: 0.1
- offset: 0
- precision: 1
- data_type: int16
- # Unit temperature control mode.
- # 0: Supply,
- # 1: Room,
- # 2: Extract
- - name: vtr_tc_contol_mode
- slave: 1
- address: 2030 #adress from modbus list - 1
- input_type: holding
- data_type: uint16
- - name: vtr_electric_heater_output #PWM TRIAC after manual override
- device_class: power_factor
- slave: 1
- address: 2148 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: "%"
- data_type: uint16
- - name: vtr_relative_moisture_extraction
- #hub: vtr
- device_class: humidity
- slave: 1
- address: 12135 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: "%"
- data_type: uint16
- - name: vtr_heat_recovery
- device_class: power_factor
- slave: 1
- address: 14102 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: "%"
- data_type: uint16
- - name: vtr_setpoint_value
- device_class: temperature
- slave: 1
- address: 2060 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: °C
- scale: 0.1
- offset: 0
- precision: 1
- data_type: int16
- - name: vtr_time_to_filter_replacement_s_low16bit
- slave: 1
- address: 7004 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: "s"
- data_type: uint16
- - name: vtr_time_to_filter_replacement_s_high16bit
- slave: 1
- address: 7005 #adress from modbus list - 1
- input_type: holding
- unit_of_measurement: "s"
- data_type: uint16
- - name:
- vtr_filter_alarm
- # Alarm active/inactive.
- # 0: Inactive
- # 1: Active
- # 2: Waiting
- # 3: Cleared Error Active
- slave: 1
- address: 15141 #adress from modbus list - 1
- input_type: holding
- data_type: uint16
- binary_sensors:
- - name: vtr_eco_function_active
- slave: 1
- address: 2505 #adress from modbus list - 1
- input_type: holding
- - name: VTR_REG_SENSOR_DI_PRESSURE_GUARD
- slave: 1
- address: 12315 #adress from modbus list - 1
- input_type: holding
- - name: VTR_REG_SENSOR_DI_CDI_1
- slave: 1
- address: 12316 #adress from modbus list - 1
- input_type: holding
- - name: VTR_REG_SENSOR_DI_CDI_2
- slave: 1
- address: 12317 #adress from modbus list - 1
- input_type: holding
- - name: VTR_REG_SENSOR_DI_CDI_3
- slave: 1
- address: 12318 #adress from modbus list - 1
- input_type: holding
- switches:
- - name: VTR_REG_ECO_MODE_ON_OFF
- slave: 1
- address: 2504 #adress from modbus list - 1
- write_type: holding
- command_on: 1
- command_off: 0
- verify:
- input_type: holding
- address: 2504 #adress from modbus list - 1
- state_on: 1
- state_off: 0
- delay: 1
- #####################
- # Template Sensors
- #####################
- sensor:
- - platform: template
- sensors:
- vtr_uker_til_filterskift:
- friendly_name: "vtr_uker_til_filterskift"
- value_template: "{{ ((((states('sensor.vtr_time_to_filter_replacement_s_low16bit') | int) | bitwise_or((states('sensor.vtr_time_to_filter_replacement_s_high16bit') | int) * 65536)) / 604800) | round(0)) }}"
- unit_of_measurement: "uker"
- vtr_sekunder_til_filterskift:
- friendly_name: "vtr_sekunder_til_filterskift"
- value_template: "{{ (states('sensor.vtr_time_to_filter_replacement_s_low16bit') | int) | bitwise_or((states('sensor.vtr_time_to_filter_replacement_s_high16bit') | int) * 65536 ) }}"
- unit_of_measurement: "s"
- vtr_recovery_rate:
- value_template: "{{((((states('sensor.VTR_REG_SENSOR_SAT') | float ) - (states('sensor.VTR_REG_SENSOR_OAT') | float)) / ((states('sensor.VTR_REG_SENSOR_EAT') | float ) - (states('sensor.VTR_REG_SENSOR_OAT') | float))) * 100) | round(1) }}"
- unit_of_measurement: "%"
- friendly_name: "vtr_gjenvinningsgrad"
- vtr_regulation_mode:
- friendly_name: "vtr_reguleringsmetode"
- value_template: >-
- {% if states('sensor.vtr_tc_contol_mode')|int == 0 %}
- Tilluftsregulering
- {% elif states('sensor.vtr_tc_contol_mode')|int == 1 %}
- Romregulering
- {% elif states('sensor.vtr_tc_contol_mode')|int == 2 %}
- Avtrekksregulering
- {% else %}
- Stein død
- {% endif %}
- vtr_usermode:
- friendly_name: "vtr_brukermodus"
- value_template: >-
- {% if states('sensor.vtr_usermode_mode')|int == 0 %}
- Auto
- {% elif states('sensor.vtr_usermode_mode')|int == 1 %}
- Manual
- {% elif states('sensor.vtr_usermode_mode')|int == 2 %}
- Crowded
- {% elif states('sensor.vtr_usermode_mode')|int == 3 %}
- Refresh
- {% elif states('sensor.vtr_usermode_mode')|int == 4 %}
- Fireplace
- {% elif states('sensor.vtr_usermode_mode')|int == 5 %}
- Away
- {% elif states('sensor.vtr_usermode_mode')|int == 6 %}
- Holiday
- {% elif states('sensor.vtr_usermode_mode')|int == 7 %}
- Cooker Hood
- {% elif states('sensor.vtr_usermode_mode')|int == 8 %}
- Vacuum Cleaner
- {% elif states('sensor.vtr_usermode_mode')|int == 9 %}
- CDI1
- {% elif states('sensor.vtr_usermode_mode')|int == 10 %}
- CDI2
- {% elif states('sensor.vtr_usermode_mode')|int == 11 %}
- CDI3
- {% elif states('sensor.vtr_usermode_mode')|int == 12 %}
- Pressure Guard
- {% else %}
- Unknown
- {% endif %}
- vtr_manual_usermode_airflow:
- friendly_name: "vtr_brukermodus_manuell_hastighet"
- value_template: >-
- {% if states('sensor.VTR_REG_USERMODE_MANUAL_AIRFLOW_LEVEL_SAF')|int == 2 %}
- Lav
- {% elif states('sensor.VTR_REG_USERMODE_MANUAL_AIRFLOW_LEVEL_SAF')|int == 3 %}
- Normal
- {% elif states('sensor.VTR_REG_USERMODE_MANUAL_AIRFLOW_LEVEL_SAF')|int == 4 %}
- Høy
- {% else %}
- Unknown
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement