muchasuerte / home-assistant Goto Github PK
View Code? Open in Web Editor NEWHome Assistant Configuration
Home Assistant Configuration
Hallo,i
I've updated Hassio to new version. Now, when I try to verify the configuration I get this message:
Platform error climate.besmart - cannot import name 'ClimateDevice' from 'homeassistant.components.climate' (/usr/src/homeassistant/homeassistant/components/climate/init.py)
maybe something has changed into libraries.
How can I fix it?
thank you
I don't know since when, but now if i try to change from lovelace to MANUAL it suddenly revert back to AUTO.
also If i change the target temp from the "circle" UI in lovelace it works, instead if i change the temp from the inner menu it says "fallita chiamata al servizio climate/set_temperature.
Any chance to have you working on it?
Let me know if I can help somehow
Hi there,
not an issue, more like a PR...
I used to create a sensor tracking while the boiler flame is burning, since the climate component changed your code i'm not able to do that again.
I suppose that:
self._heating_state = data.get('heating', '') == '1'
store the information but i cannot find it in the exported properties. There's a way to access this information in HA or do i need some code change in your component?
Those files contains not only Besmart configuration but also You other sensors and integrations. Can You split them so only besmart related code will be here? It will be easier to setup Your component for newbies like me.
I am on 0.95.4 version.
I created a dir
/home/homeassistant/.homeassistant/custom_components/Besmart
with files:
manifest.json
init.py
climate.py
manifest.json is:
{
"domain": "besmart",
"name": "Besmart",
"documentation": "https://github.com/muchasuerte/home-assistant/tree/master/custom_components/besmart",
"dependencies": [],
"codeowners": ["@royduin"],
"requirements": []
}
in my configuration.yaml:
climate:
- platform: Besmart
name: Caldaia
username: myuser
password: mypass
room: myroom
scan_interval: 10
But I get:
Platform not found: climate.Besmart
py scripts return errors and do not retrieve (nor send) any data from / to besmart thermostat.
2018-09-05 00:20:02 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/service.py", line 226, in _handle_service_platform_call
await func(entity, data)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/climate/init.py", line 679, in async_service_temperature_set
await entity.async_set_temperature(**kwargs)
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/climate/besmart.py", line 310, in set_temperature
self._setRoomTemp(temperature)
File "/config/custom_components/climate/besmart.py", line 163, in _setRoomTemp
thModel = self._roomData.get('thModel')
AttributeError: 'NoneType' object has no attribute 'get'
HA version 0.99.2.
I get:
2019-09-28 12:48:07 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 266, in async_update_ha_state
self._async_write_ha_state()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 308, in _async_write_ha_state
attr.update(self.device_state_attributes or {})
File "/home/homeassistant/.homeassistant/custom_components/Besmart/climate.py", line 366, in device_state_attributes
'season_mode': self.SEASON_BESMART_TO_HA.get(self._season)
AttributeError: 'Thermostat' object has no attribute '_season'
In my configuration.yaml I have:
climate:
- platform: Besmart
name: Caldaia
username: myName
password: MyPass
room:myRoom
scan_interval: 10
Thanks!
Hi, it's me again.
Upgrading HA to later than 0.89 the custom component doesn't work anymore.
I suppose something changed in the climate base component.
The log reports:
og Details (ERROR)
Wed Mar 27 2019 02:23:40 GMT+0100 (Ora standard dell’Europa centrale)
Error loading custom_components.climate.besmart. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/loader.py", line 166, in _load_file
module = importlib.import_module(path)
File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/config/custom_components/climate/besmart.py", line 21, in
from homeassistant.components.climate import (ClimateDevice,
ImportError: cannot import name 'SUPPORT_TARGET_TEMPERATURE' from 'homeassistant.components.climate' (/usr/local/lib/python3.7/site-packages/homeassistant/components/climate/init.py)
any plan to fix it? let me know if i can help somehow
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.