Hi Fantilator,
Followed you steps...
from evohomeclient2 import evoconfig
>>> from evohomeclient2 import EvohomeClient
>>> client = EvohomeClient(evoconfig.usr,evoconfig.pw)
>>> fi=client.full_installation()
>>> print fi
{u'locationInfo': {u'city': u'OosXXXe', u'name': u'Home', u'useDaylightSaveSwitching': True, u'country': u'Netherlands', u'locationOwner': {u'username': u'
[email protected]', u'lastname': u'Simdorn ', u'userId': u'1396603', u'firstname': u'JXXX'}, u'streetAddress': u'HXXXringseweg ', u'locationId': u'1660670', u'postcode': u'3233SB', u'locationType': u'Residential', u'timeZone': {u'timeZoneId': u'WEuropeStandardTime', u'currentOffsetMinutes': 60, u'displayName': u'(UTC+01:00) Amsterdam, Berlijn, Bern, Rome, Stockholm, Wenen', u'offsetMinutes': 60, u'supportsDaylightSaving': True}}, u'gateways': [{u'gatewayInfo': {u'gatewayId': u'1529337', u'crc': u'6A47', u'mac': u'00D02D7DC3DF', u'isWiFi': False}, u'temperatureControlSystems': [{u'zones': [{u'name': u'Woonkamer', u'heatSetpointCapabilities': {u'valueResolution': 0.5, u'timingResolution': u'00:10:00', u'maxHeatSetpoint': 35.0, u'minHeatSetpoint': 5.0, u'allowedSetpointModes': [u'PermanentOverride', u'FollowSchedule', u'TemporaryOverride'], u'maxDuration': u'1.00:00:00'}, u'zoneId': u'1844220', u'modelType': u'HeatingZone', u'scheduleCapabilities': {u'timingResolution': u'00:10:00', u'minSwitchpointsPerDay': 1, u'maxSwitchpointsPerDay': 6, u'setpointValueResolution': 0.5}, u'zoneType': u'ZoneTemperatureControl'}], u'systemId': u'1844221', u'modelType': u'EvoTouch', u'allowedSystemModes': [{u'systemMode': u'Auto', u'canBePermanent': True, u'canBeTemporary': False}, {u'systemMode': u'AutoWithEco', u'timingMode': u'Duration', u'canBeTemporary': True, u'canBePermanent': True, u'timingResolution': u'01:00:00', u'maxDuration': u'1.00:00:00'}, {u'systemMode': u'AutoWithReset', u'canBePermanent': True, u'canBeTemporary': False}, {u'systemMode': u'Away', u'timingMode': u'Period', u'canBeTemporary': True, u'canBePermanent': True, u'timingResolution': u'1.00:00:00', u'maxDuration': u'99.00:00:00'}, {u'systemMode': u'DayOff', u'timingMode': u'Period', u'canBeTemporary': True, u'canBePermanent': True, u'timingResolution': u'1.00:00:00', u'maxDuration': u'99.00:00:00'},
root@iSIM_NAS:/volume1/@appstore/debian-chroot/var/chroottarget/home/evohome-client/evohomeclient2# python
Python 2.7.12 (default, Jul 27 2016, 05:41:41)
[GCC 4.9.3 20150311 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import evoconfig
>>> import requests
>>> r=requests.get("http://%s:%s/json.htm?type=hardware" % (evoconfig.url,evoconfig.port))
>>> print r.text
{
"result" : [
{
"Address" : "",
"DataTimeout" : 0,
"Enabled" : "true",
"Extra" : "",
"Mode1" : 0,
"Mode2" : 0,
"Mode3" : 0,
"Mode4" : 0,
"Mode5" : 0,
"Mode6" : 0,
"Name" : "Dummy",
"Password" : "",
"Port" : 1,
"SerialPort" : "1",
"Type" : 15,
"Username" : "",
"idx" : "3"
},
{
"Address" : "",
"DataTimeout" : 0,
"Enabled" : "true",
"Extra" : "",
"Mode1" : 0,
"Mode2" : 0,
"Mode3" : 0,
"Mode4" : 0,
"Mode5" : 0,
"Mode6" : 0,
"Name" : "Alarm",
"Password" : "",
"Port" : 1,
"SerialPort" : "1",
"Type" : 15,
"Username" : "",
"idx" : "4"
},
{
"Address" : "",
"DataTimeout" : 0,
"Enabled" : "true",
"Extra" : "",
"Mode1" : 83,
"Mode2" : 9,
"Mode3" : 8,
"Mode4" : 12,
"Mode5" : 47,
"Mode6" : 0,
"Name" : "RFXCOM",
"Password" : "",
>>>
/volume1/@appstore/debian-chroot/var/chroottarget/home/evohome-client/evohomeclient2# ./evo-update.sh init
Traceback (most recent call last):
File "./evo-update.sh", line 28, in <module>
client = EvohomeClient(evoconfig.usr,evoconfig.pw)
File "/usr/lib/python2.7/site-packages/evohomeclient2/__init__.py", line 18, in __init__
self._login()
File "/usr/lib/python2.7/site-packages/evohomeclient2/__init__.py", line 69, in _login
self.access_token = self._convert(r.text)['access_token']
KeyError: 'access_token'
evoconfig.py file: (I use no username + password to login to domoticz..)
#fill in username
usr=''
#fill in pw
pw=''
#fill in Domoticz URL