moustic999 / bosch-thermostat-http-client-python

Python3 asyncio package to talk to Buderus KM200
Apache License 2.0
10 stars 29 forks source link

[HA] Climate component #13

Closed pszafer closed 4 years ago

pszafer commented 5 years ago

Updated my fork of HA and my fork/branch encryption_change. You can test it.

It looks like this: image

image

image

I want to create WIKI which will be our TODO list, so we can split some tasks between us.

moustic999 commented 5 years ago

I can't achieve to start HA properly it continuously fails with :

2019-02-08 19:46:46 INFO (SyncWorker_9) [homeassistant.util.package] Attempting install of pytradfri[async]==6.0.1 2019-02-08 19:46:50 ERROR (SyncWorker_9) [homeassistant.util.package] Unable to install package pytradfri[async]==6.0.1: Command "c:\users\guest\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;file='C:\Users\guest\AppData\Local\Temp\pip-install-pcgzgo7a\DTLSSocket\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\guest\AppData\Local\Temp\pip-record-03ohx28q\install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in C:\Users\guest\AppData\Local\Temp\pip-install-pcgzgo7a\DTLSSocket\ You are using pip version 18.1, however version 19.0.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. 2019-02-08 19:46:50 ERROR (MainThread) [homeassistant.requirements] Not initializing <class 'homeassistant.components.tradfri.config_flow.FlowHandler'> because could not install requirement pytradfri[async]==6.0.1 2019-02-08 19:46:50 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "c:\users\guest\appdata\local\programs\python\python37\lib\site-packages\homeassistant\components\discovery.py", line 143, in new_service_found data=info File "c:\users\guest\appdata\local\programs\python\python37\lib\site-packages\homeassistant\data_entry_flow.py", line 57, in async_init handler, context=context, data=data) File "c:\users\guest\appdata\local\programs\python\python37\lib\site-packages\homeassistant\config_entries.py", line 506, in _async_create_flow self.hass, self._hass_config, handler, component) File "c:\users\guest\appdata\local\programs\python\python37\lib\site-packages\homeassistant\setup.py", line 248, in async_process_deps_reqs raise HomeAssistantError("Could not install all requirements.") homeassistant.exceptions.HomeAssistantError: Could not install all requirements.

originally I'm java developer and Python and git are completely new for me. I tried to install the erroneous library in my venv, but it fail as well.

It is not related to your code I guess; I will try by disconnecting my tradfri gateway

whatever I try, I never see the bosch integration

What do I need to do to see it ?

normally it should appear in integrations isn't it ?


