Page 31 of 55
Re: [MyDomoAtHome] Support thread
Posted: Wednesday 27 April 2016 21:04
by ahmedadelhosni
epierre wrote:ahmedadelhosni wrote:
At last I am happy to solve the problem
Thanks to your help, I found that it breakss in mdah.js in line 2193 due to error in handling the data variable.
for(var i = 0; i < data.result.length; i++)
data.result.length return : Cannot read property 'length' of undefined
I just did someworkarounds and now the mobile application is working.
Hello,
Can you give me more information where this breaks (I added many lines recently so it is not relevant without your version
Thanks !
emmanuel
Sorry for being late. I was on vacation
The issue was related to "basic Energy Usage support #94" commit in this link
https://github.com/empierre/MyDomoAtHom ... 318648d76a
The error was produced at line 2099 in the following for loop
Code: Select all
for(var i = 0; i < data.result.length; i++)
The error was :
data.result.length return : Cannot read property 'length' of undefined
And as I have mentioned before in my previous reply, it has been fixed in version 0.1.32
The fix is in this commit:
https://github.com/empierre/MyDomoAtHom ... ebf55ea358
Where you added this checking :
Code: Select all
if (typeof data.result !== 'undefined' && data.result !== null) {
That's all

I hope it is clear now what I meant

Thanks
Re: [MyDomoAtHome] Support thread
Posted: Monday 02 May 2016 10:03
by epierre
starfish001 wrote:Hi
Anyone know where the gateway pid file is located? Nothing in /run or /var/run I'd like to monitor with monit
not an easy answer.
I use forever:
https://github.com/foreverjs/forever
sudo -u www-data forever list
should tell you the status. I've not checked where is the pidPath yet.
Re: [MyDomoAtHome] Support thread
Posted: Monday 02 May 2016 13:39
by stuiow
Just recently, i've been missing some switches on imperihome.
They are 2 z-wave ones and a lightwave switch.
Also, never seen them in Imperihome, but i have some doorbells i would like to be added too.
What details do you require to assist with that?
Also, with regards to the Evohome implementation we worked on a couple of months back, it never really worked, but couldnt do much about it as Domoticz is improving it evohome implementation. We could still work on that if you like?
Re: [MyDomoAtHome] Support thread
Posted: Monday 02 May 2016 13:49
by epierre
@stuiow can you send me the /json.htm?type=devices&filter=utility&order=Name for those devices ?
For Evohome this is complicated as there is no match for all, you should see the main evohome device but the two others no for some features do not exist in Imperihome, I opened a ticket on that.
Where you could help would be to define what you expect to do on the IH so I match at the best. e.g. there is no time management for forced mode in IH, having several behavior would mean a multi switch or several switches... does it makes sense ?
Zone
Temp / SetPoint
=> 1 device for Temp
=> 1 device for Thermostat management
Hot Water
=> 1 device for Temp
=> 1 device for On/Off
Main
MultiSwitch to chose between:
Normal/Eco/Away/Day off/Custom/Heating off
Re: [MyDomoAtHome] Support thread
Posted: Monday 02 May 2016 17:00
by stuiow
All what you have said is perfect, makes sense re: Evohome switches.
With regards to the link you want, I've loaded that up and had a look over it, but the devices don't appear on there.
I will need to look into that.
I can get them listed via this url, will that be OK? /json.htm?type=command¶m=getlightswitches
Re: [MyDomoAtHome] Support thread
Posted: Monday 02 May 2016 20:53
by starfish001
epierre wrote:starfish001 wrote:Hi
Anyone know where the gateway pid file is located? Nothing in /run or /var/run I'd like to monitor with monit
not an easy answer.
I use forever:
https://github.com/foreverjs/forever
sudo -u www-data forever list
should tell you the status. I've not checked where is the pidPath yet.
Thanks - ill take a look at this
Re: [MyDomoAtHome] Support thread
Posted: Tuesday 03 May 2016 23:21
by epierre
starfish001 wrote:epierre wrote:starfish001 wrote:Hi
Anyone know where the gateway pid file is located? Nothing in /run or /var/run I'd like to monitor with monit
not an easy answer.
I use forever:
https://github.com/foreverjs/forever
sudo -u www-data forever list
should tell you the status. I've not checked where is the pidPath yet.
Thanks - ill take a look at this
hmmm... strange... list does not bring nothing... will evaluate pm2
Re: [MyDomoAtHome] Support thread
Posted: Tuesday 17 May 2016 23:18
by starfish001
epierre wrote:starfish001 wrote:epierre wrote:
not an easy answer.
I use forever:
https://github.com/foreverjs/forever
sudo -u www-data forever list
should tell you the status. I've not checked where is the pidPath yet.
Thanks - ill take a look at this
hmmm... strange... list does not bring nothing... will evaluate pm2
Thanks - strangely the gateway has stopped working since I posted - no /var/log directory not sure what changed. Anyway I recreated directory and log file and restarted. I guess I might need to add a bash script to recreate on restart as this is a tmpfs
sudo -u www-data forever list
info: Forever processes running
data: uid command script forever pid id logfile uptime
data: [0] tdYE /usr/bin/node /usr/share/mydomoathome/app/mdah.js 31915 3192 0 /var/log/mydomoathome/mdah.log 0:0:6:7.475
Re: [MyDomoAtHome] Support thread
Posted: Thursday 19 May 2016 18:55
by Patrick
Hi
Does the domoticz camera work in Imperihome?
I followed the instructions on the Github page and did a fresh install of MDAH.
Every sensor/switch/etc is loaded correctly into Imperihome, even our camera.
But when I want to add the camerawidget to my dashboard I only can select the Static Camera Widget?
After I exit Edit mode and I press the camerawidget nothing happens???
Am I doing something wrong, or is the domoticz camera not working in Imperihome?
Re: [MyDomoAtHome] Support thread
Posted: Monday 23 May 2016 11:22
by epierre
Patrick wrote:Hi
Does the domoticz camera work in Imperihome?
I followed the instructions on the Github page and did a fresh install of MDAH.
Every sensor/switch/etc is loaded correctly into Imperihome, even our camera.
But when I want to add the camerawidget to my dashboard I only can select the Static Camera Widget?
After I exit Edit mode and I press the camerawidget nothing happens???
Am I doing something wrong, or is the domoticz camera not working in Imperihome?
The camera support I push to Imperihome is the one I get from Domoticz. Use this only if you have a PiCam you cannot use by any other mean.
If you have an evolved camera, Imperihome has an extended support for Cameras, I suggest you use this one.
Re: [MyDomoAtHome] Support thread
Posted: Wednesday 25 May 2016 21:48
by epierre
@all there is an installable Synology package named 0.1.48 downlodable here:
http://www.e-nef.com/domoticz/mdah/
testers welcome, and a big thanks to Jumbotroll !
Re: [MyDomoAtHome] Support thread
Posted: Wednesday 25 May 2016 22:45
by jumbotroll
Hi epierre.
Default port for domoticz on synology is 8084 not 8080
http://domoticz-IP-adress:8084
{"devices":[{"id":"S00","name":"Unable to connect to Domoticz","type":"DevGenericSensor","room":"Utility","params":[{"key":"Value","value":"
http://127.0.0.1:8080/json.htm"}]},{"id":"S01","name":"Please add this gateway in Setup/settings/Local Networks","type":"DevGenericSensor","room":"Utility"}]}
Re: [MyDomoAtHome] Support thread
Posted: Wednesday 25 May 2016 22:53
by epierre
@jumbotroll thanks again, pushing 0.1.49
Re: [MyDomoAtHome] Support thread
Posted: Wednesday 25 May 2016 23:22
by jumbotroll
Great work!
working here on my xperia Z5.
Only 1 thing:
Under SENSORS it appears 2 settings:
MyDomoAtHome 0.1.38 and
New version found v0.1.39
Re: [MyDomoAtHome] Support thread
Posted: Thursday 26 May 2016 12:18
by epierre
jumbotroll wrote:
MyDomoAtHome 0.1.38 and
New version found v0.1.39
yes, this is when people ask me for an automated update package method... What should I do to have those packages automatically included in synology third parties tools ?
Re: [MyDomoAtHome] Support thread
Posted: Thursday 26 May 2016 12:35
by jumbotroll
epierre wrote:jumbotroll wrote:
MyDomoAtHome 0.1.38 and
New version found v0.1.39
yes, this is when people ask me for an automated update package method... What should I do to have those packages automatically included in synology third parties tools ?
On synology, I think the best solution is to have a SPK server like I have for domoticz packages like this :
http://www.jadahl.com/domoticz_beta_6/
When you update with a higher version number you will have a message from synology package center that there is an update.
You can download the spk server here:
https://github.com/jdel/sspks
Here is a test:
http://www.jadahl.com/domoticz_beta_6/?arch=x86
Re: [MyDomoAtHome] Support thread
Posted: Friday 27 May 2016 10:38
by epierre
@jumbotroll some people would find it simpler to have both on the same website, so yours

would that be possible ?
Thanks,
Re: [MyDomoAtHome] Support thread
Posted: Friday 27 May 2016 12:36
by jumbotroll
epierre wrote:@jumbotroll some people would find it simpler to have both on the same website, so yours

would that be possible ?
Thanks,
Of course it is possible , just to speak out when there are updates, so I can put it on my spk server also.
Then I put the available updates on both DSM 5.2 and DSM 6.0 SPK server.
Is it tested on DSM 5.2 ?
MyDomoAtHome for DSM 5.2:
http://www.jadahl.com/domoticz_beta/
MyDomoAtHome for DSM 6.0:
http://www.jadahl.com/domoticz_beta_6/
Re: [MyDomoAtHome] Support thread
Posted: Friday 27 May 2016 14:10
by epierre
jumbotroll wrote:
Of course it is possible , just to speak out when there are updates, so I can put it on my spk server also.
Then I put the available updates on both DSM 5.2 and DSM 6.0 SPK server.
Is it tested on DSM 5.2 ?
I can put it on a ftp server if you like/can to simplify this, or just send you a link to a new version ?
I have only one syno which is now in 6.0 for I follow the editor policy of updates, so I can't test in 5.2 sorry.
Re: [MyDomoAtHome] Support thread
Posted: Friday 27 May 2016 22:23
by Patrick
epierre wrote:Patrick wrote:Hi
Does the domoticz camera work in Imperihome?
I followed the instructions on the Github page and did a fresh install of MDAH.
Every sensor/switch/etc is loaded correctly into Imperihome, even our camera.
But when I want to add the camerawidget to my dashboard I only can select the Static Camera Widget?
After I exit Edit mode and I press the camerawidget nothing happens???
Am I doing something wrong, or is the domoticz camera not working in Imperihome?
The camera support I push to Imperihome is the one I get from Domoticz. Use this only if you have a PiCam you cannot use by any other mean.
If you have an evolved camera, Imperihome has an extended support for Cameras, I suggest you use this one.
Thanks, I'm using the Imperihome camera system now. Works perfect.