pdw-mb / tsmart_ha Goto Github PK
View Code? Open in Web Editor NEWSupport for Tesla T-Smart thermostats in Home Assistant
Support for Tesla T-Smart thermostats in Home Assistant
Some times the temperature value kept not updated to long time. Recently it was showing 34°c, but actually on the Tesla app it is 18°c.
The only thing can refresh it, is by pressing reload on the Tesla device settings. It was happening once a month approximately, but now it is every single day.
Core
2023.12.3
Supervisor
2023.12.0
Operating System
11.2
Frontend
20231208.2
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'name_by_user'
2023-08-05 20:19:50.896 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up t_smart platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 370, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
device = dev_reg.async_get(self.hass).async_get_or_create(
Logger: homeassistant.components.binary_sensor
Source: helpers/entity_platform.py:619
Integration: Binary Sensor (documentation, issues)
First occurred: 20:19:50 (2 occurrences)
Last logged: 20:19:50
Error adding entities for domain binary_sensor with platform t_smart
Error while setting up t_smart platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
device = dev_reg.async_get(self.hass).async_get_or_create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'name_by_user'
Home Assistant 2023.8.1 (also happened in 2023.8.0)
T Smart firmware 1.9.96
My HA environment sits in a different subnet to my smart home devices, and so the broadcast approach won't detect the device. Would be good to have a fallback option to enter an IP address?
Would really like a binary sensor to show when the relay is on, ie heating to enable me to create a virtual power sensor.
This is available in the 3rd party add-on and there is also a power entity, this would also be nice but not necessary as I can create it with Powercalc.
Thanks
I can see two current temperature sensors - one called ‘Low’, the other ‘High’
In the Tsmart app, the High temp reading is used for the current water temperature. This is the one the thermostat seems to use to control the relay.
In the HA integration, it’s the Low temp reading.
Is there a way of switching this round, so it’s consistent? Have I missed something in the config?
Thanks
Hi,
I run my HA instance and IOT network in separate VLANs, HA also runs in an isolated Docker container as such, the automated discovery for this integration does not work for me.
Would it be possible to add the facility to manually add the IP of my T-Smart device as a fallback?
Getting this in the logs after updating to 2024.2
Logger: homeassistant.components.climate
Source: components/climate/init.py:354
Integration: Climate (documentation, issues)
First occurred: 12:54:08 pm (1 occurrences)
Last logged: 12:54:08 pm
Entity None (<class 'custom_components.t_smart.climate.TSmartClimateEntity'>) implements HVACMode(s): off, heat and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/pdw-mb/tsmart_ha/issues
Current beta has this issue:
`Logger: homeassistant.components.climate
Source: helpers/entity_platform.py:619
Integration: Climate (documentation, issues)
First occurred: 09:05:01 (2 occurrences)
Last logged: 09:05:01
Error adding entities for domain climate with platform t_smart
Error while setting up t_smart platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
device = dev_reg.async_get(self.hass).async_get_or_create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'name_by_user'
`
Logger: homeassistant.components.binary_sensor
Source: helpers/entity_platform.py:619
Integration: Binary Sensor (documentation, issues)
First occurred: 09:05:01 (2 occurrences)
Last logged: 09:05:01
Error adding entities for domain binary_sensor with platform t_smart
Error while setting up t_smart platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
device = dev_reg.async_get(self.hass).async_get_or_create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'name_by_user'
Wondered if this error is common to anyone else using the integration:
"Unexpected error fetching t_smart-6B64E6 data: ValueError('35 is not a valid TSmartMode')"
Happening a lot as it's top of my Sentry error frequency list.
Feature Request.
Can you add the current temperature as a sensor?
My intent would be to use this data point to graph temp over time, so I can evaluate general loss and a proxy for water usage.
HA would be able to log and graph but a sensor entity would need to be created.
I'm seeing the following in the HA logs on my system:
WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.t_smart.climate.TSmartClimateEntity'>) implements HVACMode(s): off, heat and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/pdw-mb/tsmart_ha/issues
Home Assistant OS 11.5
Home Assistant Core 2024.2.1
First - thanks for building on the BritKat MQTT solution for TSmart and enabling a simpler Python & HACS enabled integration. When I used the MQTT original I was able to pick up a numeric power attribute and use it in a Riemann Sum Integral helper for my Engergy dashboard. Your new integration doesn't seem to expose that power value, unless I've just missed it somewhere? Do you plan to add something to your system as I assume this is there in the TSmart API?
Errors following update to HomeAssistant 2023.8 I'm getting the errors
Logger: homeassistant.components.binary_sensor
Source: helpers/entity_platform.py:619
Integration: Binary sensor (documentation, issues)
First occurred: 11:02:01 AM (2 occurrences)
Last logged: 11:02:01 AM
Error adding entities for domain binary_sensor with platform t_smart
Error while setting up t_smart platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
device = dev_reg.async_get(self.hass).async_get_or_create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'name_by_user'
and
Logger: homeassistant.components.climate
Source: helpers/entity_platform.py:619
Integration: Climate (documentation, issues)
First occurred: 11:02:01 AM (2 occurrences)
Last logged: 11:02:01 AM
Error adding entities for domain climate with platform t_smart
Error while setting up t_smart platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
device = dev_reg.async_get(self.hass).async_get_or_create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'name_by_user'
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.