De : Pawel notifications@github.com Envoyé : vendredi 8 février 2019 19:03 À : moustic999/bosch-thermostat-http-client-python Cc : Subscribed Objet : [moustic999/bosch-thermostat-http-client-python] [HA] Climate component (#13)

Updated my fork of HA and my fork/branch encryption_change. You can test it.

It looks like this: [image]https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F690510%2F52496420-8d495d00-2bd3-11e9-9c87-efcc98493d56.png&data=02%7C01%7C%7Cd982bbb8fa1e433f755208d68defbeb3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636852458174672260&sdata=jIfSupx1pIsvEWO9avC6RHiD8o8Q%2FtNDvpW2ODnQg6Y%3D&reserved=0

[image]https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F690510%2F52496400-83275e80-2bd3-11e9-8792-08ded0e55129.png&data=02%7C01%7C%7Cd982bbb8fa1e433f755208d68defbeb3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636852458174682265&sdata=IiaxJaF6w7zyS8BI0bK7bf6466jZ19TrN2RVObmT9vo%3D&reserved=0

[image]https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F690510%2F52496447-9afee280-2bd3-11e9-8e19-0dcc5a2214ab.png&data=02%7C01%7C%7Cd982bbb8fa1e433f755208d68defbeb3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636852458174692276&sdata=ujfFZi6neW%2F6or%2B%2F34x7vgVT6UmQ7N2TAmGTLISBEb4%3D&reserved=0

I want to create WIKI which will be our TODO list, so we can split some tasks between us.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmoustic999%2Fbosch-thermostat-http-client-python%2Fissues%2F13&data=02%7C01%7C%7Cd982bbb8fa1e433f755208d68defbeb3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636852458174702287&sdata=LAR2Oih5e3PLD3tbZJ3euLTqD1A1ZCipP5pb9iaWnIc%3D&reserved=0, or mute the threadhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJaNPyqO9jRykUbcBvxt8TlTOf0qGGejks5vLbv1gaJpZM4aw2nP&data=02%7C01%7C%7Cd982bbb8fa1e433f755208d68defbeb3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636852458174712292&sdata=TdwAwXAXR8jjifi%2B9ub96Rgz6agiLc4a0spA95J13hc%3D&reserved=0.

moustic999 commented 5 years ago

here is the error which seems to be the cause why I don't see the integration :

Error doing job: Exception in callback async_setup..component_loaded(<Event component_loaded[R]>) at c:\users\guest\appdata\local\programs\python\python37\lib\site-packages\homeassistant\components\conversation__init__.py:136

Traceback (most recent call last): File "c:\users\guest\appdata\local\programs\python\python37\lib\asyncio\events.py", line 88, in _run self._context.run(self._callback, *self._args) File "c:\users\guest\appdata\local\programs\python\python37\lib\site-packages\homeassistant\components\conversation__init__.py", line 139, in component_loaded register_utterances(event.data[ATTR_COMPONENT]) KeyError: 'component'


De : Pawel notifications@github.com Envoyé : vendredi 8 février 2019 19:03 À : moustic999/bosch-thermostat-http-client-python Cc : Subscribed Objet : [moustic999/bosch-thermostat-http-client-python] [HA] Climate component (#13)

Updated my fork of HA and my fork/branch encryption_change. You can test it.

It looks like this: [image]https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F690510%2F52496420-8d495d00-2bd3-11e9-9c87-efcc98493d56.png&data=02%7C01%7C%7Cd982bbb8fa1e433f755208d68defbeb3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636852458174672260&sdata=jIfSupx1pIsvEWO9avC6RHiD8o8Q%2FtNDvpW2ODnQg6Y%3D&reserved=0

[image]https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F690510%2F52496400-83275e80-2bd3-11e9-8792-08ded0e55129.png&data=02%7C01%7C%7Cd982bbb8fa1e433f755208d68defbeb3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636852458174682265&sdata=IiaxJaF6w7zyS8BI0bK7bf6466jZ19TrN2RVObmT9vo%3D&reserved=0

[image]https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F690510%2F52496447-9afee280-2bd3-11e9-8e19-0dcc5a2214ab.png&data=02%7C01%7C%7Cd982bbb8fa1e433f755208d68defbeb3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636852458174692276&sdata=ujfFZi6neW%2F6or%2B%2F34x7vgVT6UmQ7N2TAmGTLISBEb4%3D&reserved=0

I want to create WIKI which will be our TODO list, so we can split some tasks between us.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmoustic999%2Fbosch-thermostat-http-client-python%2Fissues%2F13&data=02%7C01%7C%7Cd982bbb8fa1e433f755208d68defbeb3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636852458174702287&sdata=LAR2Oih5e3PLD3tbZJ3euLTqD1A1ZCipP5pb9iaWnIc%3D&reserved=0, or mute the threadhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJaNPyqO9jRykUbcBvxt8TlTOf0qGGejks5vLbv1gaJpZM4aw2nP&data=02%7C01%7C%7Cd982bbb8fa1e433f755208d68defbeb3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636852458174712292&sdata=TdwAwXAXR8jjifi%2B9ub96Rgz6agiLc4a0spA95J13hc%3D&reserved=0.

pszafer commented 5 years ago

Ok, first easiest answer - just run hass and without any config it should show as discovered device in integration. image

Now instructions which work on linux

git clone -b bosch_thermostat --single-branch git@github.com:pszafer/home-assistant.git
cd home-assistant
python3.7 -m venv .
script/setup
ln -s pathtoboshthermostat_lib lib/python3.7/site-packages/bosch_thermostat_http
hass
moustic999 commented 5 years ago

I began from scratch... I understood better how to work with pip and locale lib at least my netdisco is still working :

2019-02-08 20:56:05 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: buderus {'host': '192.168.1.8', 'port': 80, 'hostname': 'V850.local.', 'properties': {'txtvers': '1', 'hwversion': 'iCom_Low_NSC_v1', 'swversion': '04.04.05', 'uuid': '659200286'}}

I fixed the tradfri error : I disconnected my tradfri gateway ;-)


De : Pawel notifications@github.com Envoyé : vendredi 8 février 2019 20:34 À : moustic999/bosch-thermostat-http-client-python Cc : moustic999; Comment Objet : Re: [moustic999/bosch-thermostat-http-client-python] [HA] Climate component (#13)

Ok, first easiest answer - just run hass and without any config it should show as discovered device in integration. [image]https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F690510%2F52501230-24b4ad00-2be0-11e9-9f12-01dc8633cdca.png&data=02%7C01%7C%7Cdfbf9ee380824b9fbfde08d68dfc6e35%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636852512650302814&sdata=GEBI8%2B1DrNv0PPsa1MzQS912dujE2zVa5XKr86XZk14%3D&reserved=0

Now instructions which work on linux

git clone -b bosch_thermostat --single-branch git@github.com:pszafer/home-assistant.git cd home-assistant python3.7 -m venv . script/setup ln -s pathtoboshthermostat_lib lib/python3.7/site-packages/bosch_thermostat_http hass

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmoustic999%2Fbosch-thermostat-http-client-python%2Fissues%2F13%23issuecomment-461919830&data=02%7C01%7C%7Cdfbf9ee380824b9fbfde08d68dfc6e35%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636852512650312813&sdata=ZA3jAA50dBMJFPZavngMDy6RLlum6vMJ57InEyS8Rcs%3D&reserved=0, or mute the threadhttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJaNP3f-FGvhfkargm_Er1eGvKBvNtsvks5vLdE-gaJpZM4aw2nP&data=02%7C01%7C%7Cdfbf9ee380824b9fbfde08d68dfc6e35%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636852512650332835&sdata=BUBEbmrfWZK%2BpMlH8pQhbMrGn5PZBi57pmg0curXu9I%3D&reserved=0.

moustic999 commented 5 years ago

but still no luck

[cid:f1774521-7717-42f5-8eb9-c4682119191f]

How do you enable the auto discovery ? I think I'm missing something


De : Pawel notifications@github.com Envoyé : vendredi 8 février 2019 20:34 À : moustic999/bosch-thermostat-http-client-python Cc : moustic999; Comment Objet : Re: [moustic999/bosch-thermostat-http-client-python] [HA] Climate component (#13)

Ok, first easiest answer - just run hass and without any config it should show as discovered device in integration. [image]https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F690510%2F52501230-24b4ad00-2be0-11e9-9f12-01dc8633cdca.png&data=02%7C01%7C%7Cdfbf9ee380824b9fbfde08d68dfc6e35%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636852512650302814&sdata=GEBI8%2B1DrNv0PPsa1MzQS912dujE2zVa5XKr86XZk14%3D&reserved=0

Now instructions which work on linux

git clone -b bosch_thermostat --single-branch git@github.com:pszafer/home-assistant.git cd home-assistant python3.7 -m venv . script/setup ln -s pathtoboshthermostat_lib lib/python3.7/site-packages/bosch_thermostat_http hass

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmoustic999%2Fbosch-thermostat-http-client-python%2Fissues%2F13%23issuecomment-461919830&data=02%7C01%7C%7Cdfbf9ee380824b9fbfde08d68dfc6e35%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636852512650312813&sdata=ZA3jAA50dBMJFPZavngMDy6RLlum6vMJ57InEyS8Rcs%3D&reserved=0, or mute the threadhttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJaNP3f-FGvhfkargm_Er1eGvKBvNtsvks5vLdE-gaJpZM4aw2nP&data=02%7C01%7C%7Cdfbf9ee380824b9fbfde08d68dfc6e35%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636852512650332835&sdata=BUBEbmrfWZK%2BpMlH8pQhbMrGn5PZBi57pmg0curXu9I%3D&reserved=0.