Hi, I have the last version, because I have installed it yesterday (Version 0.111.4)
You only need to change the two lines in which ClimateDevice exists for ClimateEntity, and it works without any warning, you must change these lines on climate.py file
i don’t know why but not working on my side. same error always.
Would you please share with me your config files in vaillant folder? I reinstall hassio and get same result below;
“ModuleNotFoundError: No module named ‘custom_components.vaillant.remote’”
Do you copy the script here?
The steps you must do are the following:
1.- Create this folder (you can do it using File Editor add-on)
/config/custom_components/vaillant
2.- Download the py files from github and upload the files on the folder that you have created on step 1
3.- Edit configuration.yaml and add the following lines:
climate:
- platform: vaillant
vaillant:
api_key: na_client_android_sdbg
secret_key: !secret key_vaillant
username: !secret usuario_vaillant
password: !secret password_vaillant
discovery: False
app_version: 1.2.0.2
user_prefix: sdbg
I have the data on the secret.yaml file, the username and password are the ones that you use of your MiGo app on the phone, and the secret key is obtained with the procedures explained on previous comments on this thread.
Hi, I tried to integrate my MiGo with the custom component of pjmaenh.
I have copied the directory vaillant (from pjmaenh github) in /config/custom_components/ directory with its 3 files (init.py, climate.py and const.py). I have other components in that directory like hacs, so it is the right one. I have verified the typo several times.
I have changed ClimateDevice string to ClimateEntity in climate.py file.
I have used this following configuration in configuration.yaml file.
climate:
- platform: vaillant
vaillant:
api_key: na_client_android_sdbg
secret_key: 28d3***********ffeb
username: my username used on android app
password: my psw used on android app
discovery: False
app_version: 1.2.0.2
user_prefix: sdbg
I have used a oneline decompiler and find the api key in a source direct with app_version and api_key as well.
When I restart my HA (raspby) it starts very slowly. Everithing is up to date. I have the last version of HA. I get the message that HA is starting and some components will will not be yet available but the message never desappears.
Some components does start at all.
I have no error message regarding vaillant component like some of you (invalid_client or something else).
Does anyone have an idea where is the problem ?
thanks for your help.
It seems that the config is ok, and the secret key seems to be ok too.
I have some troubles sometimes when I restart the server, and if the thermostat do not load, I open the app on the phone and then I restart HA, and usually it works
Yesterday I had some problems to access the thermostat info even on the phone app.
Vaillant/Bulex is a rebranded netatmo device, they even use the netatmo API and recently, Vaillant bought netatmo. So that’s why
For anyone still having this warning:
ClimateDevice is deprecated, modify VaillantThermostat to extend ClimateEntity
I just merged the PR of @alexbelgium (thanks!) so update/pull the component and this warning should be gone.
!Kenan_Elmas: custom_components.vaillant.remote does not exist, so I have no idea where this is coming from. Most likely you have some error in your configuration.yaml, maybe something like this:
vaillant:
...
remote:
...
Maybe an indentation error?
@pjmaenh It is crazy error that i deleted # added lines (unused code) with notepad++ and it worked. No idea about reason
Thank you all guys,
this thread was helpful … my brand new Vaillant vSMART thermostat is working flawlessly with HA!
Have a nice weekend
Just to tell You that I have solved my problem. It was a rookie mistake.
The problem was because I downloaded the files incorrectly. The files included the html code from the github page…
Thanks for your great job on this component.
Hi @pjmaenh, my heater is using Sanieur Duval MiPro instead of MiGo, I’ve decompiled the android application and I see no na_client_android_sdbg, nor api key nor secret key. It seems that is getting the token on a TLS request. Do you think the api token and secret key could be the same of MiGo?
The api endpoints found are:
https://smart-2.vaillant.com/mobile/api/miPro/
--------------------------------------------------/v4/
http://vr900.vaillant.private/
Could you share with me the MiGo api_key and secret_key if you think its worth to give a try?
[EDITED]
I’ve checked MiGo and the endpoint is api.netatmonet/oauth2/token, not sure if the py script is changing the api endpoint to support vaillant.
Thanks in advance.
Given that the API endpoints are totally different, I am afraid it will not work.
I don’t have a MiPro, so I cannot test it out or develop a modified version I’m afraid… (unless someone want to sponsor me a MiPro ).
I’ll send you the MiGo config in a PM.
Also note that this component is just a Home Assistant wrapper around the pyvaillant library, available at https://github.com/pjmaenh/pyvaillant.
If you want to modify the component yourself to work with the MiPro, start by modifying this library. You don’t need the home-assistant-vaillant component or HA to do so, just python and the pyvaillant library.
Hi,
suddenly I can’t find anymore my vaillant integration. I’m using Home Assistant 0.114.4
In logs I have:
## Log Details (WARNING)
Logger: homeassistant.components.climate
Source: components/climate/__init__.py:553
Integration: Climate ([documentation](https://www.home-assistant.io/integrations/climate), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+climate%22))
First occurred: August 31, 2020, 5:21:36 PM (1 occurrences)
Last logged: August 31, 2020, 5:21:36 PM
ClimateDevice is deprecated, modify VaillantThermostat to extend ClimateEntity
Log Details (ERROR)
Logger: homeassistant.setup
Source: custom_components/vaillant/__init__.py:54
First occurred: August 31, 2020, 5:21:43 PM (1 occurrences)
Last logged: August 31, 2020, 5:21:43 PM
Error during setup of component vaillant
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 61, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/local/lib/python3.8/socket.py", line 918, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
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 381, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 309, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa07117190>: Failed to establish a new connection: [Errno -3] Try again
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 439, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.netatmo.com', port=443): Max retries exceeded with url: /oauth2/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa07117190>: Failed to establish a new connection: [Errno -3] Try again'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 191, in _async_setup_component
result = await task
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/vaillant/__init__.py", line 54, in setup
auth = pyvaillant.ClientAuth(
File "/usr/local/lib/python3.8/site-packages/pyvaillant.py", line 61, in __init__
resp = postRequest(_AUTH_REQ, postParams)
File "/usr/local/lib/python3.8/site-packages/smart_home/__init__.py", line 25, in postRequest
resp = requests.post(url, data=params, timeout=timeout)
File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 119, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.netatmo.com', port=443): Max retries exceeded with url: /oauth2/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa07117190>: Failed to establish a new connection: [Errno -3] Try again'))
## Log Details (ERROR)
Logger: homeassistant.setup
Source: setup.py:258
First occurred: August 31, 2020, 5:21:43 PM (1 occurrences)
Last logged: August 31, 2020, 5:21:43 PM
Unable to prepare setup for platform vaillant.climate: Unable to set up component.
I’ve already merged the latest modification from github but if I try to restart HA, I can’t see any vaillant entity related or any log error.
Hi @pjmaenh,
Please send me in PM API_KEY, SECRET_KEY, APP_VERSION and USER_PREFIX for MiGO app.
Thank You
Hi @pjmaenh,
Could please send me in PM API_KEY, SECRET_KEY, APP_VERSION and USER_PREFIX for MiGO app.
Thank You
Hi @pjmaenh, how i can send to you the <API_KEY>
, <SECRET_KEY>
, <APP_VERSION>
and <USER_PREFIX>
?
I don’t know how send DM.
Can you send me a DM? I will reply to you with the data.
Regards.