[MyDomoAtHome] Support thread

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

Moderator: leecollings

dextm80
Posts: 117
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

Re: [MyDomoAtHome] Support thread

Post by dextm80 »

hi guys, i've a problem with mdah configuration and imperihome. Local all ok but i don't understand how to do for remote access.
Ngix? https? i try configure https but without luck.

http://192.XXX.X.XX:3002/devices i see all my devices and the server seems ok

i've also problem with apache2 httpd after mdah installation:

Code: Select all

● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: inactive (dead) since mar 2017-12-26 18:36:37 CET; 7min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 5200 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
  Process: 5184 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
 
dic 26 18:36:37 XXX-XXX apache2[5184]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:443
dic 26 18:36:37 XXX-XXX apache2[5184]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:443
dic 26 18:36:37 XXX-XXX apache2[5184]: no listening sockets available, shutting down
dic 26 18:36:37 XXX-XXX apache2[5184]: AH00015: Unable to open logs
dic 26 18:36:37 XXX-XXX apache2[5184]: Action 'start' failed.
dic 26 18:36:37 XXX-XXX apache2[5184]: The Apache error log may have more information.
dic 26 18:36:37 XXX-XXX apache2[5184]:  *
dic 26 18:36:37 XXX-XXX apache2[5200]:  * Stopping Apache httpd web server apache2
dic 26 18:36:37 XXX-XXX apache2[5200]:  *

dic 26 18:36:37 Linux-Server systemd[1]: Started LSB: Apache2 web server.

any suggestion/idea?

thanks
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
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 »

seems apache wants to use port 443 (https) but someone is already listening on it (mdah ?)

if you want to have https, decide which one is going to answer on port 443.

you can do a reverse proxy from apache to mdah, see here: https://httpd.apache.org/docs/2.4/howto ... proxy.html
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
dextm80
Posts: 117
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

Re: [MyDomoAtHome] Support thread

Post by dextm80 »

epierre wrote: Wednesday 27 December 2017 9:13 seems apache wants to use port 443 (https) but someone is already listening on it (mdah ?)

if you want to have https, decide which one is going to answer on port 443.

you can do a reverse proxy from apache to mdah, see here: https://httpd.apache.org/docs/2.4/howto ... proxy.html
And what s the best way? Httpd proxy o nginx proxy?
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
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 »

Will you use the proxy for something else ?

If no, see readme tonuse mdah in https
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
dextm80
Posts: 117
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

Re: [MyDomoAtHome] Support thread

Post by dextm80 »

I want to remote access imperihome...i try with guide without results
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
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 »

from here: https://github.com/empierre/MyDomoAtHome
section under "start in https mode" ?
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
dextm80
Posts: 117
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

Re: [MyDomoAtHome] Support thread

Post by dextm80 »

Yes, i do it ..... but nothing change, not secure connection by my firefox browser. I i connect my.domain.com:443 get 404 page not found, i think i ve a problem with httpd configuration, do you think?
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
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 »

only one process can listen to one port at one given time.

If you says it is mydomoathome in ssl so no nginx nor apache should have the 443 port in its configuration.

