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!
Timer Plan Manager: View and Copy schedules across all plans
Moderators: leecollings, remb0
-
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
- Attachments
-
- domoticz_timerplans.zip
- (8.74 KiB) Downloaded 178 times
-
- domoticz_timerplans.jpg (331.06 KiB) Viewed 6735 times
- 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
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
Hi,
In attachment the English version
In attachment the English version
- Attachments
-
- domoticz_timerplans_EN.zip
- (8.42 KiB) Downloaded 224 times
-
- 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
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 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:
This single change would make it possible to build proper Timer Plan management tools natively in Domoticz without any side effects.
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/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¶m=getschedules&timerplan=2