Timer Plan Manager: View and Copy schedules across all plans

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
jeradam
Posts: 9
Joined: Friday 27 May 2022 14:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Timer Plan Manager: View and Copy schedules across all plans

Post by jeradam »

Hi everyone!

I’ve asked claude.ai to help me create a small tool to make managing Timer Plans much easier. Currently, in Domoticz, it's hard to have a good view of all schedules within a timer plan, or to compare plans and copy schedules from one to another without a lot of manual switching.

It can be improved, but even with the free version of Claude, I think the result is already very helpful!

It's a custom page, copy the .html into "www/templates"

Be aware : To load the data from all plans, the script will briefly and automatically switch between each Timer Plan during the loading process.

I think it would be a great idea to integrate something like this directly into Domoticz in the future!
Attachments
domoticz_timerplans.zip
(8.74 KiB) Downloaded 178 times
domoticz_timerplans.jpg
domoticz_timerplans.jpg (331.06 KiB) Viewed 6735 times
User avatar
gizmocuz
Posts: 3026
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Timer Plan Manager: View and Copy schedules across all plans

Post by gizmocuz »

Could you post a English screenshot? And use the default theme? I am unable to read it
Quality outlives Quantity!
jeradam
Posts: 9
Joined: Friday 27 May 2022 14:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Timer Plan Manager: View and Copy schedules across all plans

Post by jeradam »

Hi,

In attachment the English version
Attachments
domoticz_timerplans_EN.zip
(8.42 KiB) Downloaded 224 times
1000038998.jpg
1000038998.jpg (89.61 KiB) Viewed 6657 times
jeradam
Posts: 9
Joined: Friday 27 May 2022 14:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Timer Plan Manager: View and Copy schedules across all plans

Post by jeradam »

I just noticed a problem when I load my html file, switching the active plan immediately applies its schedules. Any timer matching the current time in the target plan will trigger the corresponding device during what should be a read-only operation.

Concrete example
- Plan A (Default) is active.
- Plan B (Vacation) has a light with a timer: ON at 18:00 off at 19h
- To read Plan B's timers, I activate Plan B temporarily.
- If this happens at 18:10, the light turns on unexpectedly.


Claude.ai text :

Why it matters
The Domoticz UI has no global view of timers across all Timer Plans. Users who manage multiple plans (Default, Vacation, Night mode, etc.) have no way to:
- See all timers across all plans in one place
- Compare what is active in each plan
- Copy timers from one plan to another

I built a custom HTML page hosted in

Code: Select all

www/templates/
that provides exactly this — but it relies on temporarily switching plans to read their timers, which causes the side effects described above.

Proposed fix
Simply make getschedules respect the timerplan parameter as a read-only filter, returning the timers of the requested plan without changing the active plan:

Code: Select all

/json.htm?type=command&param=getschedules&timerplan=2
This single change would make it possible to build proper Timer Plan management tools natively in Domoticz without any side effects.
Post Reply