Domoticz on synology for evohome
Moderator: leecollings
-
- Posts: 61
- Joined: Thursday 25 February 2016 16:30
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Domoticz on synology for evohome
Hello,
Ik have installed domoticz on my synology ds412+ and attached my p1 smart meter to it. After some googling how to get serial to usb get installed i got it worked. And then you want more!
I have an evohome control system with an internet gateway and you migt get it, i saw it was possible to connect my evohome to domoticz so i searched againbut the only things i found was that i have to use python and evohome client. I am not a programmer but i dont want to ruin my synology by scripting directly to my nas.
So my question is what are the best steps to activate evohome in combination with the gateway.
Ik have installed domoticz on my synology ds412+ and attached my p1 smart meter to it. After some googling how to get serial to usb get installed i got it worked. And then you want more!
I have an evohome control system with an internet gateway and you migt get it, i saw it was possible to connect my evohome to domoticz so i searched againbut the only things i found was that i have to use python and evohome client. I am not a programmer but i dont want to ruin my synology by scripting directly to my nas.
So my question is what are the best steps to activate evohome in combination with the gateway.
-
- Posts: 61
- Joined: Thursday 25 February 2016 16:30
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
- Alle
- Posts: 30
- Joined: Friday 26 December 2014 8:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Fryslân boppe, The Netherlands
- Contact:
Re: Domoticz on synology for evohome
I used debian chroot package from the synocommunity to install the evohome scripts on my synology.
Verstuurd vanaf mijn E6653 met Tapatalk
Verstuurd vanaf mijn E6653 met Tapatalk
ESXi/Ubuntu - Z-wave.me USB Stick - Domoticz Beta - EvoHome - Nest Protect - Logitech Media Server - Netatmo Weather Station - Everspring - Aeonlabs
-
- 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
Hi,
I'm not a Synology user, but I believe that from DSM 5.0 onwards it already supports Python, but you may need to install one of the additional Python modules which are available in the Synology Package Center. There are two packages available 'Python Module' and 'Python 3'. I'd suggest installing the 'Python Module' as the Evohome scripts don't need Python 3. Then try following the evohome client install instructions in the 'Scripting for RFG100' section of the Evohome wiki. I've got the Evohome set-up in Domoticz on a windows machine and it's great being able to see the historical temperature data and controlling the system from within Domoticz. Good luck!
Dan
I'm not a Synology user, but I believe that from DSM 5.0 onwards it already supports Python, but you may need to install one of the additional Python modules which are available in the Synology Package Center. There are two packages available 'Python Module' and 'Python 3'. I'd suggest installing the 'Python Module' as the Evohome scripts don't need Python 3. Then try following the evohome client install instructions in the 'Scripting for RFG100' section of the Evohome wiki. I've got the Evohome set-up in Domoticz on a windows machine and it's great being able to see the historical temperature data and controlling the system from within Domoticz. Good luck!
Dan
Windows 7, Raspberry Pi3, Honeywell Evohome Wifi, HGI80 + RFBee(s)
-
- Posts: 61
- Joined: Thursday 25 February 2016 16:30
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Domoticz on synology for evohome
Hi Dan,
I had installed python but as i said i am not familiar with it, but i think i have to do as follow
- enable ssh on synology
- download putty on windows client
- log in in nas with putty
- type python and execute scripts from wiki
Can you confirm and help me with this?
@alle, i tried to install debian chroot but i was unable to start it, but maybe you can help me with the scripts. Before the scripts are executed you have prerequisites, but i dont think i need them because i use domoticz on nas and not on windows.
And where do i have to place the script files? Somewhere on my synology?
I had installed python but as i said i am not familiar with it, but i think i have to do as follow
- enable ssh on synology
- download putty on windows client
- log in in nas with putty
- type python and execute scripts from wiki
Can you confirm and help me with this?
@alle, i tried to install debian chroot but i was unable to start it, but maybe you can help me with the scripts. Before the scripts are executed you have prerequisites, but i dont think i need them because i use domoticz on nas and not on windows.
And where do i have to place the script files? Somewhere on my synology?
-
- Posts: 61
- Joined: Thursday 25 February 2016 16:30
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Domoticz on synology for evohome
Gordonb3,gordonb3 wrote:I thought the wiki was quite complete. I had no issues getting it up and running after following it. With regards to your todo list: you should not need to type 'python' to run your scripts. The only difference with Windows is that Linux will not use the current directory as a (primary) path to search for files that can be executed (but you can use ./ to reference the current directory to run an executable contained inside it) and you must explicitly mark executables.
Hnx for the reply, i agree wiki is complete,but i am getting confused because to me itseemsthat it is based on windows and not o synology. But because my native language isnt english i could be wrong. Thats why i asked about the prerequesites, script placement etc. And yess this is my first project with domoticz and use scripts on synology
-
- Posts: 61
- Joined: Thursday 25 February 2016 16:30
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Domoticz on synology for evohome
Hi GordonB3gordonb3 wrote:I run this on Gentoo Linux, so no the wiki does not specifically apply to Windows. I myself usually feel applications are mostly targeted towards Debian derived systems. Most specifically: Raspbian.
Again thank you for your answer. I can go a bit further now. For my own safety, i have python installed on my synology and installed putty on my windows machine to reach my nas. Based on that, should i execute the steps in the prerequisites? Myself i don't think so, because i already have the correct python version. And as far as i know i don't need the evohome client.
I hope that you can answer this. I have already read a lot of articles but few users do it the way i want it to do, most are raspberry pi or windows.
-
- Posts: 61
- Joined: Thursday 25 February 2016 16:30
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Domoticz on synology for evohome
Thank you very much for your help and information. Tomorrow i will give it a try and start with it. On my windows client i already installed putty and a tool i can see my nas file structure to copy the files to the evohome client install dir.gordonb3 wrote:The scripts need evohome-client and the other dependencies listed (requests, dateutil, simplejson). Without them the scripts will end in error.
I'll keep you informed, i really appreciate your help
-
- Posts: 61
- Joined: Thursday 25 February 2016 16:30
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Domoticz on synology for evohome
I really dont get it. I will try to explain.
I start putty with a connection to my synology which succeed (login with admin)
Rootdir is synology and then i type in python and version 2.7.9 is loaded (synocommunity version is 2.7.11-15)
Then i type in the first command sudo apt-get.... And receive syntaxerroe invalid requests
I know everyone is laughing because it is a stupid mistake i make, but i dont understand why i receive it.
I follow the steps and stuck at step 1
I start putty with a connection to my synology which succeed (login with admin)
Rootdir is synology and then i type in python and version 2.7.9 is loaded (synocommunity version is 2.7.11-15)
Then i type in the first command sudo apt-get.... And receive syntaxerroe invalid requests
I know everyone is laughing because it is a stupid mistake i make, but i dont understand why i receive it.
I follow the steps and stuck at step 1
-
- Posts: 61
- Joined: Thursday 25 February 2016 16:30
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Domoticz on synology for evohome
I was able to install the get-pip.py. There was an write error on two directories but after that it was installed. When i execute the command again it says that all requirements are up to date, so this is working.gordonb3 wrote:Those are not python commands. apt-get is Debian package manager, sudo is the linux variant of "runas /user:administrator".
Stolen from our friendly neighbours at the dutch domoticx forum:
1) Install Python
2) install pip:Using pip you should be able to install all the missing components (some of them may be a part of the synology python package you installed)
- Safe method:
- Download get-pip.py here: https://bootstrap.pypa.io/get-pip.py
- Install pip using this command: python get-pip.py
- Unsafe method:
- Run: curl -k https://raw.githubusercontent.com/pypa/ ... get-pip.py | python
But as you will imagine i'm stuck again. When i use pip install request it says that it can not be found. And also the git clone for the evo client doesnt work.
Mayby you can send me the forum link where i can find my missing answers, but i know now that just following the wiki isnt enough to get it work on synology. And i hope you keep helping me if you have time
-
- Posts: 61
- Joined: Thursday 25 February 2016 16:30
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Domoticz on synology for evohome
I think i have to quit this project. Due to the help i get on this forum, it seems that getting it running on synology is much more different than on other types.
In your last post you mentiond to add a shortcut, but that python directory even doesnt exist. It was a nice try to get it work, but i am stucked to my lack off knowlegde i think.
I hope that there is someone who does get it work on synology and then i get maybe try it again.
If you have suggestions i will try then
Thnx
The dutch guy
In your last post you mentiond to add a shortcut, but that python directory even doesnt exist. It was a nice try to get it work, but i am stucked to my lack off knowlegde i think.
I hope that there is someone who does get it work on synology and then i get maybe try it again.
If you have suggestions i will try then
Thnx
The dutch guy
-
- Posts: 61
- Joined: Thursday 25 February 2016 16:30
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Domoticz on synology for evohome
Due to you keep helping me i tried some things.
Pip i can use now: python <path to pip> install
I have installed git to use for installation of the evohome client, but de command clone isn't right, it says unknown command
What i did it created a simlink for pip and git, but i think that wasn't right, because when i try to python /urs/bin/git i receive the commands for pip
But is there another way to clone the evohomeclient and install it? As you see it goes step by step but still forward
Pip i can use now: python <path to pip> install
I have installed git to use for installation of the evohome client, but de command clone isn't right, it says unknown command
What i did it created a simlink for pip and git, but i think that wasn't right, because when i try to python /urs/bin/git i receive the commands for pip
But is there another way to clone the evohomeclient and install it? As you see it goes step by step but still forward
- Alle
- Posts: 30
- Joined: Friday 26 December 2014 8:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Fryslân boppe, The Netherlands
- Contact:
Re: Domoticz on synology for evohome
I just create a little tutorial:
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)"
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)"
Last edited by Alle on Friday 11 March 2016 19:41, edited 1 time in total.
ESXi/Ubuntu - Z-wave.me USB Stick - Domoticz Beta - EvoHome - Nest Protect - Logitech Media Server - Netatmo Weather Station - Everspring - Aeonlabs
-
- Posts: 61
- Joined: Thursday 25 February 2016 16:30
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Domoticz on synology for evohome
Hello Alle,
i did as you told and at this point its busy with
apt-get update: done
apt-get upgrade: done
pip install requests: done
git clone https://github.com/watchforstock/evohome-client.git: done
pip install ./evohome-client: done
But now i like to place the files in the evohome-client directory but i cant find it anywhere.
I quit for today, but as far as i can see the evohome-client is installed, but where i dont know.
I have created the two files but they suggest to place them in the evohome-client directory, so thats a little problem.
next week i will go on with this and hope to also solve this
Thank you for all your help/support etc. So if you have new tips and tricks how to place en reach the files, i will read it and will try it next week.
The Dutch boy
i did as you told and at this point its busy with
apt-get update: done
apt-get upgrade: done
pip install requests: done
git clone https://github.com/watchforstock/evohome-client.git: done
pip install ./evohome-client: done
But now i like to place the files in the evohome-client directory but i cant find it anywhere.
I quit for today, but as far as i can see the evohome-client is installed, but where i dont know.
I have created the two files but they suggest to place them in the evohome-client directory, so thats a little problem.
next week i will go on with this and hope to also solve this
Thank you for all your help/support etc. So if you have new tips and tricks how to place en reach the files, i will read it and will try it next week.
The Dutch boy
- Alle
- Posts: 30
- Joined: Friday 26 December 2014 8:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Fryslân boppe, The Netherlands
- Contact:
Re: Domoticz on synology for evohome
i forgot a step (cd /home) before you download the evohome-client. The client is now placed in root (cd /evohome-client)
It's better that you move it to /home
It's better that you move it to /home
ESXi/Ubuntu - Z-wave.me USB Stick - Domoticz Beta - EvoHome - Nest Protect - Logitech Media Server - Netatmo Weather Station - Everspring - Aeonlabs
-
- Posts: 61
- Joined: Thursday 25 February 2016 16:30
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Domoticz on synology for evohome
Alle,
i moved the evohome-client directory to /home. But i thought to be smart en copy the 2 config files with winscp, but the debian shell shows other information, so i have to find out how to get those to files in that directory.
Step-by-step i come further
I Found the directory, copied the two files in it
Next step is te make an exe of it, i can do chmod and right away it goes back to the prompt.
Then i do the evo-update.sh init and i receive the error that the file isnt found
So i bit further again, but not still not at the end.
i moved the evohome-client directory to /home. But i thought to be smart en copy the 2 config files with winscp, but the debian shell shows other information, so i have to find out how to get those to files in that directory.
Step-by-step i come further
I Found the directory, copied the two files in it
Next step is te make an exe of it, i can do chmod and right away it goes back to the prompt.
Then i do the evo-update.sh init and i receive the error that the file isnt found
So i bit further again, but not still not at the end.
- Alle
- Posts: 30
- Joined: Friday 26 December 2014 8:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Fryslân boppe, The Netherlands
- Contact:
Re: Domoticz on synology for evohome
Did you use evo-update.sh or ./evo-update.sh
The last command is correct.
The last command is correct.
ESXi/Ubuntu - Z-wave.me USB Stick - Domoticz Beta - EvoHome - Nest Protect - Logitech Media Server - Netatmo Weather Station - Everspring - Aeonlabs
-
- Posts: 61
- Joined: Thursday 25 February 2016 16:30
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Domoticz on synology for evohome
I have tried your suggestions and after moving evohomeclient back to root i could fill in the commands and kind of execute it. But in the attachment you see that i receive an error on json.
Fyi i had to go to the complete path to get the commands working
Fyi i had to go to the complete path to get the commands working
- Attachments
-
- Capture.JPG (108.1 KiB) Viewed 4631 times
-
- Posts: 61
- Joined: Thursday 25 February 2016 16:30
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Domoticz on synology for evohome
Okay thnxgordonb3 wrote:Unlike in windows the current path is not where linux tries to find files that can be executed. You need to specify the path to run from in this case:Code: Select all
./evo-update.sh init
Code: Select all
~/evohome-client/evohomeclient/evo-update.sh init
Code: Select all
/root/evohome-client/evohomeclient/evo-update.sh init
I will try it tomorrow. I saw that the url is mytotalconnect.com. I have no account for that but for mytotalconnectcomfort.com. I tested both but they are different accounts. And i searched for create an account but no luck yet.
First the scripts and then the other stuff
-
- Posts: 61
- Joined: Thursday 25 February 2016 16:30
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Domoticz on synology for evohome
i tried the suggestions but with no luck, it constantly struggles with json. So something is not completely right for my situation
Who is online
Users browsing this forum: No registered users and 1 guest