Giter VIP home page Giter VIP logo

Comments (8)

liudger avatar liudger commented on August 26, 2024

Which version of bsblan is on the board connected to your heating system?

from python-bsblan.

FlorianLaunay avatar FlorianLaunay commented on August 26, 2024

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.

DavidS avatar DavidS commented on August 26, 2024

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.

DavidS avatar DavidS commented on August 26, 2024

PS: with the "proper" custom_defs.h from the bsb lan folks, the error re-appeared

from python-bsblan.

DavidS avatar DavidS commented on August 26, 2024

Could it be that the library gets confused because the API_V3 constants use 700.0, but the API doesn't return such values?

2023-11-11_19MS+0100_502x491

from python-bsblan.

DavidS avatar DavidS commented on August 26, 2024

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.

DavidS avatar DavidS commented on August 26, 2024

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.

github-actions avatar github-actions commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.