Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A simple helper library for controlling a Roth Touchline heat pump controller

```py

from pytouchline import PyTouchline
from pytouchlineplus import PyTouchline

py_touchline = PyTouchline()

Expand All @@ -14,4 +14,4 @@ device1.update()
print(device1.get_name())
print(device1.get_current_temperature())
print(device1.get_target_temperature())
```
```
11 changes: 9 additions & 2 deletions pytouchline/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import cchardet as chardet
import xml.etree.ElementTree as ET

__author__ = 'abondoe'
__author__ = 'pilehave'


class PyTouchline(object):
Expand Down Expand Up @@ -48,6 +48,13 @@ def get_number_of_devices(self, ip_address):
response = self._request_and_receive_xml(request)
return self._parse_number_of_devices(response)

def get_hostname(self):
hostname_items = []
hostname_items.append("<i><n>hw.HostName</n></i>")
request = self._get_touchline_request(hostname_items)
response = self._request_and_receive_xml(request)
return self._parse_number_of_devices(response)

def get_status(self):
status_items = []
status_items.append("<i><n>R0.SystemStatus</n></i>")
Expand Down Expand Up @@ -246,4 +253,4 @@ def get_desc(self):
return self._desc

def get_type(self):
return self._type
return self._type
16 changes: 8 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from distutils.core import setup
setup(
name = 'pytouchline',
packages = ['pytouchline'],
version = '0.7',
name = 'pytouchlineplus',
packages = ['pytouchlineplus'],
version = '0.8',
description = 'A Roth Touchline interface library',
author = 'Aksel Bondoe',
author_email = 'aksel.bondoe@gmail.com',
author = 'Mikkel Pilehave Jensen',
author_email = 'pilehave@gmail.com',
license='MIT',
url = 'https://github.com/abondoe/pytouchline',
download_url = 'https://github.com/abondoe/pytouchline/archive/0.7.tar.gz',
url = 'https://github.com/pilehave/pytouchlineplus',
download_url = 'https://github.com/pilehave/pytouchlineplus/archive/0.8.tar.gz',
keywords = ['Roth', 'Touchline', 'Home Assistant', 'hassio', "Heat pump"],
classifiers = [
'Development Status :: 3 - Alpha',
Expand All @@ -17,4 +17,4 @@
'Programming Language :: Python :: 3',
],
install_requires=['httplib2', 'cchardet']
)
)