Problem with Function Switch Selector / Planning

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
seby901
Posts: 5
Joined: Tuesday 15 March 2022 10:26
Target OS: NAS (Synology & others)
Domoticz version: 2024.7
Location: BELFORT France
Contact:

Problem with Function Switch Selector / Planning

Post by seby901 »

Version: 2024.7 build 16326
Platform: Raspberry Pi
Plugin/Hardware: dzVents Version: 3.1.8 Python Version: 3.9.2 (default, Mar 12 2021, 04:06:34) [GCC 10.2.1 20210110]
Description:

I have created a switch selector with 3 functions: off, automatic, forced .
Capture1.JPG
Capture1.JPG (77.41 KiB) Viewed 1089 times
Capture.JPG
Capture.JPG (15.15 KiB) Viewed 1089 times
If I manually set the selector to OFF/AUTO/FORCE, it works perfectly, but it doesn't work in programming "planning", or I'm missing something.
Capture2.JPG
Capture2.JPG (65.65 KiB) Viewed 1090 times
In this example, I switch to FORCED mode at 9:18 and nothing moves ... Either it's a bug, or I'm the one who doesn't understand anything
Last edited by seby901 on Tuesday 12 November 2024 9:38, edited 2 times in total.
User avatar
waltervl
Posts: 5392
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Bug with Function Switch Selector / Planning

Post by waltervl »

Do not rename the default OFF (value 0) to something else.
Make a new value 30 for FORCE.
With the edit button there is an option to hide the OFF (0) value.
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
seby901
Posts: 5
Joined: Tuesday 15 March 2022 10:26
Target OS: NAS (Synology & others)
Domoticz version: 2024.7
Location: BELFORT France
Contact:

Re: Bug with Function Switch Selector / Planning

Post by seby901 »

waltervl wrote: Monday 11 November 2024 23:21 Do not rename the default OFF (value 0) to something else.
Make a new value 30 for FORCE.
With the edit button there is an option to hide the OFF (0) value.
thank you for this information. I made the change, but it doesn't work any better.

I have modified my initial request in order to better understand my problem. When I use the switch button, it works fine, but it's only the programming "Planning " that doesn't work.
User avatar
waltervl
Posts: 5392
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Bug with Function Switch Selector / Planning

Post by waltervl »

For testing timers always take a time more than 2 minutes in the future to let Domoticz be able to configure the timers correctly. If you are too short on the current time then Domoticz can miss it.
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
seby901
Posts: 5
Joined: Tuesday 15 March 2022 10:26
Target OS: NAS (Synology & others)
Domoticz version: 2024.7
Location: BELFORT France
Contact:

Re: Bug with Function Switch Selector / Planning

Post by seby901 »

Indeed, I was too short on timing ... I've just redone the test with a 10-minute gap and it's working fine...
Thanks a lot. Problem solved
User avatar
knasson
Posts: 10
Joined: Sunday 02 May 2021 22:53
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024-4
Location: France
Contact:

Re: Bug with Function Switch Selector / Planning

Post by knasson »

Hi
I met an other bug with the switch selector planning.
I used to manage my electric heatings with the "smart virtual thermostat plugin".
this plugin create several devices
the one i want to plan is called 'thermostat control' it is a selector switch.
thermostatCtrl.jpg
thermostatCtrl.jpg (19.45 KiB) Viewed 479 times
when the electricity fare change i need to stop all the devices.
For example the switch is set to "auto" when i want to move it to "stop"
-manually i select the "off" and it works perfectly
-automatically i program the stop a 6 o'clock for example the switch change (-->" off" ) but the devices don't stop
I,tried 2 methods for settings the only one which change the state ot the selector is the second (where command is "off" and niveau "off")
the other one has no,effect
Attachments
Capture d'écran 2024-12-30 104939.png
Capture d'écran 2024-12-30 104939.png (136.63 KiB) Viewed 479 times
Capture d'écran 2024-12-30 105042.png
Capture d'écran 2024-12-30 105042.png (127.2 KiB) Viewed 479 times
User avatar
waltervl
Posts: 5392
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Bug with Function Switch Selector / Planning

Post by waltervl »

Works just fine for me on my test system (latest beta).
Screenshot_20241230-153541.png
Screenshot_20241230-153541.png (76.47 KiB) Viewed 459 times
Screenshot_20241230-153712-997.png
Screenshot_20241230-153712-997.png (161.03 KiB) Viewed 459 times
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
knasson
Posts: 10
Joined: Sunday 02 May 2021 22:53
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024-4
Location: France
Contact:

Re: Bug with Function Switch Selector / Planning

Post by knasson »

Thank you for this confirmation i have done a new test it is working.
Perhaps something was wrong in my previous experimentation..
User avatar
knasson
Posts: 10
Joined: Sunday 02 May 2021 22:53
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024-4
Location: France
Contact:

Re: Problem with Function Switch Selector / Planning

Post by knasson »

I repeated the testing of the "off" command on the selector switch "thermostat control" created by the plugin "smart virtual thermostat" .
The effect of this command when selected manually by clicking the "off" button is to cut off all the "heaters" associated.
When the "off" command is activated by planning the heaters don't cut off.Even if the state of the selector has been changed to "off" by planning.
It is the second time I made this testing and the result is the same.I don't understand why.
Could you help..
User avatar
knasson
Posts: 10
Joined: Sunday 02 May 2021 22:53
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024-4
Location: France
Contact:

Re: Problem with Function Switch Selector / Planning

Post by knasson »

the difference between manual action and planned action seems to come from the way of programming.
if the state of the selector is "auto" and you want to select the "off" state you have to program as showed on the picture.
offselection.jpg
offselection.jpg (46.41 KiB) Viewed 364 times
and not this one which has no effect
offselection1.jpg
offselection1.jpg (45.62 KiB) Viewed 364 times
or this one which change the state of the selector to "off" but don't cut off the heaters or what you want to command.
offselection2.jpg
offselection2.jpg (45.86 KiB) Viewed 364 times
I have to confirm this but the simulation i proceeded seems working.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests