Git Product home page Git Product logo

Comments (5)

minovap avatar minovap commented on June 12, 2024

From what I can tell you create a Bosch gateway:

    import bosch_thermostat_client as bosch

    BoschGateway = bosch.gateway_chooser(device_type=self._device_type)

And then call the get_circuits() method and iterate through the response, adding the sensors:

    circuits = data[GATEWAY].get_circuits(circ_type)
    for circuit in circuits:
        for sensor in circuit.sensors:

The /heatingCircuits/hc1/pumpModulation endpoint gets added correctly, but not the /heatingCircuits/hc1/roomtemperature endpoint. So it seems like the bosch_thermostat_client library doesn't pickup roomtemperature, or am I missing something?

from home-assistant-bosch-custom-component.

minovap avatar minovap commented on June 12, 2024

I managed to find and edit nsc_icom_gateway.json and added three sensors that gets picked up when calling get_circuits():

 {'_connector': <bosch_thermostat_client.connectors.http.HttpConnector object at 0x7f9b37d5ca30>,

 '_data': {'roomtemperature': {'result': {},

                               'type': 'regular',

                               'uri': '/heatingCircuits/hc1/roomtemperature'}},

 '_extra_message': 'Waiting to fetch data',

 '_main_data': {'id': 'roomtemperature',

                'name': 'Current Room Temperature',

                'path': '/heatingCircuits/hc1/roomtemperature'},

 '_state': False,

 '_type': 'sensor',

 '_update_initialized': False}

<bosch_thermostat_client.sensors.Sensor object at 0x7f9b37d863d0>

{'_connector': <bosch_thermostat_client.connectors.http.HttpConnector object at 0x7f9b37d5ca30>,

 '_data': {'heatCurveMin': {'result': {},

                            'type': 'regular',

                            'uri': '/heatingCircuits/hc1/heatCurveMin'}},

 '_extra_message': 'Waiting to fetch data',

 '_main_data': {'id': 'heatCurveMin',

                'name': 'Heat Curve Min',

                'path': '/heatingCircuits/hc1/heatCurveMin'},

 '_state': False,

 '_type': 'sensor',

 '_update_initialized': False}

<bosch_thermostat_client.sensors.Sensor object at 0x7f9b37d86040>

{'_connector': <bosch_thermostat_client.connectors.http.HttpConnector object at 0x7f9b37d5ca30>,

 '_data': {'heatCurveMax': {'result': {},

                            'type': 'regular',

                            'uri': '/heatingCircuits/hc1/heatCurveMax'}},

 '_extra_message': 'Waiting to fetch data',

 '_main_data': {'id': 'heatCurveMax',

                'name': 'Heat Curve Min',

                'path': '/heatingCircuits/hc1/heatCurveMax'},

 '_state': False,

 '_type': 'sensor',

 '_update_initialized': False}

However only heatCurveMin got picked up and added into HA. Although it is giving -1 as value. I don't know if the endpoint is properly supported by the heaters gateway - maybe that can the cause of this. However roomtemperature which is most important for me is being correctly dumped with a correct value to the bosch.json so I assume it should be possible to add and read properly.

from home-assistant-bosch-custom-component.

minovap avatar minovap commented on June 12, 2024

An update on heatCurveMin:

Can't update data. Error: URI /heatingCircuits/hc1/heatCurveMin doesn not exist: 403, message='Forbidden', url=URL('http://192.168.86.47/heatingCircuits/hc1/heatCurveMin')

An odd thing is that the corresponding heatCurveMax is being dumped correctly:

    {
        "id": "/heatingCircuits/hc1/heatCurveMax",
        "type": "floatValue",
        "writeable": 1,
        "recordable": 0,
        "value": 55.0,
        "unitOfMeasure": "C",
        "minValue": 30.0,
        "maxValue": 90.0
    },

from home-assistant-bosch-custom-component.

pszafer avatar pszafer commented on June 12, 2024

@minovap you can add it same as https://github.com/bosch-thermostat/bosch-thermostat-client-python/blob/cf268303880d0c1ba32b69416234a16d1ef69963/bosch_thermostat_client/db/rc300.json#L42-L46

Most compress users don't have roomtemp sensor so I just need check if adding it won't break something for others.

about 403, don't ask me what the reason they are blocking it for you. it's every half a year bosch is blocking something and after another update it is unlocked again...

from home-assistant-bosch-custom-component.

pszafer avatar pszafer commented on June 12, 2024

It's added with 0.9.12.
https://github.com/bosch-thermostat/home-assistant-bosch-custom-component/releases/tag/v0.9.12

from home-assistant-bosch-custom-component.

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.