Page 1 of 1

Strange behaviour , mutiple commands

Posted: Saturday 29 August 2020 14:10
by PBoomhut
First, the whole blockly runs sequentially at a very slow pace, sometimes as long as 10 seconds before running after the remote is pressed.

Image

But why an extra command for "On"

Image

Re: Strange behaviour , mutiple commands

Posted: Saturday 29 August 2020 14:12
by PBoomhut

Re: Strange behaviour , mutiple commands

Posted: Saturday 29 August 2020 14:12
by PBoomhut

Re: Strange behaviour , mutiple commands

Posted: Saturday 29 August 2020 23:16
by waaren
PBoomhut wrote: Saturday 29 August 2020 14:10 First, the whole blockly runs sequentially at a very slow pace, sometimes as long as 10 seconds before running after the remote is pressed.
But why an extra command for "On"
Can you please elaborate on this? What do you see in the domoticz log?
Does the Blockly takes 10 seconds from start to finish or does it take 10 seconds before it starts or does it take 10 seconds before all actions are done?

The extra On command is not send from this Blockly. Do you have set an On- or Off delay or On- or Off action for this device or any other scripts / Blockly active where an action for this device is defined?

Re: Strange behaviour , mutiple commands

Posted: Sunday 30 August 2020 12:02
by PBoomhut
Where can I find the domoticz log from a few days ago?

It takes 10 seconds, sometimes longer for the lamps to respond,
I should see if Domoticz has already switched.
The sequence also takes 10 seconds to run.

But kitchen lamp I have already had 2 times that it spontaneously receives an ON command again.
In the other blockly commands there is no link that could reference, nor is there any delay. However, this lamp has a blockly script, as soon as this lamp (kitchen) switches on, a qubino switches, to switch on the CCTV.

I could post al blockly events?

Re: Strange behaviour , mutiple commands

Posted: Sunday 30 August 2020 17:49
by waaren
PBoomhut wrote: Sunday 30 August 2020 12:02 Where can I find the domoticz log from a few days ago?
You can share all relevant Blockly's / scripts here.
Do you have set an On- or Off delay or On- or Off action for this device?

The domoticz logfile location and other settings are defined in /etc/init.d/domoticz.sh
the relevant settings are in set to the DAEMON_ARGS var.

with an editor of choice

Code: Select all

DAEMON_ARGS="$DAEMON_ARGS -log /var/log/domoticz.log" # or any other OS file 
#DAEMON_ARGS="$DAEMON_ARGS -loglevel  normal,status,error, debug" # debug disabled for now 
DAEMON_ARGS="$DAEMON_ARGS -loglevel  normal,status,error" # these loglevels will make it to the logfile
#DAEMON_ARGS="$DAEMON_ARGS -debuglevel normal,hardware,received,webserver,eventsystem,python,thread_id"

sudo systemctl daemon-reload
sudo service domoticz stop
sudo service domoticz start
sudo tail -f  /var/log/domoticz.log

Re: Strange behaviour , mutiple commands

Posted: Monday 31 August 2020 10:16
by PBoomhut
You can share all relevant Blocklies / scripts here.
>> IS there a site where I can post pictures because this forum only posts url?

Have you set an On or Off delay or On or Off action for this device?
>>> NO

The domoticz log file location and other settings are defined in /etc/init.d/domoticz.sh
the relevant settings are set on the DAEMON_ARGS var.
>>> What are Relevant Settings?

with an editor of your choice

Re: Strange behaviour , mutiple commands

Posted: Monday 31 August 2020 11:23
by PBoomhut
That code is strange to me, I don't know any programming language, please provide some explanation.

Re: Strange behaviour , mutiple commands

Posted: Monday 31 August 2020 11:34
by waaren
PBoomhut wrote: Monday 31 August 2020 11:23 That code is strange to me, I don't know any programming language, please provide some explanation.
You can post image files (choose attachments ) and code ( between </> ) on this forum.
Sorry but I am not able to explain it better then I already did. Maybe someone else on the forum can?

Re: Strange behaviour , mutiple commands

Posted: Monday 31 August 2020 15:08
by wouterlet
I'll try if I can help. At first I can't see the pictures in your first post. Can you post the again?

Then if I understand it right the scripts result is slow. As asked, what does the log say? It sounds to me as something you can easy do again so you can watch the log? The you don't need to look at and old log

Re: Strange behaviour , mutiple commands

Posted: Monday 31 August 2020 18:10
by PBoomhut
[youtube]https://youtu.be/iO20ddILiOc[/youtube]

Can i use : $DAEMON_ARGS -log /var/log/domoticz.log
with no problems, and can I stop it?
Why the second rule with a # ?

Re: Strange behaviour , mutiple commands

Posted: Monday 31 August 2020 21:48
by wouterlet
Sorry I'm not a good programmer also. I just use the log as you find it at settings->log then there you should find the recent action so you can maybe also see what causes the delay. The button or the script

Re: Strange behaviour , mutiple commands

Posted: Monday 31 August 2020 23:05
by waaren
PBoomhut wrote: Monday 31 August 2020 18:10 Why the second rule with a # ?
Any text after the # is a comment and is ignored in the /etc/init.d/domoticz.sh (and in any other linux shell script)

Re: Strange behaviour , mutiple commands

Posted: Tuesday 01 September 2020 12:11
by PBoomhut
waaren wrote: Sunday 30 August 2020 17:49
PBoomhut wrote: Sunday 30 August 2020 12:02 Where can I find the domoticz log from a few days ago?
You can share all relevant Blockly's / scripts here.
Do you have set an On- or Off delay or On- or Off action for this device?

The domoticz logfile location and other settings are defined in /etc/init.d/domoticz.sh
the relevant settings are in set to the DAEMON_ARGS var.

with an editor of choice

Code: Select all

DAEMON_ARGS="$DAEMON_ARGS -log /var/log/domoticz.log" # or any other OS file 
#DAEMON_ARGS="$DAEMON_ARGS -loglevel  normal,status,error, debug" # debug disabled for now 
DAEMON_ARGS="$DAEMON_ARGS -loglevel  normal,status,error" # these loglevels will make it to the logfile
#DAEMON_ARGS="$DAEMON_ARGS -debuglevel normal,hardware,received,webserver,eventsystem,python,thread_id"

sudo systemctl daemon-reload
sudo service domoticz stop
sudo service domoticz start
sudo tail -f  /var/log/domoticz.log
Ok the code works fine!, Why didn't it go a few days ago?

But this doesn't work:

pi@VerlichtingHCC:~ $ sudo tail -f /var/log/domoticz.log
tail: cannot open '/var/log/domoticz.log' for reading: No such file or directory
tail: no files remaining
pi@VerlichtingHCC:~ $

There is no domoticz.log in var/log