Page 12 of 55

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 07 October 2015 14:26
by thebeetleuk
being an idiot!!

domo_path: "http://172.0.0.1:8080"!!! should be domo_path: "http://127.0.0.1:8080"

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 07 October 2015 14:31
by epierre
thebeetleuk wrote:Hi epierre, yes ran that and then the update which seems to have resolved some issues.

now mi stuck with the devices page. double checked the production.yml to make sure correct (see below) but it cant seem to communicate with domoticz. :cry:
pi@domoticzpi ~/domoticz/MyDomoAtHome $ more production.yml
log: 'error'
startup_info: 0
show_errors: 0
domo_path: "http://172.0.0.1:8080"
volumio_path: ""
appname: "MyDomoAtHome REST Gateway"
charset: "UTF-8"
Are both on the same machine ? Warning you have put 172 and not 127 in the local loop ip...

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 07 October 2015 14:32
by thebeetleuk
OK so looks like im moving forward....

when I go to http://192.168.0.101:3001/devices

I get
{"devices":[{"params":[{"unit":"","value":"http://127.0.0.1:8080","graphable":"false","key":"Value"}],"name":"Unable to connect to Domoticz","type":"DevGenericSensor","id":"S00"},{"params":[{"unit":"","value":"","graphable":"false","key":"Value"}],"name":"Please add this gateway in Setup/settings/Local Networks","type":"DevGenericSensor","id":"S01"}]}
Thoughts? am I missing something in the config somewhere?

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 07 October 2015 14:37
by thebeetleuk
got it... I have a password set in Domoticz.

I had the following which I assumed would work:
Local Networks (no username/password): 192.168.0.*; 127.*

Changed to the following with success and I now see the devices :)
Local Networks (no username/password): 192.168.0.*; 127.0.0.*

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 07 October 2015 14:39
by epierre
on the command line try

curl http://192.168.0.101:8080/json.htm?type ... order=Name
curl http://127.0.0.1:8080/json.htm?type=dev ... order=Name

if both fails, please add in domoticz configuration the right network address to allow access without authentification

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 07 October 2015 15:11
by Doler
@epierre:
Thanks for a good job on repairing the energy device. Knowing that a major change at Domoticz caused the problems with these devices, I guessed I had to be patient for a solution.
This morning I checked if there was a mdah-update and yes. The update started to run and I thought it would never end. After a reboot I checked at Imperihome but there were no devices. Panic!? I decided to run the update again and to my surprise it added some more, don't know if this was by accident or not. But after that everything is running fine and the energy devices are showing their values again. So again, thanks very much for what I guess was hard work.
One minor question: are the values for the energy devices rounded to integer values?

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 07 October 2015 15:29
by epierre
Doler wrote:@epierre:
Thanks for a good job on repairing the energy device. Knowing that a major change at Domoticz caused the problems with these devices, I guessed I had to be patient for a solution.
This morning I checked if there was a mdah-update and yes. The update started to run and I thought it would never end. After a reboot I checked at Imperihome but there were no devices. Panic!? I decided to run the update again and to my surprise it added some more, don't know if this was by accident or not. But after that everything is running fine and the energy devices are showing their values again. So again, thanks very much for what I guess was hard work.
One minor question: are the values for the energy devices rounded to integer values?
Hello,

Sorry I didn't publish here, but I had a contributor (I thank him !) who helped me finish the thing yesterday evening/night... we had an evolution on Domoticz and Imperihome, so either the device could not be seen or the daily usage was missing...

The update is a bit long on RPI for I thought I would go faster to Dancer2 but some bugs are around, and I may deactivate this in the update till it is solved.

I've not checked for rounded values but that could be Imperihome too that round them.

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 07 October 2015 19:14
by DRuw
Hi epierre,
can you look at my comment on page 10 o this thread?
somehow I have the temperature sensors that are going to weather, switches are now going to switches but is there any way to sort them manually :?:

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 07 October 2015 20:05
by Doler
epierre wrote:
Doler wrote:
epierre wrote:
is that a push-on or push-off button in domoticz ? then this is normal, I restested this yesterday
No, it's a regular On/Off switch. I tried changing to another type and changing it back but that didn't help. When changed to a push-on I see indeed the same behaviour except when it's an On/Off switch it shows this behaviour only when On. Other switches behave normal, so I've only one weird switch.
ok so it is something different, if I have your database, what is the device in question so I can have a look ?

thanks,
I discovered the probable cause of the strange behaviour. Earlier on I had no problems with the specific switch. When discussing the behaviour of scenes and groups I created a scene just to test. Now it appears that this scene got the same Idx as the switch which is likely to be the cause of the problems. I justified this by deleting the scene after which the strange behaviour of the switch is gone. I think Domoticz differentiates by the Unit which is different for the switch (1) and for the scene (none). Something to explore further?

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 07 October 2015 22:42
by epierre
Doler wrote: I discovered the probable cause of the strange behaviour. Earlier on I had no problems with the specific switch. When discussing the behaviour of scenes and groups I created a scene just to test. Now it appears that this scene got the same Idx as the switch which is likely to be the cause of the problems. I justified this by deleting the scene after which the strange behaviour of the switch is gone. I think Domoticz differentiates by the Unit which is different for the switch (1) and for the scene (none). Something to explore further?
Interresting, I've noted that to be investigated here: https://github.com/empierre/MyDomoAtHome/issues/36

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 07 October 2015 22:47
by epierre
DRuw wrote:Hi epierre,
can you look at my comment on page 10 o this thread?
somehow I have the temperature sensors that are going to weather, switches are now going to switches but is there any way to sort them manually :?:
ok seen, I've pushed a correction, tell me if this is right now,

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 07 October 2015 23:02
by epierre
joshimosh wrote:@epierre:
Sorry for bugging you, but may I ask you to give an ETA for a fix of the missing electricity counters ?

Thank you and all the best
Josh
@joshimosh there's been correction but I don't know if it corresponds to your issue, please log something here : https://github.com/empierre/MyDomoAtHome/issues if it is not fine, for I may lose some issues when there are too many posts going on :oops:

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 07 October 2015 23:15
by DRuw
epierre wrote:
DRuw wrote:Hi epierre,
can you look at my comment on page 10 o this thread?
somehow I have the temperature sensors that are going to weather, switches are now going to switches but is there any way to sort them manually :?:
ok seen, I've pushed a correction, tell me if this is right now,
Hi epierre,
What do I need to update? Nothing seems to have changed..
Is there any way to change things manually btw?

Re: [MyDomoAtHome] Support thread

Posted: Wednesday 07 October 2015 23:27
by epierre
DRuw wrote:
epierre wrote:
DRuw wrote:Hi epierre,
can you look at my comment on page 10 o this thread?
somehow I have the temperature sensors that are going to weather, switches are now going to switches but is there any way to sort them manually :?:
ok seen, I've pushed a correction, tell me if this is right now,
Hi epierre,
What do I need to update? Nothing seems to have changed..
Is there any way to change things manually btw?
run ./update-mdah.sh

and in imperihome force reload devices

Re: [MyDomoAtHome] Support thread

Posted: Thursday 08 October 2015 7:48
by DRuw
No Idea what has changed but now the service does not seem to start...
even if I try to reload, this shows up:
pi@raspberrypi ~/domoticz/MyDomoAtHome $ sudo service MyDomoAtHome.sh reload
[....] Reloading plack server: MyDomoAtHomestart-stop-daemon: warning: failed to kill 1201: No such process
start-stop-daemon: warning: failed to kill 1201: No such process
failed!
(force)start/stop does have any effect as well...

