Comments (8)
Which version of bsblan is on the board connected to your heating system?
from python-bsblan.
Hello @liudger, I am also concerned by this issue. I am using version 3.2.2-20230606224119
with for now a rudimentary set of parameters. Which version of BSB-LAN do you support ?
from python-bsblan.
I had the same issue but could fix it by reading the /Q function ("Reglerspezifische Parameterliste") docs and then using the BSB_LAN_custom_defs.h from 2.2.1.
(I've also done the rest of the recommended actions there). Now the home assistant device configured correctly and I have a thermostat device :-D
from python-bsblan.
PS: with the "proper" custom_defs.h from the bsb lan folks, the error re-appeared
from python-bsblan.
Could it be that the library gets confused because the API_V3 constants use 700.0
, but the API doesn't return such values?
from python-bsblan.
Here's the difference between the working and failing situation:
working
BSBLAN heating_params: ['hvac_mode', 'target_temperature', 'hvac_mode2', 'hvac_action', 'current_temperature', 'room1_thermostat_mode']
BSBLAN data: {
'700': {'name': 'Betriebsart', 'dataType_name': 'ENUM', 'dataType_family': 'ENUM', 'destination': '0', 'error': 0, 'value': '1', 'desc': 'Automatik', 'dataType': 1, 'readonly': 0, 'readwrite': 0, 'unit': ''},
'710': {'name': 'Komfortsollwert', 'dataType_name': 'TEMP', 'dataType_family': 'VALS', 'destination': '0', 'error': 0, 'value': '23.0', 'desc': '', 'precision': 0.1, 'dataType': 0, 'readonly': 0, 'readwrite': 0, 'unit': '°C'},
'900': {'name': 'Betriebsart', 'dataType_name': 'ENUM', 'dataType_family': 'ENUM', 'destination': '0', 'error': 0, 'value': '1', 'desc': 'Schutzbetrieb', 'dataType': 1, 'readonly': 0, 'readwrite': 0, 'unit': ''},
'8000': {'name': 'Status Heizkreis 1', 'dataType_name': 'ENUM', 'dataType_family': 'ENUM', 'destination': '0', 'error': 0, 'value': '114', 'desc': 'Heizbetrieb Komfort', 'dataType': 1, 'readonly': 1, 'readwrite': 1, 'unit': ''},
'8740': {'name': 'Raumtemperatur 1', 'dataType_name': 'TEMP', 'dataType_family': 'VALS', 'destination': '0', 'error': 0, 'value': '24.9', 'desc': '', 'precision': 0.1, 'dataType': 0, 'readonly': 1, 'readwrite': 1, 'unit': '°C'},
'8749': {'name': 'Raumthermostat 1', 'dataType_name': 'ENUM', 'dataType_family': 'ENUM', 'destination': '0', 'error': 7, 'value': '', 'desc': '', 'dataType': 1, 'readonly': 1, 'readwrite': 1, 'unit': ''}}
failing
BSBLAN heating_params: ['hvac_mode', 'target_temperature', 'hvac_mode2', 'hvac_action', 'current_temperature', 'room1_thermostat_mode']
BSBLAN data: {
'700': {'name': 'Betriebsart', 'dataType_name': 'ENUM', 'dataType_family': 'ENUM', 'destination': '0', 'error': 0, 'value': '1', 'desc': 'Automatik', 'dataType': 1, 'readonly': 0, 'readwrite': 0, 'unit': ''},
'710': {'name': 'Komfortsollwert', 'dataType_name': 'TEMP', 'dataType_family': 'VALS', 'destination': '0', 'error': 0, 'value': '23.0', 'desc': '', 'precision': 0.1, 'dataType': 0, 'readonly': 0, 'readwrite': 0, 'unit': '°C'},
'900': {'name': 'Betriebsartumschaltung', 'dataType_name': 'ENUM', 'dataType_family': 'ENUM', 'destination': '0', 'error': 0, 'value': '1', 'desc': 'Schutzbetrieb', 'dataType': 1, 'readonly': 0, 'readwrite': 0, 'unit': ''},
'8000': {'name': 'Status Heizkreis 1', 'dataType_name': 'ENUM', 'dataType_family': 'ENUM', 'destination': '0', 'error': 0, 'value': '114', 'desc': 'Heizbetrieb Komfort', 'dataType': 1, 'readonly': 1, 'readwrite': 1, 'unit': ''},
'8740': {'name': 'Raumtemperatur-Istwert 1', 'dataType_name': 'TEMP', 'dataType_family': 'VALS', 'destination': '0', 'error': 0, 'value': '24.3', 'desc': '', 'precision': 0.1, 'dataType': 0, 'readonly': 1, 'readwrite': 1, 'unit': '°C'}}
2023-11-12 09:06:25.780 ERROR (MainThread) [homeassistant.components.bsblan] Unexpected error fetching bsblan_10.0.0.15 data: zip() argument 2 is shorter than argument 1
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 290, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/bsblan/coordinator.py", line 51, in _async_update_data
return await self.client.state()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/bsblan/bsblan.py", line 177, in state
data = dict(zip(self._heating_params, list(data.values()), strict=True))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: zip() argument 2 is shorter than argument 1
2023-11-12 09:06:25.781 DEBUG (MainThread) [homeassistant.components.bsblan] Finished fetching bsblan_10.0.0.15 data in 1.083 seconds (success: False)
Seems like the method is not prepared for missing results.
from python-bsblan.
Since I don't always have access to this device, here's also a dump of all available parameters from it.
parameter_dump.zip
from python-bsblan.
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!
from python-bsblan.
Related Issues (20)
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Remove ability to pass in loop as it is deprecated in Python 3.8
- name and password 401 error should ask for password HOT 1
- Sensors HOT 1
- Add more parameters/attributes to heating circuit HOT 1
- update the bsblan lib to use password and paskey options.
- update firmware BSBLan device and test the current lib
- scan for available parameters
- push function for temperature HOT 2
- Multiple heater support HOT 3
- DHW-push support HOT 1
- Temperature value is not real - negative values in summer times HOT 9
- error timeout HOT 1
- rewrite functions
- support more than one heating circuit HOT 1
- Loosen requirements
- BSBLan device indentification with new firmware HOT 1
- Dependency Dashboard
- test_http_error400, test_not_authorized_401_response are failing with aiohttp>=3.9.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-bsblan.