[MyDomoAtHome] Support thread

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

Moderator: leecollings

Eternity
Posts: 63
Joined: Saturday 06 December 2014 16:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: [MyDomoAtHome] Support thread

Post by Eternity »

Ignore
Synology DS218+
Homey controller
Z-Wave stuff (Fibaro / Aeotec / NEO Coolcam)
Zigbee stuff (Aqara)
HUE lights
Logitech Harmony Ultimate + Hub
IP camera's
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: [MyDomoAtHome] Support thread

Post by EdwinK »

Searched through the posts here, but it looks like this can't be installed on Synology D413j (armv5).
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
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 »

EdwinK wrote: Friday 29 September 2017 16:52 Searched through the posts here, but it looks like this can't be installed on Synology D413j (armv5).
are you on DSM5 ? then use(not my latest but should work):

https://e-nef.com/domoticz/mdah/node-my ... 0.1.56.spk

If you have only node in v1.0 this will not work till synology does a node version for you.
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
Ady92100
Posts: 24
Joined: Thursday 22 January 2015 10:58
Target OS: NAS (Synology & others)
Domoticz version: >V3.6796
Location: Fr
Contact:

Re: [MyDomoAtHome] Support thread

Post by Ady92100 »

Hello

I've tried to install Mdah for a DS212.
Due to request to install nodejs-V4( not available for DS212), I install Mdah on a PI 2 as a gateway for Dz installed on the DS212.
Does a DS212 version of Mdah exist ?


A DZ (test version) with several devices is installed on the PI, besides Mdah.
With Mdah i've only access to the PI's devices and not to the DS212's devices managed by DZ on the DS212.

in the log I found this

Code: Select all

{"level":"warn","message":"basic configuration not found in /etc/mydomoathome/config.json, defaulting","timestamp":"2017-10-05T20:47:26.371Z"}
{"level":"warn","message":"domoticz access configuration not found in /etc/mydomoathome/config.json, defaulting","timestamp":"2017-10-05T20:47:26.431Z"}
{"level":"info","message":"Domoticz server: http://127.0.0.1:8080/json.htm","timestamp":"2017-10-05T20:47:26.589Z"}
in config.json the configuration is that one

Code: Select all

"app_name": "MyDomoAtHome",
   "auth": null,
   "domoticz": {
        "ssl": false,
        "host": "192.168.1.xx",
        "port": "8084",
        "path": "/",
        "auth": null,
   },
  "port": 3002,
  "passcode": " "
}
I understand that Mdah for whatever reason is unable to read the config.json file and uses default parameter (localhost = Pi) and therefore the Pi's devices.

How to solve this issue ?
for me it's not a login isssue, Mdah simply do not use my config.json file located in /etc/mydomoathome
Where to start to solve this?

Thanks for your help.
Regards
Synology DS212 + RFXTrx433 + AEon Stick S2
Oregon - Thgr122Nx / Chacon - module 1000w - détecteur de fumée 34131 / OWL -CM180 / Greenwave Multiprise
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 »

Ady92100 wrote: Friday 06 October 2017 19:31 Hello

I've tried to install Mdah for a DS212.
Due to request to install nodejs-V4( not available for DS212), I install Mdah on a PI 2 as a gateway for Dz installed on the DS212.
Does a DS212 version of Mdah exist ?
I can make one, but I can't verify the node version you have, and only a version >=0.12 works...
Ady92100 wrote: Friday 06 October 2017 19:31 A DZ (test version) with several devices is installed on the PI, besides Mdah.
With Mdah i've only access to the PI's devices and not to the DS212's devices managed by DZ on the DS212.

in the log I found this

Code: Select all

{"level":"warn","message":"basic configuration not found in /etc/mydomoathome/config.json, defaulting","timestamp":"2017-10-05T20:47:26.371Z"}
{"level":"warn","message":"domoticz access configuration not found in /etc/mydomoathome/config.json, defaulting","timestamp":"2017-10-05T20:47:26.431Z"}
{"level":"info","message":"Domoticz server: http://127.0.0.1:8080/json.htm","timestamp":"2017-10-05T20:47:26.589Z"}
I understand that Mdah for whatever reason is unable to read the config.json file and uses default parameter (localhost = Pi) and therefore the Pi's devices.

How to solve this issue ?
for me it's not a login isssue, Mdah simply do not use my config.json file located in /etc/mydomoathome
Where to start to solve this?
check that /etc/mydomoathome is readable by the user is is launched as ( do a 'ps aux|grep node' ), same for config.json
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
Ady92100
Posts: 24
Joined: Thursday 22 January 2015 10:58
Target OS: NAS (Synology & others)
Domoticz version: >V3.6796
Location: Fr
Contact:

Re: [MyDomoAtHome] Support thread

Post by Ady92100 »

Hello

Thanks for your answer
for DS212, unfortunatly I use V0.10, so it won't work.

The result of 'ps aux | grep node'

Code: Select all

pi@raspberrypi:~$ ps aux|grep node
www-data 12252  0.0  3.1 119004 13928 ?        Sl   oct.05   0:12 node /usr/local/bin/forever --minUptime 5000 --spinSleepTime 2000 --max-old-space-size=128 -a -l /var/log/mydomoathome/mdah.log /usr/share/mydomoathome/app/mdah.js
www-data 12261  0.0  5.9 128588 26372 ?        Sl   oct.05   0:21 /usr/bin/node /usr/share/mydomoathome/app/mdah.js
pi       19352  0.0  0.4   4292  1916 pts/0    S+   21:38   0:00 grep node
pi@raspberrypi:~$ ps aux|grep config.json
pi       19357  0.0  0.4   4292  1972 pts/0    S+   21:38   0:00 grep config.json
and
The result of 'ps aux | grep config.json'

