theneweinstein / thermosmart_component Goto Github PK
View Code? Open in Web Editor NEWCustom Home Assistant compoment for the thermosmart thermostat.
Custom Home Assistant compoment for the thermosmart thermostat.
Hi with the current version I am getting the following error:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 295, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 446, in _async_add_entity
entity.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 297, in async_write_ha_state
self._async_write_ha_state() # type: ignore
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 314, in _async_write_ha_state
attr = self.capability_attributes
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 179, in capability_attributes
ATTR_HVAC_MODES: self.hvac_modes,
File "/config/custom_components/thermosmart/climate.py", line 130, in hvac_modes
if self._client.latest_update['ot']['readable']['Cooling_config']:
KeyError: 'ot'
Obviously the entity is not created..
Is it a coding problem? Or do I need to do something else?
Any ideas?
Grts Michel
Hi,
I was really interested in your plugin for Thermosmart at HA.
Tried to follow up the info. But it looks like Thermosmart is not so fond about giving clientID's and secret passwords anymore. The official statement form the support desk is: "We do not enable the API to end customers anymore." Which leaves us in the end with a beautiful API which is not able to be used anymore, nor requested.
Then I was wondering about how the implementation of Domoticz was. For they do support it through domoticz. The strange thing is, you only need to connect through "username/password" and voila, the connection is set. Currently still using it. Domoticz code is also placed on github (domoticz/hardware/thermosmart.cpp). And I checked how they did it. It is written in c++. And I can read and understand it a bit, but am not programmer to inject it in a decent py.
Do you have knowledge to turn the username/password into a clientid/secret? For as far as I can see your component is the best option for Home Assistant.
I hope you have a way/possibility to read/use the information to make it functional again.
Thanks!
After installation i only see these entities:
Control setpoint------------- Onbekend
Hot water flow rate ------------Onbekend
Hot water temperature----------- Onbekend
Modulation level -------------Onbekend
Return water temperature------------Onbekend
Water pressure-------------Onbekend
No values:
I see this error in the logfile
2022-12-14 21:40:13.541 ERROR (MainThread) [homeassistant.components.climate] Error while setting up thermosmart platform for climate Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/thermosmart/climate.py", line 44, in async_setup_entry thermostat = ThermosmartThermostat(coordinator, unique_id, name) File "/config/custom_components/thermosmart/climate.py", line 90, in __init__ self._attr_hvac_modes = [HVAC_MODE_AUTO, HVAC_MODE_HEAT, HVAC_MODE_COOL] if self.coordinator.data['ot']['readable']['Cooling_config'] else [HVAC_MODE_AUTO, HVAC_MODE_HEAT] KeyError: 'ot'
Hello,
I installed the plugin. It works fine but I get a lot of error notifications in de log.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 403, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.8/site-packages/urllib3/packages/six.py", line 734, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 426, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 421, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.8/http/client.py", line 1347, in getresponse
response.begin()
File "/usr/local/lib/python3.8/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.8/http/client.py", line 276, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Any ideas what this can be?
I Get following error log.
Logger: homeassistant.helpers.entity
Source: custom_components/thermosmart/init.py:130
First occurred: 12:36:10 PM (35 occurrences)
Last logged: 11:22:43 PM
Update for sensor.boiler_control_setpoint fails
Update for sensor.boiler_hot_water_flow_rate fails
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 445, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 440, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.8/http/client.py", line 1347, in getresponse
response.begin()
File "/usr/local/lib/python3.8/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.8/http/client.py", line 276, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 531, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.8/site-packages/urllib3/packages/six.py", line 734, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 445, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 440, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.8/http/client.py", line 1347, in getresponse
response.begin()
File "/usr/local/lib/python3.8/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.8/http/client.py", line 276, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 474, in async_device_update
raise exc
File "/config/custom_components/thermosmart/init.py", line 182, in async_update
await self._device.update()
File "/config/custom_components/thermosmart/init.py", line 130, in update
await self._hass.async_add_executor_job(self.thermosmart.get_thermostat)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.8/site-packages/thermosmart_hass/init.py", line 21, in get_thermostat
result = (self._api.get('/thermostat/' + self.device_id)).json()
File "/usr/local/lib/python3.8/site-packages/thermosmart_hass/thermosmart_api.py", line 65, in get
return self.request('get', path, **kwargs)
File "/usr/local/lib/python3.8/site-packages/thermosmart_hass/thermosmart_api.py", line 48, in request
response = getattr(self._oauth, method)(url, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests_oauthlib/oauth2_session.py", line 515, in request
return super(OAuth2Session, self).request(
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
In Home Assistant 2021.6 the intergration is not loading.
Log message: intergration Thermosmart not found.
no further information
Hi, I updated the plugin to version 0.2. Now only the boiler part is visible. Any idea how to salve this?
Hello,
I would like to know how I can get the sensor values mentioned in the sensor.py file. Currently when adding it to the overview I can only get the thermostat component to work and an entity which only shows current temp and the desired temperature.
Can you help me access these values?
Thanks in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.