Page 3 of 7

Re: Domoticz on synology for evohome

Posted: Friday 18 March 2016 22:54
by Erwinvos72
gordonb3 wrote:No need to delete the hardware (okay... you already did)

No need to recreate the scripts - just run the command from my previous post on each of them to clear the carriage return characters inside them. There is no official Windows tool that will create text files that are compatible with Linux/Mac line ending. Some third party tools will do it though (e.g. UltraEdit).
Okay, not much work to do it again. Think i have some time this weekend :D
En before i start the scripts i will 'repair' them

Re: Domoticz on synology for evohome

Posted: Monday 21 March 2016 19:06
by Erwinvos72
Hello Gordon and Alle. I have used the scripts provider, used chmod and recreated the devices in synology. I then tried to start evo-update.sh but again it only works with python . I then tried in task scheduler to start a test script with sh and that worked.

But then i did the same with evo-update but no luck.

Could it be something with the chmod that the sh files arent a executable?

The test script also was a simple sh without modified.

I hope u can help me

Re: Domoticz on synology for evohome

Posted: Monday 21 March 2016 19:35
by Alle
Been offline for a few days.. I will send you my email.

Re: Domoticz on synology for evohome

Posted: Wednesday 23 March 2016 13:42
by Erwinvos72
Hi Allen en Gordon,

i have seen that the ^M isn't removed with the command supplied.
So i have a windows tool now that does the trick, and i will try it again with those files

Then i will try it again. Keep you guys informed.

Re: Domoticz on synology for evohome

Posted: Wednesday 23 March 2016 18:10
by Erwinvos72
The synchronization is Working. It was the ^M what causes the problem.
So now every minute it is update.

And now there is only one thing to solve. When i change the temperature on domoticz after a minute it is set back to the original
I looked at the evotouch which is also created and i saw that it is looking voor de set-evomode as i a correct. But in the .py file i pointed to a wrong directory.
I changed it and the path changed. But it says that it has to begin with script:// but in the .py script it is ///
And it isn't update so i think there is still something wrong.

But almost there.
Thanks

Re: Domoticz on synology for evohome

Posted: Friday 25 March 2016 7:44
by Erwinvos72
Anyone?

Re: Domoticz on synology for evohome

Posted: Friday 25 March 2016 10:32
by Erwinvos72
Hi Gordon,

thnx for your reply, you mean /json.htm?type=setused&idx=<idx>&setpoint=<setpoint>&mode=<mode>&used=true ?

i tried it but i received an error 'exit 127 on setused'
Think it is my lack of knowledge.

I understood that Alle had all working on his synology and he offered assistance via teamviewer. So i send hem an email and hope we can arrange a meetign and he can solve these last issues.

@Alle, i send you an email, i hope we can arrange a teamviewer session.

Re: Domoticz on synology for evohome

Posted: Saturday 26 March 2016 22:24
by mschut
I might say something quite stupid, but is the Domoticz Package an option?

http://www.jadahl.com/

Re: Domoticz on synology for evohome

Posted: Sunday 27 March 2016 12:23
by mschut
I am using the HGI-80, that is working with the package. So that was my context. Good luck then!

Re: Domoticz on synology for evohome

Posted: Tuesday 29 March 2016 20:23
by Erwinvos72
Hi guys,

Have been offline for few days so nothing news under the sun.
I'll make an appointment with alle and then come back with the results

Re: Domoticz on synology for evohome

Posted: Thursday 15 September 2016 11:40
by Erwinvos72
Hello everyone,

i had rested my synology domoticz in combination with evohome for a period, but now i want to get the last pieces to get to work.

I see al my zones in domoticz and i have a scheduled task in my synology which updates every minute, which works good
Now i am still not able to change the temperature of the zones. Ik can change it and i see it, but after a minute (my schedule) it is set back to my default value from my evohome.
Also my evotouch is not working. It is not updated, from the moment the device was added.

I had some troubles to get it to work, so maybe something on the road i have made a mistake or forgot something.

Can anyone help me to get this solved?

Re: Domoticz on synology for evohome

Posted: Friday 16 September 2016 13:31
by Erwinvos72
Gordon,

Do you mean this part 'Updating the evohome controller mode using the JSON API' and 'updating a setpoint using the JSON API' ?
Where do i implement these commands? Do i have to put them in one of the scripts above?

Re: Domoticz on synology for evohome

Posted: Friday 04 November 2016 22:56
by dutch64
Hello, I've been reading this topic thoroughly and I've managed to set up my evohome wifi for 80% (I run domoticz on a Synology NAS)
The part where i struggle also is the settemp (setmode not even possible I believe so far)
It shows my zones and the temps in it, and it shows "Evohome Touch" which does not update and which i cannot do much with but that might be by design.But i thought here I should be able to do setmode I guess? Or is the setmode meant for events?
Anyhow, like the TS, when i set a temp override, during the update it is set back to it's earlier value, like it won't update to the website.
Did i make a mistake somewhere? I believe i followed the wiki exactly and also the hints and tips in this topic. Any help would be much appreciated and if needed more details, please tell me and i would be happy to supply them of course.
Thanks in advance
Martin
PS, I'm running latest beta of domoticz and as far as I know all the latest versions of scripts etc.

Re: Domoticz on synology for evohome

Posted: Saturday 05 November 2016 14:28
by dutch64
Hurray! Looks like i got it working now. :D

I will write later today what i did to make it work, just in case someone else might run into the same problems.

One thing which i did not manage to implement is the alternative script of Gordon with the until routine in it. I do get an error on line 142 saying keyerror: u'unknown'
I tried to install pytz and i think it went ok but maybe there is a problem?

Re: Domoticz on synology for evohome

Posted: Saturday 05 November 2016 16:37
by dutch64
There are a few things which i changed to make it work, maybe some were not related to this problem but i will mention it anyhow to be complete.
First of all, there is a difference regarding the root user password in systems with DSM 5.x versus DSM 6.x. In 5 the root password is the same as the admin password, however, in 6 you will have to login as admin and then do sudo -i to get root access.

Anyhow, first i followed the little tutorial of user Alle on the first page of this topic, after that the wiki page. Since i work from a windows pc i followed then the tip from gordonb3 in this topic to remove the ^M with the line of code he suggested, works perfectly.

However, still not possible to set a different temp or away action or anything, after a minute it all defaults back to original values.

I then remembered gordonb3 was wondering why to use chroot for the schedule. So i started playing with that and yes, without chroot-ing , the command in the scheduler also works fine after adjusting the location in the command of course, so i left it without chroot.
Still not working but then i noticed in the domoticz log some error entries that it could not find the settemp script. That made sense i think since no more chroot-ing, the path was now slightly different, so i adjusted the script location in evoconfig.py and then finally it worked!!!

Thanks a lot all the users here whose help and hints and tips brought me to the solution!

There are a few minor things left to solve but for now it works well.
I would also really love to use the alternative evo-update script of gordonb3 but for some reason i cannot manage to get it to work, well, maybe tomorrow i will spend some more time on that.

Re: Domoticz on synology for evohome

Posted: Saturday 05 November 2016 16:57
by Soulplayer
Hello,

Good that you found a solution. Could you however post the content + location of your config file (without pw ofcourse ^^). Perhaps also you task content? I'm trying to do the same that you did but it is not working for me...

temperature is updating but evotouch is still offline and I can't change the temperature

Thanks,

Soul

Update: I'm connecting trough the wifi gateway.
Update 2: I tried to use ./evo-setmode.sh Away and it gives following error:
"Exception: More than one location available"

I have 2 locations in my account. Could that be the reason nothing but temperaturereadings works?

Re: Domoticz on synology for evohome

Posted: Saturday 05 November 2016 17:02
by mschut
Just curious. Connecting my Evohome through the HGI80 results in an temporarily working solution. After a certain time it stops communication. I do not seem to be the only one with thus issue. Connecting through the script as referred to in this thread, does that lead to a stable situation?

Verstuurd vanaf mijn SM-G920F met Tapatalk

Re: Domoticz on synology for evohome

Posted: Saturday 05 November 2016 19:01
by dutch64
mschut wrote:Just curious. Connecting my Evohome through the HGI80 results in an temporarily working solution. After a certain time it stops communication. I do not seem to be the only one with thus issue. Connecting through the script as referred to in this thread, does that lead to a stable situation?
Hi, do you mean stops communicating with the honeywell server? That's no issue here so far, it is running since yesterday and the reading of temps etc has been without any trouble.

Re: Domoticz on synology for evohome

Posted: Saturday 05 November 2016 19:19
by dutch64
Soulplayer wrote:Hello,

Good that you found a solution. Could you however post the content + location of your config file (without pw ofcourse ^^). Perhaps also you task content? I'm trying to do the same that you did but it is not working for me...

temperature is updating but evotouch is still offline and I can't change the temperature

Thanks,

Soul

Update: I'm connecting trough the wifi gateway.
Update 2: I tried to use ./evo-setmode.sh Away and it gives following error:
"Exception: More than one location available"

I have 2 locations in my account. Could that be the reason nothing but temperaturereadings works?
that i don't know since i have only one location. But in Domoticz, in your Temperature tab, can you use the "set" button on one of the zones and set the temperature you want? And of course, it should stay there and not being set back to the previous value after an update

Anyhow: the config script (don't mind the timezone part, it is for an alternative script, also, the path might seem a bit unusual, maybe i will change it one day)

Code: Select all

#fill in Domoticz URL
url='127.0.0.1'
#fill in Domoticz port
port='8080'
#fill in script root e.g. script:///home/<user>/evohome-client script::///usr/local/bin etc
srt='script:///volume1/@appstore/debian-chroot/var/chroottarget/home/evohome-client'
#fill in your timezone
timezone='Europe/Amsterdam'
and for the task scheduler, run it as root and every minute:

Code: Select all

/volume1/@appstore/debian-chroot/var/chroottarget/home/evohome-client/evo-update.sh
make sure no spaces in there.

Hope this helps, let me know if you like to know more

Re: Domoticz on synology for evohome

Posted: Saturday 05 November 2016 19:59
by Soulplayer
I think it has something to do with my multiple locations:
2016-11-05 19:56:36.289 Executing script: /volume1/@appstore/debian-chroot/var/chroottarget/home/evohome-client/evo-settemp.sh
2016-11-05 19:56:39.949 Error: Error executing script command (/volume1/@appstore/debian-chroot/var/chroottarget/home/evohome-client/evo-settemp.sh). returned: 256
When i run ./evo-settemp.sh
Traceback (most recent call last):
File "./evo-settemp.sh", line 28, in <module>
client._get_single_heating_system().zones_by_id[sys.argv[1]]._set_heat_setpoint({"HeatSetpointValue":0.0 if len(sys.argv)<4 else float(sys.argv[3]),"SetpointMode":int(sys.argv[2]),"TimeUntil":until})
File "/home/evohome-client/evohomeclient2/__init__.py", line 35, in _get_single_heating_system
raise Exception("More than one location available")
Exception: More than one location available
Anybody got it working with 2 systems?