help :(

Re: [MyDomoAtHome] Support thread

Posted: Thursday 08 October 2015 8:00
by joshimosh
epierre wrote:
joshimosh wrote:@epierre:
Sorry for bugging you, but may I ask you to give an ETA for a fix of the missing electricity counters ?

Thank you and all the best
Josh
@joshimosh there's been correction but I don't know if it corresponds to your issue, please log something here : https://github.com/empierre/MyDomoAtHome/issues if it is not fine, for I may lose some issues when there are too many posts going on :oops:
Thank you for your help.
I am on travel now and have only limited access to the internet. When I am back home next week, I will check and report back.

Thanks a lot for all the efforts you are putting in !

Cheers
Josh

Re: [MyDomoAtHome] Support thread

Posted: Thursday 08 October 2015 9:27
by epierre
DRuw wrote:No Idea what has changed but now the service does not seem to start...
even if I try to reload, this shows up:
pi@raspberrypi ~/domoticz/MyDomoAtHome $ sudo service MyDomoAtHome.sh reload
[....] Reloading plack server: MyDomoAtHomestart-stop-daemon: warning: failed to kill 1201: No such process
start-stop-daemon: warning: failed to kill 1201: No such process
failed!
(force)start/stop does have any effect as well...

help :(
For the recognized service list:
service --status-all

check if a starman runs: ps ax|grep starman and kill the process.

try:

chkconfig –level 2345 domoticz.sh on
service domoticz start


chkconfig –add MyDomoAtHome.sh
chkconfig –level 2345 MyDomoAtHome.sh on
service MyDomoAtHome.sh start

Re: [MyDomoAtHome] Support thread

Posted: Thursday 08 October 2015 18:32
by DRuw
epierre wrote:
DRuw wrote:No Idea what has changed but now the service does not seem to start...
even if I try to reload, this shows up:
pi@raspberrypi ~/domoticz/MyDomoAtHome $ sudo service MyDomoAtHome.sh reload
[....] Reloading plack server: MyDomoAtHomestart-stop-daemon: warning: failed to kill 1201: No such process
start-stop-daemon: warning: failed to kill 1201: No such process
failed!
(force)start/stop does have any effect as well...

help :(
For the recognized service list:
service --status-all

check if a starman runs: ps ax|grep starman and kill the process.

try:

chkconfig –level 2345 domoticz.sh on
service domoticz start


chkconfig –add MyDomoAtHome.sh
chkconfig –level 2345 MyDomoAtHome.sh on
service MyDomoAtHome.sh start

Okidoki, did I mention I was a Linux NooB? :lol:
Recognized serive list: I understand but there is no "status" that can show me if it is running or not (like the domoticz.sh status command).
Not that it matters but that was wat I meant.
hitting the starman commend shows this:
pi@raspberrypi ~/domoticz/MyDomoAtHome $ ps ax|grep starman
9817 pts/0 S+ 0:00 grep --color=auto starman
whatever it means... :o
Now what exactly do you want me to do?

Re: [MyDomoAtHome] Support thread

Posted: Thursday 08 October 2015 22:14
by epierre
DRuw wrote: Okidoki, did I mention I was a Linux NooB? :lol:
Recognized serive list: I understand but there is no "status" that can show me if it is running or not (like the domoticz.sh status command).
Not that it matters but that was wat I meant.
hitting the starman commend shows this:
pi@raspberrypi ~/domoticz/MyDomoAtHome $ ps ax|grep starman
9817 pts/0 S+ 0:00 grep --color=auto starman
whatever it means... :o
Now what exactly do you want me to do?
sorry, I have different levels of request I don't ask people how good or bad they are I just try to help :D

here it means that there is no process running so you can restart it !

of course you can query the status: sudo service MyDomoAtHome.sh status

now you can restart: sudo service MyDomoAtHome.sh start

Re: [MyDomoAtHome] Support thread

Posted: Thursday 08 October 2015 22:38
by DRuw
pi@raspberrypi ~/domoticz/MyDomoAtHome $ sudo service MyDomoAtHome.sh status
Usage: /etc/init.d/MyDomoAtHome {start|force-start|stop|force-stop|reload|restart|force-reload}
pi@raspberrypi ~/domoticz/MyDomoAtHome $ sudo service MyDomoAtHome.sh start
[ ok ] Starting plack server: MyDomoAtHome.
pi@raspberrypi ~/domoticz/MyDomoAtHome $ sudo service MyDomoAtHome.sh reload
[....] Reloading plack server: MyDomoAtHomestart-stop-daemon: warning: failed to kill 13314: No such process
start-stop-daemon: warning: failed to kill 13314: No such process
failed!

so although it is started, it doesn't work (IP:port/devices also doesn't load...)