[MyDomoAtHome] Support thread

Client tools or tools that can connect with Domoticz. Tools for Windows, iOS, Android, Linux etc.

Moderator: leecollings

ahmedadelhosni
Posts: 11
Joined: Wednesday 30 December 2015 9:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [MyDomoAtHome] Support thread

Post by ahmedadelhosni »

epierre wrote:
ahmedadelhosni wrote: At last I am happy to solve the problem :D
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 :D

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 :D I hope it is clear now what I meant :D Thanks
User avatar
epierre
Posts: 522
Joined: Wednesday 05 March 2014 13:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Support thread

Post 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.
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
stuiow
Posts: 139
Joined: Saturday 18 April 2015 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.6857
Location: Isle of Wight, United Kingdom.
Contact:

Re: [MyDomoAtHome] Support thread

Post 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?
Now setup on a RPI3.
Also using Evohome HGI80, RFXTRX433E and a Aeotec Gen5 stick. Mainly a Gen5 Z-Wave system.
My weather (Davis vantage Pro2) data is obtained by weatherunderground
Now collecting rtl_433 data from Apollo Ultrasonic meter
User avatar
epierre
Posts: 522
Joined: Wednesday 05 March 2014 13:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Support thread

Post 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
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
stuiow
Posts: 139
Joined: Saturday 18 April 2015 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.6857
Location: Isle of Wight, United Kingdom.
Contact:

Re: [MyDomoAtHome] Support thread

Post 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&param=getlightswitches
Now setup on a RPI3.
Also using Evohome HGI80, RFXTRX433E and a Aeotec Gen5 stick. Mainly a Gen5 Z-Wave system.
My weather (Davis vantage Pro2) data is obtained by weatherunderground
Now collecting rtl_433 data from Apollo Ultrasonic meter
starfish001
Posts: 17
Joined: Sunday 28 February 2016 23:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [MyDomoAtHome] Support thread

Post 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
User avatar
epierre
Posts: 522
Joined: Wednesday 05 March 2014 13:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Support thread

Post 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
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
starfish001
Posts: 17
Joined: Sunday 28 February 2016 23:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [MyDomoAtHome] Support thread

Post 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
Patrick
Posts: 27
Joined: Friday 01 August 2014 23:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: The Netherlands
Contact:

Re: [MyDomoAtHome] Support thread

Post 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?
User avatar
epierre
Posts: 522
Joined: Wednesday 05 March 2014 13:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Support thread

Post 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.
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
User avatar
epierre
Posts: 522
Joined: Wednesday 05 March 2014 13:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Support thread

Post 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 !
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
User avatar
jumbotroll
Posts: 793
Joined: Tuesday 13 January 2015 14:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: [MyDomoAtHome] Support thread

Post 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"}]}
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
User avatar
epierre
Posts: 522
Joined: Wednesday 05 March 2014 13:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Support thread

Post by epierre »

@jumbotroll thanks again, pushing 0.1.49
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
User avatar
jumbotroll
Posts: 793
Joined: Tuesday 13 January 2015 14:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: [MyDomoAtHome] Support thread

Post 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
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
User avatar
epierre
Posts: 522
Joined: Wednesday 05 March 2014 13:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Support thread

Post 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 ?
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
User avatar
jumbotroll
Posts: 793
Joined: Tuesday 13 January 2015 14:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: [MyDomoAtHome] Support thread

Post 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
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
User avatar
epierre
Posts: 522
Joined: Wednesday 05 March 2014 13:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Support thread

Post by epierre »

@jumbotroll some people would find it simpler to have both on the same website, so yours ;-) would that be possible ?

Thanks,
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
User avatar
jumbotroll
Posts: 793
Joined: Tuesday 13 January 2015 14:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: [MyDomoAtHome] Support thread

Post 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/
If you like the work I do for synology and domoticz, I appreciate a donation.
https://paypal.me/Jumbotroll
Regards
Jumbotroll
http://www.jadahl.com
User avatar
epierre
Posts: 522
Joined: Wednesday 05 March 2014 13:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: [MyDomoAtHome] Support thread

Post 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.
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
Patrick
Posts: 27
Joined: Friday 01 August 2014 23:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: The Netherlands
Contact:

Re: [MyDomoAtHome] Support thread

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest