Strange behaviour , mutiple commands

Moderator: leecollings

Post Reply
PBoomhut
Posts: 22
Joined: Monday 07 November 2016 11:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020-02
Location: Maarheeze
Contact:

Strange behaviour , mutiple commands

Post 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
PBoomhut
Posts: 22
Joined: Monday 07 November 2016 11:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020-02
Location: Maarheeze
Contact:

Re: Strange behaviour , mutiple commands

Post by PBoomhut »

PBoomhut
Posts: 22
Joined: Monday 07 November 2016 11:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020-02
Location: Maarheeze
Contact:

Re: Strange behaviour , mutiple commands

Post by PBoomhut »

User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Strange behaviour , mutiple commands

Post 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?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
PBoomhut
Posts: 22
Joined: Monday 07 November 2016 11:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020-02
Location: Maarheeze
Contact:

Re: Strange behaviour , mutiple commands

Post 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?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Strange behaviour , mutiple commands

Post 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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
PBoomhut
Posts: 22
Joined: Monday 07 November 2016 11:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020-02
Location: Maarheeze
Contact:

Re: Strange behaviour , mutiple commands

Post 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
PBoomhut
Posts: 22
Joined: Monday 07 November 2016 11:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020-02
Location: Maarheeze
Contact:

Re: Strange behaviour , mutiple commands

Post by PBoomhut »

That code is strange to me, I don't know any programming language, please provide some explanation.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Strange behaviour , mutiple commands

Post 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?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
wouterlet
Posts: 109
Joined: Tuesday 02 October 2018 20:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Strange behaviour , mutiple commands

Post 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
PBoomhut
Posts: 22
Joined: Monday 07 November 2016 11:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020-02
Location: Maarheeze
Contact:

Re: Strange behaviour , mutiple commands

Post 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 # ?
wouterlet
Posts: 109
Joined: Tuesday 02 October 2018 20:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Strange behaviour , mutiple commands

Post 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
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Strange behaviour , mutiple commands

Post 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)
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
PBoomhut
Posts: 22
Joined: Monday 07 November 2016 11:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020-02
Location: Maarheeze
Contact:

Re: Strange behaviour , mutiple commands

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

Who is online

Users browsing this forum: No registered users and 1 guest