scheduling when the material if OFF

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
User avatar
pierrotori
Posts: 130
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

scheduling when the material if OFF

Post by pierrotori »

Hello guys,

i created a test container landscape and i put to off the material RFXCOM, but the timer of each device continue to work and i have a error in the log
I don't know if it's a bug of the plugin or domoticz.
just to understand : Is this behavior normal?

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: 7054
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: scheduling when the material if OFF

Post by waltervl »

If you disable the hardware gateway then you also disable the divices. So one should expect that the timers on those devices are also not being used again. So it seems to be a bug.
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
gizmocuz
Posts: 3105
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: scheduling when the material if OFF

Post by gizmocuz »

Thanks for reporting this, and waltervl for confirming. It is indeed a bug: the scheduler loaded device and setpoint timers from the database without checking whether the device's hardware is enabled, so timers kept firing for devices on a disabled hardware (and typically logged an error when the command could not reach it).

Fixed in development: the timer queries now skip devices whose hardware is disabled, and the schedule is refreshed right away when you enable or disable a hardware, so no restart is needed. It will be in the next beta.

Tracked as https://github.com/domoticz/domoticz/issues/7225
Quality outlives Quantity!
Post Reply