(EDGE Driver-Mc): Aplicaciones Virtuales Mc (virtual Switch Mirror, Virtual Calendar and virtual Switch Board...)

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 :wink:

again good job and thank you very much

1 Like

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.

1 Like

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

Hi @melissamilligan

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

2 Likes

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

3 Likes

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.

1 Like

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.

New version of the Aplicaciones Virtuales Mc driver

I have added a new virtual device, Timer of Seconds:

  • Programmable from 1 sec to 86400 sec, 1 day maximum

  • They have two types of timer:
    • Permanent value: the timer value is maintained until it is changed manually or with a routine.

  • Random Value: The timer value is calculated each time the timer starts between the minimum and maximum values established by the user in the corresponding custom capabilities. The allowed values are between 1 sec and 86400 sec.

  • 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

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        
───────────────────────────────────────────────────
7 Likes

Thanks for the update.

I am seeing 2 problems.

  1. Virtual Calendar is labeled Virtual Mirror

  1. For new installs it works fine. For existing locations where the driver updated I can not create new devices most of the time, but when I can create a device it is always a mirror switch regardless of the device chosen. I cleared the cache and force stopped the app multiple times

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.

1 Like

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:

  • install the Aplicaciones Virtuales Mc-(SOS) driver
  • Search nearby devices
  • When the Main device is created, then perform a driver change on the new Main device to the Aplicaciones Virtuales Mc driver.
    The Main device will be paired to the driver Mc and you can now delete the Aplicaciones Virtuales Mc-(SOS) driver
2 Likes

New version of the Aplicaciones Virtuales Mc driver

I have added two new capabilities to the new virtual device, Timer of Seconds:

  • Programmable from 1 sec to 86400 sec, 1 day maximum

  • They have two types of timer:
    • Permanent value: the timer value is maintained until it is changed manually or with a routine

  • Random Value: The timer value is calculated each time the timer starts between the minimum and maximum values established by the user in the corresponding custom capabilities. The allowed values are between 1 sec and 86400 sec.

This is the new function

  • Added a capability to choose how many loops you want to perform:

    • By default the value is 1 and works like a normal timer
    • The Value = 0 indicates that infinite loops will be performed, until the timer is stopped manually or with a routine setting the Timer switch to Off.
    • When each loop ends, the switch sets Off for 1 sec and returns to On. In this way, the true and false status is restored in the routines that use the timer as a trigger.
  • A capability has been added to show the loops already made, also accessible in automation conditions.


The new version will updated automatically in 12 hours max.

───────────────────────────────────────────────────
 Name         Aplicaciones Virtuales Mc
 Version      2024-01-18T10:33:33.683510511        
───────────────────────────────────────────────────
5 Likes