Timer update, disturbed planning of blind

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!

Moderators: leecollings, remb0

Post Reply
User avatar
pierrotori
Posts: 101
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

Timer update, disturbed planning of blind

Post by pierrotori »

Hi
when i open a door i desactivate the timer of the blind with the command

Code: Select all

'http://127.0.0.1:8080/json.htm?type=command&param=)disabletimer&idx=x'
i execute the url with a synchrone mode throuhgh the command

Code: Select all

URLPlanningOff = URLPlanningOff .. deviceTimerID
							dz.openURL({
							url = URLPlanningOff,
							method = 'GET',
							})
The problem is when i update a timer in the same time of scheduling of antother blind , the consequence the planning of the another blind is not effective ?
Pierrotori
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Timer update, disturbed planning of blind

Post by waltervl »

Be aware that you use unique triggers/callbacks in your scripts else dzvents gets confused.

For the rest, with the given code samples, there is no conclusion to draw what you are doing and what could cause your issue.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
pierrotori
Posts: 101
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

Re: Timer update, disturbed planning of blind

Post by pierrotori »

in my case if i use dz.openURL without callback, in this case the callback content nil and no trigger are activate.
Even if i run the same command in another script.
you're right. I try to understand in the real action of different function in all the scripts

Should the command be executed with the callback option even if i don't test the status return ?
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Timer update, disturbed planning of blind

Post by waltervl »

The Dzvents wiki on openUrl is clear when to use callbacks or not.

What do you mean with below? You run the updatetimer openurl 2 times on exactly the same time from different scripts? Do you experience this for real or do you just want to know if it could happen? What does the log file say if the problem happens for real?
The problem is when i update a timer in the same time of scheduling of antother blind , the consequence the planning of the another blind is not effective ?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
pierrotori
Posts: 101
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

Re: Timer update, disturbed planning of blind

Post by pierrotori »

rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
User avatar
pierrotori
Posts: 101
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

Re: Timer update, disturbed planning of blind

Post by pierrotori »

i confirm for this problem i have 2 blinds with the same scheduling
when i reactivate the timer of my first blind at the time of scheduling, in this case the second timer of the second blind is not scheduled
and the timer is updated in the json scheduling and no closed

Code: Select all

              {
                        "Active" : "true",
                        "Color" : "",
                        "Date" : "",
                        "Days" : 128,
                        "DevName" : "volet de la chambre",
                        "DeviceRowID" : 18,
                        "IsThermostat" : "false",
                        "Level" : 100,
                        "MDay" : 0,
                        "Month" : 0,
                        "Occurence" : 0,
                        "Randomness" : "false",
                        "ScheduleDate" : "2024-04-18 20:57:00",
                        "Time" : "00:05",
                        "TimerCmd" : 1,
                        "TimerID" : 3,
                        "TimerType" : 4,
                        "TimerTypeStr" : "After Sunset",
                        "Type" : "Device"
                },
                
                {
                        "Active" : "true",
                        "Color" : "",
                        "Date" : "",
                        "Days" : 128,
                        "DevName" : "volet de la cuisine",
                        "DeviceRowID" : 17,
                        "IsThermostat" : "false",
                        "Level" : 100,
                        "MDay" : 0,
                        "Month" : 0,
                        "Occurence" : 0,
                        "Randomness" : "false",
                        "ScheduleDate" : "2024-04-18 20:57:00",
                        "Time" : "00:05",
                        "TimerCmd" : 1,
                        "TimerID" : 1,
                        "TimerType" : 4,
                        "TimerTypeStr" : "After Sunset",
                        "Type" : "Device"
                },
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests