Its works but i cant change stat on the Roth system it sends it but get nothing in return.
It just keep going back to the Unknown
Where do i find the file “init.py” you are whriting about. i have opend 30 different “init.py” but none of them has the line h = httplib2.Http(“.cache”) in it.
Would like to contribute, but I don’t know much about Python. But, if we at least could decide on what is missing to the Touchline component, maybe we could coorporate on getting this project moving on?
What I think is missing, is at least the operation mode, meaning the six modes:
Normal
Night
Holiday
Pro I
Pro II
Pro III
… and the option to change between them. Editing the programs from HA would probably be to much work and to little benefit in daily use.
Would also be nice to display min_temp and max_temp when you click a thermostate - setting them would be over the top, but I think that is quite complicated to do?
Ok, so I did some work on the component, most time was spend with setting up the virtual env in Ubuntu, as I use VirtualBox to run my VM. In the end I managed to get it all set up correctly (bridging on a wireless NIC is a apparantly a problem in VirtualBox!)
This is where I am right now, I have enabled the switching between different modes, when saving the current mode it actually maps out to a weekend program and an operation mode, but I think it is easier to just have one select-option with all the options in one.
Ooops… need to change “Vacation” to “Holiday” (and think about translating stuff)
I only have it locally for now, as I am still testing it out. But I have linked to a zipped version of “touchline[.]py” that should work out of the box if you replace the old one (rename the old one and keep it for backup)
Been waiting for this component so thank you so much
Anyway I get this error when I enable the component:
Error while setting up platform touchline
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 189, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/components/climate/touchline.py", line 32, in setup_platform
number_of_devices = int(py_touchline.get_number_of_devices(host))
File "/usr/lib/python3.6/site-packages/pytouchline/__init__.py", line 47, in get_number_of_devices
response = self._request_and_receive_xml(request)
File "/usr/lib/python3.6/site-packages/pytouchline/__init__.py", line 120, in _request_and_receive_xml
headers=self._header
File "/usr/lib/python3.6/site-packages/httplib2/__init__.py", line 1176, in request
(scheme, authority, request_uri, defrag_uri) = urlnorm(uri)
File "/usr/lib/python3.6/site-packages/httplib2/__init__.py", line 148, in urlnorm
raise RelativeURIError("Only absolute URIs are allowed. uri = %s" % uri)
httplib2.RelativeURIError: Only absolute URIs are allowed. uri = 192.168.1.183/cgi-bin/ILRReadValues.cgi