itβs working if i copy it (-4) hrs.
ps: the longitude and latitude if set by default (0.1 0.1)? no need to change it 45 and -74
thank you
itβs working if i copy it (-4) hrs.
ps: the longitude and latitude if set by default (0.1 0.1)? no need to change it 45 and -74
thank you
sorry i change the -4hrs the time now is correct but not the longitude and latitude. i add the right values for the longitude and latitude and now itβS perfect
again good job and thank you very much
Mariano, could you add week number to the virtual calendar? I have events that happen every other Friday and would like to create some automation. It would also be great if I could check for even vs odd week numbers.
THANKS!
Hi @BSF29
You can use virtual device Timer Number of days with 15 days timer
THANKS, Iβm building it now!
Can someone confirm if this setup is correct? This is my first attempt using Virtual Timer Numbers Days. Iβve connected a modem to a smart plug, and I want it to turn off every two weeks. Iβve also set up a second routine to turn the modem back on 2 minutes after it switches off.
Virtual Timer Number Days
Routine #1 - turn off modem
Routine #2 - turn on modem
Hi @afive
The routines are fine.
Although In the routine, 1 in the Then part you do not need to reset the 14-day timer, it is automatically reset every 14 days and the switch will turn off at 0:00 the day after it was turned on to activate the routine.
Please forgive me if this is already been covered but this is a really long board and Iβm not sure how to search very well. Iβm not even very sure how to explain what it is that Iβm looking for, so please excuse me again for very long winded explanation, but I want to be sure not to miss anything.
Canβt seem to make the calendar. Driver work the way that I want it to.
I live in New England, where we use ACs for part of the year and I use space heaters for other parts of the year. I donβt use them together, obviously. So I save money and just unplug my Zooz outlet plug from the AC and move it over to the heater when the time is right.
So what I am looking for is a way for my heating automations to automatically switch on as of October 1 (and off April 30) so that it knows itβs time to heat. I have automations already built where it uses a sensor, senses the temperature and time of day and turns on the heater until it reaches a certain temperature where it turns off. The only thing it doesnβt do is look at the calendar and say OK now is a good time of year to run that heater. (So it doesnβt accidentally turn on the AC by accident. Sometimes it gets cold in the middle of September and I havenβt moved the plug from AC to heater because weβre very likely to have Indian Summers.)
The issue is that it doesnβt understand when heating should stop on the calendar. If you pick βrangeβ and you say OK start on October 1 and end on April 30, it doesnβt allow you to do that because your start date canβt be greater than your end date β 1001 is greater than 0430.
I could see no other way to make that happen.
The other, cooling routine would run from 0501 to 0930. That would work because 05 is smaller than 09.
Canβt figure out a way to make this work with this driver, unfortunately.
Any help you can think of is greatly appreciated
In cases where there is a change of year, the month and day capability cannot be used in a interval condition, you must use year, month and day.
This requires modifying the routine once a year.
I have it like this for period 2023, Octubre 1 to 2024, May 15
If you want to use month and day you have to do 2 routines, one for October 1 to December 31 and another for January 1 to April 15
First, thank you so much for all your drivers.
I am trying to use your virtual calendar for my Christmas lights where I want them to turn off every night EXCEPT 12/24 when we usually leave them on all night. Would be great if there was a βnot equal toβ option in the month and day selection.
For now I have to create a virtual device and set it based on the date using two daily routines.
Also, I tried using the ranges but I would need two ranges and it only lets me set one or the other. I canβt set both. Now sure what the two dates are for if I canβt set both.
Thanks again!
Create a 2nd routine for 12/24 to turn the lights back on when they turn off.
Smartthings does not offer that option in its routines.
You can do it with two intervals with Local Date One and Local Date Two
For example, if you turn off the lights every night at 11 p.m. between December 7, 2023 and January 3, 2024 except December 24
IF:
Time = 23:00 every days
AND
Local Date One
interval 20231207 to 20231223
OR
Local Date Two
interval 20231225 to 20240103
THEN
Turn Off lights
Thanks for the quick reply. I understand βnot equal toβ is not something ST provides but thought maybe it could be something you could implement in your driver where it simply returns false/off on the date set and true/on all other days but Iβm sure itβs not that simple.
Thanks. I considered that as a work around as well. Will probably go that route since ST doesnβt support what I was looking for.
I have added a new virtual device, Timer of Seconds:
The timer can be reset and restarted at any time with a custom capability manually or from a routine.
When you turn the switch to On or press reset, the timer starts.
When the timer starts, the date and time at which it will end and turn Off is displayed. For the local time to be correct you must enter the offset with the UTC time
When changing to Off the switch stops the timer.
It can be full controlled by routines
Part IF:
Part THEN:
The driver has translations of capabilities to Spanish on all devices.
The new version will updated automatically in 12 hours max.
It may be necessary to clear the cache or close and open existing devices to view translations
βββββββββββββββββββββββββββββββββββββββββββββββββββ
Name Aplicaciones Virtuales Mc
Version 2024-01-16T20:07:21.419845818
βββββββββββββββββββββββββββββββββββββββββββββββββββ
Thanks for the update.
I am seeing 2 problems.
So can I delete the existing main controller without loosing all the devices I have previously created.
Hi Paul,
This is fixed, it was a translation problem, it takes a while to update, deleting the cache and closing and opening the device speeds up the process, but it will fix itself
Wait a while to create new devices, the presentations with the translations are updated at one speed and the code at another.
Donβt delete anything, it will fix itself
If you accidentally delete the Main device controller, all created devices still work fine, but you will not be able to create new devices until you recover the Main device.
To recover the Main Controller device you have to:
I have added two new capabilities to the new virtual device, Timer of Seconds:
Added a capability to choose how many loops you want to perform:
A capability has been added to show the loops already made, also accessible in automation conditions.
Part IF:
Part THEN:
The new version will updated automatically in 12 hours max.
βββββββββββββββββββββββββββββββββββββββββββββββββββ
Name Aplicaciones Virtuales Mc
Version 2024-01-18T10:33:33.683510511
βββββββββββββββββββββββββββββββββββββββββββββββββββ