I try too make use of the system event resetAllEvents.
But it looks like the event is not triggered.
Am i doing something wrong?
I used the attached script to test.
Gr. Bert
resetAllEvents not triggered
Moderator: leecollings
-
- Posts: 19
- Joined: Sunday 08 October 2017 23:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
resetAllEvents not triggered
- Attachments
-
- systemEvent.txt
- (1022 Bytes) Downloaded 53 times
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: resetAllEvents not triggered
So if you save a dzvents script this script is not triggered?
What if you go less complex and just log if the script is run?
What if you go less complex and just log if the script is run?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 621
- Joined: Saturday 21 September 2019 17:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.1
- Location: The Netherlands
- Contact:
Re: resetAllEvents not triggered
Is it not triggered or is it triggered but does not produce any output?
I have never created new local functions in DZvents, but looking at your text I wonder whether the line "local Main" is needed and does not create trouble, since on the next line you start the actual function definition "local function Main ( ipDev )". I don't recognise this construct when comparing to other languages. You need to declare it first? Is it in the documentation somewhere?
I would first add extra log statements to the script before and after running Main.
I have never created new local functions in DZvents, but looking at your text I wonder whether the line "local Main" is needed and does not create trouble, since on the next line you start the actual function definition "local function Main ( ipDev )". I don't recognise this construct when comparing to other languages. You need to declare it first? Is it in the documentation somewhere?
I would first add extra log statements to the script before and after running Main.
-
- Posts: 19
- Joined: Sunday 08 October 2017 23:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: resetAllEvents not triggered
Sorry for my late reaction, i've been away for some time .
@Waltervl:
indeed the script is not triggered when i save athe scripts.
I use the same construction also to test if the script is triggered by a device or a variable.
also the system events for start and backup are logged if i declare them.
However, when i remove all the extra parts, an just log the system event, i doesn't show up for the 'resetAllEvents' trigger and it does show up for the 'start' trigger.
@willemd
The script is not triggered by this event.
If i put some other events to it ( for example device or timer events) then the script is triggerd and produces the expected output.
Greetz Bert
@Waltervl:
indeed the script is not triggered when i save athe scripts.
I use the same construction also to test if the script is triggered by a device or a variable.
also the system events for start and backup are logged if i declare them.
However, when i remove all the extra parts, an just log the system event, i doesn't show up for the 'resetAllEvents' trigger and it does show up for the 'start' trigger.
@willemd
The script is not triggered by this event.
If i put some other events to it ( for example device or timer events) then the script is triggerd and produces the expected output.
Greetz Bert
Who is online
Users browsing this forum: No registered users and 1 guest