Domoticz on synology for evohome

For heating/cooling related questions in Domoticz

Moderator: leecollings

fantilator
Posts: 28
Joined: Saturday 12 November 2016 20:52
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Contact:

Re: Domoticz on synology for evohome

Post by fantilator »

You need to fill in thos credits like this.

Code: Select all

#fill in username
usr='your honeywell mail address'
#fill in pw
pw='Your honeywell password'
#fill in Domoticz URL
url='Ip addres van je NAS' 
#fill in Domoticz port
port='8084'
#fill in script root e.g. script:///home/<user>/evohome-client script::///usr/l$
srt='script:///volume1/@appstore/debian-chroot/var/chroottarget/home/evohome-client
fantilator
Posts: 28
Joined: Saturday 12 November 2016 20:52
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Contact:

Re: Domoticz on synology for evohome

Post by fantilator »

Soulplayer wrote:OMG it works... I thougt I already tried to not use the permanent settings. Thank you so much!

Now that settemp works: does setting the mode for the gateway also work on your system?
Yes this also works fine. just put the evo-setmode.sh file in the same folder as the evo-settemp.sh, and dont forget to compile it with "
chmod u+x evo-setmode.sh"
josimd
Posts: 59
Joined: Saturday 09 January 2016 19:47
Target OS: -
Domoticz version:
Contact:

Re: Domoticz on synology for evohome

Post by josimd »

it wooooorrrrrrkkkkkssssssss OMG! Many thanks!!
fantilator
Posts: 28
Joined: Saturday 12 November 2016 20:52
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Contact:

Re: Domoticz on synology for evohome

Post by fantilator »

your welcome,

Now enjoy part 2 where you setup the settemp and setmode files ;)
josimd
Posts: 59
Joined: Saturday 09 January 2016 19:47
Target OS: -
Domoticz version:
Contact:

Re: Domoticz on synology for evohome

Post by josimd »

yes! I'm almost a pro so it should be a piece of cake.. :-))
Soulplayer
Posts: 29
Joined: Saturday 05 November 2016 16:54
Target OS: -
Domoticz version:
Contact:

Re: Domoticz on synology for evohome

Post by Soulplayer »

fantilator wrote:
Soulplayer wrote:OMG it works... I thougt I already tried to not use the permanent settings. Thank you so much!

Now that settemp works: does setting the mode for the gateway also work on your system?
Yes this also works fine. just put the evo-setmode.sh file in the same folder as the evo-settemp.sh, and dont forget to compile it with "
chmod u+x evo-setmode.sh"

Weird, it does not work. In domoticz it gives following error:
2016-12-03 11:12:30.336 Error: Error executing script command (/volume1/@appstore/debian-chroot/var/chroottarget/home/evohome-client/evo-setmode.sh). returned: 256
in putty it gives following error:
Traceback (most recent call last):
File "./evo-setmode.sh", line 31, in <module>
newmode=sys.argv[1]
IndexError: list index out of range
If I change the [1] to [0] it does not give an error but it does not change the values of the controller. Any ideas?
fantilator
Posts: 28
Joined: Saturday 12 November 2016 20:52
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Contact:

Re: Domoticz on synology for evohome

Post by fantilator »

This is my working code.

Code: Select all

from evohomeclient2 import evoconfig
from evohomeclient2 import EvohomeClient
import sys
from datetime import datetime

#connect to evohome web portal @ http://www.mytotalconnect.com
client = EvohomeClient(evoconfig.usr,evoconfig.pw)
status=client.locations[0].status()
tcs=status['gateways'][0]['temperatureControlSystems'][0]
zones=tcs['zones']
currentmode=tcs['systemModeStatus']['mode']

modeuntil=None
if len(sys.argv)>2:
        modeuntil = datetime.strptime(sys.argv[2], '%Y-%m-%dT%H:%M:%S+0000')

newmode=sys.argv[1]
#guess this supports multiple gateways and tcs
if currentmode!=newmode:
        if newmode=="Away":
                client.set_status_away(until=modeuntil)
        elif newmode=="AutoWithEco":
                client.set_status_eco(until=modeuntil)
        elif newmode=="DayOff":
                client.set_status_dayoff(until=modeuntil)
        elif newmode=="Custom":
                client.set_status_custom(until=modeuntil)
        elif newmode=="Auto":
                client.set_status_normal()
        elif newmode=="HeatingOff":
                client.set_status_heatingoff(until=modeuntil)
        open ("/var/tmp/evo-noup.tmp","w")
Soulplayer
Posts: 29
Joined: Saturday 05 November 2016 16:54
Target OS: -
Domoticz version:
Contact:

Re: Domoticz on synology for evohome

Post by Soulplayer »

Tried to use your code. It does not give aan error but after 1min it goes back to the default program. It does not push it to the controller. Pretty weird...


Verzonden vanaf mijn iPhone met Tapatalk
fantilator
Posts: 28
Joined: Saturday 12 November 2016 20:52
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Contact:

Re: Domoticz on synology for evohome

Post by fantilator »

what does it give when running it through putty?
Erwinvos72
Posts: 61
Joined: Thursday 25 February 2016 16:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz on synology for evohome

Post by Erwinvos72 »

Fantilator, you made my day

I started this topic on 25 of Februar 2016 and with much patient of people here i was able to get it work except for the updating part of the temperature en control of the evotouch.

A few days ago my DSM crashed and i had to reinstall the version. Unfortunately that removed all of my packages, including domoticz.
First i wouldn't install debian chroot again because of this package my DSM crashed. But i gave it another try and immediately saw that i ruined my system with hacking within debian.

I just followed wiki and the setup was very easy this time. Everything worked quickly and i didn't need all the strange commands i asked for in the previous posts.

Main reason was to get evohome working again because off your posts that you were able to get the temperature and evotouch working. I followed your instructions and guess, everthing is working.

So thank you very much for this last piece. Now this is working i can go on with get information from my synology. The disk temperature is already up and running, but the CPU and RAM available is more difficult. But mayby i can get that working also.
danika00
Posts: 3
Joined: Friday 17 February 2017 20:05
Target OS: -
Domoticz version:
Contact:

Re: Domoticz on synology for evohome

Post by danika00 »

Dear All,

Can you help me somebody?

I read all forums, and I didnt find solution.

My problem is how to connet the evohome system to domoticz.
I have account in international.mytotalconnectcomfort.com and not mytotalconnectcomfort.com.
I would like use the evohome-client, and this like to connect to https://tccna.honeywell.com/WebAPI/emea/api. But I think is this North America s server. My account is Europe.
What is the Europes server?
How to change?

thanks your supports
danika00
Posts: 3
Joined: Friday 17 February 2017 20:05
Target OS: -
Domoticz version:
Contact:

Re: Domoticz on synology for evohome

Post by danika00 »

Dear Gordon,
Thank you for your information,
I have one more question.

I have this error message.

pi@raspberrypi ~/evohome-client $ python evo-update.sh init
Traceback (most recent call last):
File "evo-update.sh", line 29, in <module>
client = EvohomeClient(evoconfig.usr,evoconfig.pw)
File "/home/pi/evohome-client/evohomeclient2/__init__.py", line 18, in __init__
self._login()
File "/home/pi/evohome-client/evohomeclient2/__init__.py", line 76, in _login
self.installation()
File "/home/pi/evohome-client/evohomeclient2/__init__.py", line 86, in installation
r = requests.get('https://tccna.honeywell.com/WebAPI/emea ... stems=True' % self.account_info['userId'], headers=self.headers)
TypeError: list indices must be integers, not str


Do you know what is the problem?
dejvisss
Posts: 5
Joined: Sunday 19 March 2017 23:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz on synology for evohome

Post by dejvisss »

Can help me anbody install evohome to my synology DS241play, I am not programator, I instaling it 2 weeks and still without result.
If is posible by teamviiever...

Thaaanks
Dejvisss
Erwinvos72
Posts: 61
Joined: Thursday 25 February 2016 16:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz on synology for evohome

Post by Erwinvos72 »

dejvisss wrote:Can help me anbody install evohome to my synology DS241play, I am not programator, I instaling it 2 weeks and still without result.
If is posible by teamviiever...

Thaaanks
Dejvisss
Dejvisss

if you follow the wiki than everything will work out. I am also not a programmer, but with this topic and wiki i got it working.
dejvisss
Posts: 5
Joined: Sunday 19 March 2017 23:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz on synology for evohome

Post by dejvisss »

I still can´t add evohome to domoticz, I have evohome wifi termostat, according wiki is not directly solution for it. Maybe I have not good domotic version.
I have latest version of domotic and latest version of synology...
dejvisss
Posts: 5
Joined: Sunday 19 March 2017 23:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz on synology for evohome

Post by dejvisss »

If is possible I need simply instruction what all I must installafter I install Domoticz to using evohome wifi
DanD
Posts: 159
Joined: Saturday 05 March 2016 9:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: UK
Contact:

Re: Domoticz on synology for evohome

Post by DanD »

Dejviss,

I just want to check a few things to see what might be causing your problem.

Is Domoticz running OK on your Synology?

You'll need to follow the section 3.3 'Scripting for Evohome Wifi Controller' and you'll need to set-up the Python scripts, as described in the wiki. Have you been able to complete all of these steps OK? Did you get any errors when you tried to run evoconfig.py or evo-update.py? Once you've run evoconfig.py successfully you should see your Evohome devices appear in your Domoticz devices list.

If evoconfig doesn't seem to be running OK, another simple test to check whether your Python set-up and Evohome account information is all OK is to try running the following Python script with your Evohome username and password added:

Code: Select all

import requests
import json

USERNAME = 'xxxxxxxx'
PASSWORD = 'xxxxxxxx'

url = 'https://tccna.honeywell.com/WebAPI/api/Session'
postdata = {'Username':USERNAME,'Password':PASSWORD,'ApplicationId':'91db1612-73fd-4500-91b2-e63b069b185c'}
headers = {'content-type':'application/json'}

response = requests.post(url,data=json.dumps(postdata),headers=headers)

print response.content

userData = json.loads(response.content)

userId = userData['userInfo']['userID']
sessionId = userData['sessionId']

url = 'https://tccna.honeywell.com/WebAPI/api/locations?userId=%s&allData=True' % userId

headers['sessionId'] = sessionId

response = requests.get(url,data=json.dumps(postdata),headers=headers)

print response.content
If this runs OK you should get loads of info returned from the Honeywell server containing the details of your Evohome system. If this works OK, then it sounds like the problem is with the Domoticz settings that you've used in the other 2 scripts.

Hope this helps.

Dan
Windows 7, Raspberry Pi3, Honeywell Evohome Wifi, HGI80 + RFBee(s)
dejvisss
Posts: 5
Joined: Sunday 19 March 2017 23:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz on synology for evohome

Post by dejvisss »

Hello dear I have problem with this:

Code: Select all

login as: dejvisss
[email protected]'s password:
dejvisss@NAS-BIALONOVI:~$ sudo apt-get install git python-simplejson python-setuptools python-pip python-dateutil
Password:
sudo: apt-get: command not found
dejvisss@NAS-BIALONOVI:~$ sudo pip install requests
sudo: pip: command not found
dejvisss@NAS-BIALONOVI:~$
maybe help you this:

Code: Select all

login as: admin
[email protected]'s password:
admin@NAS-BIALONOVI:~$ cd /
admin@NAS-BIALONOVI:/$ sudo -i
Password:
root@NAS-BIALONOVI:~# cd /
root@NAS-BIALONOVI:/# ln -s /var/packages/Python/target/usr/bin/pip /usr/bin/
ln: creating symbolic link `/usr/bin/pip': File exists
root@NAS-BIALONOVI:/# find / -name pip
find: /proc/16867/net: Invalid argument
find: /proc/16872/net: Invalid argument
find: /proc/16873/net: Invalid argument
/root/.cache/pip
/usr/bin/pip
/volume1/@appstore/python/bin/pip
/volume1/@appstore/python/lib/python2.7/site-packages/pip
DanD
Posts: 159
Joined: Saturday 05 March 2016 9:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: UK
Contact:

Re: Domoticz on synology for evohome

Post by DanD »

dejviss,

Thanks, that helps a lot to diagnose your problem. You've missed out a few of the steps that are required for installing on a synology as the package installer apt-get doesn't exist, see the post at the end of page 1 in this thread. The wiki just describes the generic steps for Windows and Linux installs.

Dan
Windows 7, Raspberry Pi3, Honeywell Evohome Wifi, HGI80 + RFBee(s)
Erwinvos72
Posts: 61
Joined: Thursday 25 February 2016 16:30
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz on synology for evohome

Post by Erwinvos72 »

This is what he means i think:

--------------------------------------------------

First install the debian chroot package from the synocommunity

ssh to synology:
run: /var/packages/debian-chroot/scripts/start-stop-status chroot

Now you are in debian

Update:
apt-get update
apt-get upgrade

Select your timezone:
dpkg-reconfigure tzdata

Install git and python:
apt-get install git python-simplejson python-setuptools python-pip python-dateutil -y
cd /home

Follow the 'Scripting for RFG100' instructions from the wiki page:
https://www.domoticz.com/wiki/Evohome

Exit from debian-chroot:
exit

Run update script every minute:
- Open Open Control Panel -> Task Scheduler
- Click on Create -> User-defined script
- In General settings give it a name, leave user as root
- Commandline: chroot /volume1/@appstore/debian-chroot/var/chroottarget /home/evohome-client/evo-update.sh
- Click on Schedule tab and set Frequency "Every 1 minute(s)"
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest