Comments (5)
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.
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.
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.
@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.
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)
- unsupported firmware version 04.02.02
- Cannot create a Bosch Debug Scan anymore HOT 6
- Detected that custom integration 'bosch' uses save_json from homeassistant.util.json module. HOT 1
- Error on TC100 - entities not updating HOT 7
- unknown error occurred HOT 3
- TLS issue on init after upgrade to Homeassistant 2024.2.0 HOT 53
- Add ETRV “start calibration” button to the home assistant integration HOT 9
- Total working time is wrong interpreted by HA HOT 2
- Unknown model HOT 9
- Integration wont load after update to HA 2024.2.2 HOT 1
- Integration not loading on startup: Can't find your fw version. HOT 4
- Device is unknown Null HOT 3
- Statistics for the 23rd hour are always missing HOT 8
- Can't install Bosch-Thermostat HOT 3
- Failed to call service bosch/send_custom_put_string. Service call requires responses but caller did not ask for responses
- CT200 Current Set Temp HOT 1
- Using slower stringprep, consider compiling the faster cython/libidn one HOT 1
- Unknown Model HOT 7
- HCM300 energy values to measurements HOT 4
- Bosch CT200 new Firmware v5.00.01 is incompatible HOT 4
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 home-assistant-bosch-custom-component.