Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add more values from the ModBus Documentation #38

Merged
merged 5 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions custom_components/solvis_control/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,83 @@ class ModbusFieldConfig:

PORT = 502
REGISTERS = [
ModbusFieldConfig( # Analog Out 1 Status
name="analog_out_1_status",
address=3840,
enabled_by_default=False,
device_class="",
unit="",
state_class="measurement",
entity_category="diagnostic",
),
ModbusFieldConfig( # Analog Out 2 Status
name="analog_out_2_status",
address=3845,
enabled_by_default=False,
device_class="",
unit="",
state_class="measurement",
entity_category="diagnostic",
),
ModbusFieldConfig( # Analog Out 3 Status
name="analog_out_3_status",
address=3850,
enabled_by_default=False,
device_class="",
unit="",
state_class="measurement",
entity_category="diagnostic",
),
ModbusFieldConfig( # Analog Out 4 Status
name="analog_out_4_status",
address=3855,
enabled_by_default=False,
device_class="",
unit="",
state_class="measurement",
entity_category="diagnostic",
),
ModbusFieldConfig( # Analog Out 5 Status
name="analog_out_5_status",
address=3860,
enabled_by_default=False,
device_class="",
unit="",
state_class="measurement",
entity_category="diagnostic",
),
ModbusFieldConfig( # Analog Out 6 Status
name="analog_out_6_status",
address=3865,
enabled_by_default=False,
device_class="",
unit="",
state_class="measurement",
entity_category="diagnostic",
),
ModbusFieldConfig( # Brennerleistung
name="gas_power",
address=33539,
unit="kW",
device_class="power",
state_class="measurement",
),
ModbusFieldConfig(
name="laufzeit_brennerstufe_1",
address=33536,
enabled_by_default=False,
device_class="duration",
unit="h",
state_class="measurement",
),
ModbusFieldConfig(
name="laufzeit_brennerstufe_2",
address=33538,
enabled_by_default=False,
device_class="duration",
unit="h",
state_class="measurement",
),
ModbusFieldConfig( # Außentemperatur
name="outdoor_air_temp",
address=33033,
Expand Down Expand Up @@ -702,6 +772,14 @@ class ModbusFieldConfig:
multiplier=1,
entity_category="diagnostic",
),
ModbusFieldConfig(
name="digin_error",
address=33045,
unit="",
device_class=None,
state_class=None,
entity_category="diagnostic",
),
ModbusFieldConfig( # ZirkulationBetriebsart
name="zirkulation_betriebsart",
address=2049,
Expand Down
74 changes: 74 additions & 0 deletions custom_components/solvis_control/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,80 @@
},
"raumtemperatur_hkr2":{
"name":"HKR2 Raumtemperatur"
},
"laufzeit_brennerstufe_1": {
"name": "Laufzeit Brennerstufe 1"
},
"laufzeit_brennerstufe_2": {
"name": "Laufzeit Brennerstufe 2"
},
"analog_out_1_status": {
"name": "Analog Out 1 Status",
"state": {
"0": "Auto PWM",
"1": "Hand PWM",
"2": "Auto analog",
"3": "Hand analog"
}
},
"analog_out_2_status": {
"name": "Analog Out 2 Status",
"state": {
"0": "Auto PWM",
"1": "Hand PWM",
"2": "Auto analog",
"3": "Hand analog"
}
},
"analog_out_3_status": {
"name": "Analog Out 3 Status",
"state": {
"0": "Auto PWM",
"1": "Hand PWM",
"2": "Auto analog",
"3": "Hand analog"
}
},
"analog_out_4_status": {
"name": "Analog Out 4 Status",
"state": {
"0": "Auto PWM",
"1": "Hand PWM",
"2": "Auto analog",
"3": "Hand analog"
}
},
"analog_out_5_status": {
"name": "Analog Out 5 Status",
"state": {
"0": "Auto PWM",
"1": "Hand PWM",
"2": "Auto analog",
"3": "Hand analog"
}
},
"analog_out_6_status": {
"name": "Analog Out 6 Status",
"state": {
"0": "Auto PWM",
"1": "Hand PWM",
"2": "Auto analog",
"3": "Hand analog"
}
},
"digin_error": {
"name": "DigIn Störungen",
"state": {
"0": "Sicherung Netzbaugruppe",
"1": "Brennerfehler",
"2": "STB1 Fehler",
"3": "STB2 Fehler",
"4": "Brenner CM424",
"5": "Solardruck",
"6": "unbekannt",
"7": "Anlagendruck",
"8": "Kondensat"
}
}
},
"switch": {
Expand Down
74 changes: 74 additions & 0 deletions custom_components/solvis_control/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,80 @@
},
"raumtemperatur_hkr2":{
"name":"HKR2 Raumtemperatur"
},
"laufzeit_brennerstufe_1": {
"name": "Laufzeit Brennerstufe 1"
},
"laufzeit_brennerstufe_2": {
"name": "Laufzeit Brennerstufe 2"
},
"analog_out_1_status": {
"name": "Analog Out 1 Status",
"state": {
"0": "Auto PWM",
"1": "Hand PWM",
"2": "Auto analog",
"3": "Hand analog"
}
},
"analog_out_2_status": {
"name": "Analog Out 2 Status",
"state": {
"0": "Auto PWM",
"1": "Hand PWM",
"2": "Auto analog",
"3": "Hand analog"
}
},
"analog_out_3_status": {
"name": "Analog Out 3 Status",
"state": {
"0": "Auto PWM",
"1": "Hand PWM",
"2": "Auto analog",
"3": "Hand analog"
}
},
"analog_out_4_status": {
"name": "Analog Out 4 Status",
"state": {
"0": "Auto PWM",
"1": "Hand PWM",
"2": "Auto analog",
"3": "Hand analog"
}
},
"analog_out_5_status": {
"name": "Analog Out 5 Status",
"state": {
"0": "Auto PWM",
"1": "Hand PWM",
"2": "Auto analog",
"3": "Hand analog"
}
},
"analog_out_6_status": {
"name": "Analog Out 6 Status",
"state": {
"0": "Auto PWM",
"1": "Hand PWM",
"2": "Auto analog",
"3": "Hand analog"
}
},
"digin_error": {
"name": "DigIn Störungen",
"state": {
"0": "Sicherung Netzbaugruppe",
"1": "Brennerfehler",
"2": "STB1 Fehler",
"3": "STB2 Fehler",
"4": "Brenner CM424",
"5": "Solardruck",
"6": "unbekannt",
"7": "Anlagendruck",
"8": "Kondensat"
}
}
},
"switch": {
Expand Down
Loading