Code: Select all

pi@raspberrypi:~$ ps aux|grep config.json
pi       19357  0.0  0.4   4292  1972 pts/0    S+   21:38   0:00 grep config.json
does it help ?
Regards
Synology DS212 + RFXTrx433 + AEon Stick S2
Oregon - Thgr122Nx / Chacon - module 1000w - détecteur de fumée 34131 / OWL -CM180 / Greenwave Multiprise
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 »

I would say do a :
chmod a+rx /etc/mydomoathome
chmod a+rx /etc/mydomoathome/config.json
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
Ady92100
Posts: 24
Joined: Thursday 22 January 2015 10:58
Target OS: NAS (Synology & others)
Domoticz version: >V3.6796
Location: Fr
Contact:

Re: [MyDomoAtHome] Support thread

Post by Ady92100 »

I did it. I still have the same problem.
I noticed inthe log a parsing issue :

Code: Select all

{"level":"error","message":"Global conf parsing issue !","timestamp":"2017-10-06T20:57:38.205Z"}
{"level":"error","timestamp":"2017-10-06T20:57:38.600Z"}
{"level":"error","message":"Global conf load issue !","timestamp":"2017-10-06T20:57:38.808Z"}
{"level":"error","timestamp":"2017-10-06T20:57:38.854Z"}
{"level":"warn","message":"basic configuration not found in /etc/mydomoathome/config.json, defaulting","timestamp":"2017-10-06T20:57:38.972Z"}
{"level":"warn","message":"domoticz access configuration not found in /etc/mydomoathome/config.json, defaulting","timestamp":"2017-10-06T20:57:39.041Z"}
{"level":"info","message":"Domoticz server: http://127.0.0.1:8080/json.htm","timestamp":"2017-10-06T20:57:39.205Z"}
{"level":"info","message":"Node version: 4.2.2","timestamp":"2017-10-06T20:57:39.228Z"}
{"level":"info","message":"MDAH version: MyDomoAtHome 0.2.26","timestamp":"2017-10-06T20:57:39.249Z"}
{"level":"info","message":"OS version: Linux linux 4.9.24+","timestamp":"2017-10-06T20:57:39.272Z"}
{"level":"info","message":"Hostname: raspberrypi 192.168.1.41 in /var/www /usr/share/mydomoathome","timestamp":"2017-10-06T20:57:39.332Z"}
{"level":"info","message":"MDAH port: 3002","timestamp":"2017-10-06T20:57:39.682Z"}
{"level":"info","message":"Refreshing version cache: v0.2.26","timestamp":"2017-10-06T20:57:43.152Z"}
Synology DS212 + RFXTrx433 + AEon Stick S2
Oregon - Thgr122Nx / Chacon - module 1000w - détecteur de fumée 34131 / OWL -CM180 / Greenwave Multiprise
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 »

yes, no comma before a closing parenthesis

"auth": null, => "auth": null
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 »

Hi All,

In the latest version you have support for Farenheight temperature ( imperial mesure, not international).
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
febalci
Posts: 331
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: [MyDomoAtHome] Support thread

Post by febalci »

Version 0.2.27 gives referenceerror: tempmode not defined; and exits in synology package. Couldnt started it.
Ady92100
Posts: 24
Joined: Thursday 22 January 2015 10:58
Target OS: NAS (Synology & others)
Domoticz version: >V3.6796
Location: Fr
Contact:

Re: [MyDomoAtHome] Support thread

Post by Ady92100 »

Hello epierre

Thanks for the explanation, it works now
My config.json was a copy of the "easydomoticz" https://easydomoticz.com/imperihome-no ... on-nodejs/ post. I will send a request for improvement to patrice.
Thanks
Synology DS212 + RFXTrx433 + AEon Stick S2
Oregon - Thgr122Nx / Chacon - module 1000w - détecteur de fumée 34131 / OWL -CM180 / Greenwave Multiprise
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 »

@febalci strange, latest is 0.2.29 and without the tag it work here.

try adding
"tempmode": "C",

just after app_name in /etc/mydomoathome/config.json
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
febalci
Posts: 331
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: [MyDomoAtHome] Support thread

Post by febalci »

Hmm, where can i find config.json in a synology package install? /etc/mydomoathome folder doesn't exist.
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 »

febalci wrote: Saturday 07 October 2017 21:19 Hmm, where can i find config.json in a synology package install? /etc/mydomoathome folder doesn't exist.
Maybe /var/packages/MyDomoAtHome/etc
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 »

Hello,

just manually installed 0.2.29 opn my DS216j without any issue.

in case you have an issue, access your synology as admin, create /etc/mydomoathome and in it a config.json just as in the config.json section in:

https://github.com/empierre/MyDomoAtHome

or try as @jumbotroll said ;-)
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 »

tried this one unsuccessfully: /var/packages/MyDomoAtHome/etc

this one works:
access your synology as admin, sudo to create /etc/mydomoathome and in it a config.json
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
febalci
Posts: 331
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: [MyDomoAtHome] Support thread

Post by febalci »

Thanks epierre, that solved the problem.
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 »

@febalci which synology version are you running on ? on my DSM6 on DS216j I did not had the issue.

looking back
Version 0.2.27 gives referenceerror: tempmode not defined; and exits in synology package. Couldnt started it.
looks more a 0.2.27 version issue, you should move to 0.2.29
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
febalci
Posts: 331
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: [MyDomoAtHome] Support thread

Post by febalci »

I was already moved to 0.2.29. Had same problem again. Then uninstalled mydomoathome.spk and reinstalled it. Same problem. Didnot had any problem with 0.2.26. creating the folder and config.json solved it. Synology DS916+ with latest 6.2 dsm.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests