Page 6 of 7
Re: Domoticz on synology for evohome
Posted: Friday 02 December 2016 22:08
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
Re: Domoticz on synology for evohome
Posted: Friday 02 December 2016 22:17
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"
Re: Domoticz on synology for evohome
Posted: Friday 02 December 2016 22:21
by josimd
it wooooorrrrrrkkkkkssssssss OMG! Many thanks!!
Re: Domoticz on synology for evohome
Posted: Friday 02 December 2016 22:23
by fantilator
your welcome,
Now enjoy part 2 where you setup the settemp and setmode files
Re: Domoticz on synology for evohome
Posted: Friday 02 December 2016 22:32
by josimd
yes! I'm almost a pro so it should be a piece of cake..
)
Re: Domoticz on synology for evohome
Posted: Saturday 03 December 2016 11:13
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?
Re: Domoticz on synology for evohome
Posted: Sunday 04 December 2016 18:44
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")
Re: Domoticz on synology for evohome
Posted: Sunday 04 December 2016 19:15
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
Re: Domoticz on synology for evohome
Posted: Sunday 04 December 2016 22:20
by fantilator
what does it give when running it through putty?
Re: Domoticz on synology for evohome
Posted: Wednesday 21 December 2016 15:31
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.
Re: Domoticz on synology for evohome
Posted: Friday 17 February 2017 20:32
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
Re: Domoticz on synology for evohome
Posted: Saturday 18 February 2017 11:39
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?
Re: Domoticz on synology for evohome
Posted: Wednesday 22 March 2017 10:55
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
Re: Domoticz on synology for evohome
Posted: Wednesday 22 March 2017 12:46
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.
Re: Domoticz on synology for evohome
Posted: Wednesday 22 March 2017 14:33
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...
Re: Domoticz on synology for evohome
Posted: Wednesday 22 March 2017 17:02
by dejvisss
If is possible I need simply instruction what all I must installafter I install Domoticz to using evohome wifi
Re: Domoticz on synology for evohome
Posted: Thursday 23 March 2017 0:05
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
Re: Domoticz on synology for evohome
Posted: Thursday 23 March 2017 2:37
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
Re: Domoticz on synology for evohome
Posted: Thursday 23 March 2017 9:46
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
Re: Domoticz on synology for evohome
Posted: Thursday 23 March 2017 10:10
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)"