2 Commits

Author SHA1 Message Date
GyroGearl00se 06739ef9b7 renamed repository 2025-02-19 21:41:42 +01:00
GyroGearl00se 170d52f563 added check to convert modbus raw_value to a signed integer to interpret correctly negativ values (i.e. temperatures) 2025-02-19 02:43:35 +01:00
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
# Froeling Lambdatronic Modbus
Home Assistant integration for Fröling Lambdatronic heating systems via Modbus (currently supports Modbus TCP only).
Home Assistant integration for Fröling Lambdatronic heating systems via Modbus (currently supports Modbus TCP only - maybe ).
## ⚠️ Disclaimer ⚠️
> **This integration is experimental and has not been tested over long periods.**
> It may contain missing or incorrect sensor data.
> Feel free to open an [issue](https://github.com/your-repo/issues) or contribute via a [pull request](https://github.com/your-repo/pulls).
> Feel free to open an [issue](https://github.com/GyroGearl00se/ha_froeling_lambdatronic_modbus/issues) or contribute via a [pull request](https://github.com/GyroGearl00se/ha_froeling_lambdatronic_modbus/pulls).
---
@@ -4,10 +4,10 @@
"codeowners": ["@GyroGearl00se"],
"config_flow": true,
"dependencies": [],
"documentation": "https://github.com/GyroGearl00se/hacs_froeling_lambdatronic_modbus",
"documentation": "https://github.com/GyroGearl00se/ha_froeling_lambdatronic_modbus",
"integration_type": "hub",
"iot_class": "local_polling",
"issue_tracker": "https://github.com/GyroGearl00se/hacs_froeling_lambdatronic_modbus/issues",
"issue_tracker": "https://github.com/GyroGearl00se/ha_froeling_lambdatronic_modbus/issues",
"requirements": ["pymodbus==2.5.3"],
"version": "1.0.0"
}
@@ -147,6 +147,8 @@ class FroelingSensor(SensorEntity):
self._state = None
else:
raw_value = result.registers[0]
if raw_value > 32767:
raw_value -= 65536
scaled_value = raw_value / self._scaling_factor
if self._decimal_places == 0:
self._state = int(scaled_value) # Convert to integer if decimal_places is 0