If you say it is apache or nginx, so mydomoathome should listen on another port (let's say 3002) and not in ssl, and from nginx/apache do a redirection so when port 443 is called, the request is forwarded to mdah, and when mdah answers it does so to apache/nginx who answers in their turn to the browser
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
dextm80
Posts: 117
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

Re: [MyDomoAtHome] Support thread

Post by dextm80 »

How i can verify what process is using 443 port?
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
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 »

sudo lsof -i tcp:443
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
dextm80
Posts: 117
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

[MyDomoAtHome] Support thread

Post by dextm80 »

Says domoticz

Why? I ven t configured it with secure access
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
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 can't tell you, you can also have https on another port, but some enterprise firewall may block that.

Before I used to run on port 444 for https, and then I added a nginx in front that would protect my synology and other applications running at home.
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
mcwieger
Posts: 107
Joined: Tuesday 08 December 2015 9:59
Target OS: NAS (Synology & others)
Domoticz version: 2020.1
Location: Netherlands
Contact:

Re: [MyDomoAtHome] Support thread

Post by mcwieger »

epierre wrote: Friday 22 December 2017 12:08 @mcwieger since @spuki confirmed, I'll release a version maybe tonight
I updated to 0.2.36 and it has been running for over 2 days now. It looks like it was fixed. Thanks!

Any way to donate to support?
I moved to HomeAssistant. It was fun while it lasted!
dextm80
Posts: 117
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

Re: [MyDomoAtHome] Support thread

Post by dextm80 »

i've addes two zwave wall plug switch , i see in domoticz but not in imperihome, why?
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
Spucki
Posts: 4
Joined: Thursday 08 December 2016 12:55
Target OS: -
Domoticz version:
Contact:

Re: [MyDomoAtHome] Support thread

Post by Spucki »

Reload switches in ImperiHome
dextm80
Posts: 117
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

Re: [MyDomoAtHome] Support thread

Post by dextm80 »

How?

Edit: ok i find it....now it works! thanks!
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
dextm80
Posts: 117
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

Re: [MyDomoAtHome] Support thread

Post by dextm80 »

hi, i've a problem.
Whit new installation i get this error:

192.xxx.100.x:3002/devices

Code: Select all

	
devices	
0	
id	"S00"
name	"Unable to connect to Domoticz"
type	"DevGenericSensor"
room	"Utility"
params	
0	
key	"Value"
value	"http://127.0.0.1:8080/json.htm"
1	
id	"S01"
name	"Please add this gateway in Setup/settings/Local Networks"
type	"DevGenericSensor"
room	"Utility"

192.xxx.100.x:3002

Code: Select all


    AppName: MyDomoAtHome
    MDAH: http://192.xxx.100.x:3002
    Domoticz: http://127.0.0.1:8080/json.htm
    NodeJS: v4.8.7
    Webmanager: EJS
    Renderer: Express

this is my config.json

Code: Select all

{
  "app_name": "MyDomoAtHome",
   "auth": null,
   "domoticz": {
        "ssl": false,
        "host": "127.0.0.1",
        "port": "8888",
        "path": "/",
        "auth": { "username": "admin", "password": "admin" },
   },
  "port": 3002,
  "passcode": ""
}

i try to modify host: 192.xxx.100.x without result, i'd set 8888 port on domoticz.sh

if i put auth: null all gone ok

Where is the error(s)?

thanks
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge
gerardosamara
Posts: 55
Joined: Sunday 23 October 2016 19:49
Target OS: Linux
Domoticz version: 4.10778
Contact:

Re: [MyDomoAtHome] Support thread

Post by gerardosamara »

epierre wrote: Friday 01 September 2017 16:04
gerardosamara wrote: Thursday 03 August 2017 15:44 Hi , Before installing the Imperihome GW MyDomoAtHome in the new stable Domoticz release 8153 on last raspbian jessie , I looked a the related Wiki part

https://www.domoticz.com/wiki/ImperiHome

=> The wiki has to be updated
looks like you reported things in github, is the wiki correct now ?
Hi @epierre,

I take the opportunity of installing Strech+Domoticz on a new RPI 3 to test the updated Wiki for Rpi platform

1) Add RPI3 to "On RASPBIAN (Raspberry PI/PI2), please install first to have a stable nodeJS : "

2) Numbering the chapter to be followed would help ( step by step )

3) This step fails

-------------------------
Installing the software Debian package .deb

wget -qO - http://www.e-nef.com/domoticz/mdah/gpg.key | sudo apt-key add -
sudo vi /etc/apt/sources.list
-------------------

pi@raspberrypi:/ $ wget -qo - http://www.e-nef.com/domoticz/mdah/gpg.key | sudo apt-key add - sudo nano /etc/apt/sources.list

gpg: no valid OpenPGP data found.
gpg: can't open 'sudo': No such file or directory
gpg: can't open 'nano': No such file or directory
gpg: no valid OpenPGP data found.

Is it a known issue ?
Thanks
Domoticz Beta V4.11763 in Debian 10 VM
Domoticz Beta V4.11763 in RPI3
MDAH 0.2.42 + Imperihome Pro V4.3.17
App Android Domoticz Lite V0.2.201
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 »

mcwieger wrote: Tuesday 02 January 2018 10:27
epierre wrote: Friday 22 December 2017 12:08 @mcwieger since @spuki confirmed, I'll release a version maybe tonight
I updated to 0.2.36 and it has been running for over 2 days now. It looks like it was fixed. Thanks!

Any way to donate to support?
thanks ! you have it on the page: https://github.com/empierre/MyDomoAtHome
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 »

@jimmy777 I've deleted full sections of the Imperihome wiki in domoticz linking to github.

@gerardosamara I'll check and modify for your remarks above.
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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest