[RELEASE] Virtual Device Sync

@ericm

Okies I have a spare FGS-223 so wired up and connected to HE.
Changed Device TYpe to your device handler ty and Save Preeference to generate the 2x Child endpoints.
Nothing happens when I turn the Children On/OFF and I get an error when I physically switch one of the endpoints?

Any suggestions?

I'll PM you about this as it isn't related to Virtual Device Sync.

First post here . . . I'm in the process of switching from Smartthings to Hubitat. It's a journey with slow progress. One of the devices I have is the Aeotec Smartstrip 6 with four individual Z-Wave outlets. I have tried both the Hubitat and @ericm drivers. Both work but I cannot for the life of me figure out how to create individual switches for each outlet.

Perhaps I do not understand virtual switches well enough. Perhaps I do not understand how Virtual Device Sync works in Hubitat since that is what I recall working in Smartthings. Any help is appreciated. It seems like there should be a child switch option like there is for the Enerwave Dual Relay which I did get working successfully with @ericm drivers.

@ericm does great work! Thank you! I'm not afraid of light coding but unfortunately find it hard to make sense of Groovy.

I think I managed to figure it out. I reviewed my Smartthings setup as I was in the process of moving various items to Hubitat and realized that Virtual Device Sync was an app; not a driver. Once I installed the app, I was able to create the virtual devices for each of the switches.

Thanks again @ericm for your drivers and apps. It's still not a simple journey but the Hubitat journey has seriously begun.

1 Like

You can expose each Aeotec strip outlet in HE using Custom Command in RM.
On1,2,3,4 and Off1,2,3,4

1 Like

I am so glad I found this! Just wanted to share, I used it on my Pool Controller, an Intermatic PR653, which has 5 endpoints. It has a tons of other attributes it exposes via ZWave as well, multiple temps, thermostats, variable speeds, valves, etc...but it all just makes one composite controller.

With this app, I selected it, it saw the endpoints, created the 5 switches, and they follow perfectly, allowing me to make dashboards that follow the status of my 2 pumps and lights.

Here's the thread where I found this app useful for the pool.

In the case of the pool controller, there is a safety feature where it will not let the pool cleaner booster pump run without the main circulation pump running. That means, if you turn on the pool cleaner, the pool controller internally runs the circulator pump for 30 seconds first, and then turns on the booster pump. Likewise, if you turn OFF the circulator while they are both running, it will instantly kill the booster pump. With this app, the relationship between those 2 switches is followed and represented in perfect sync across all my dashboards, rules, etc.

Thank you!

1 Like

Followup question:

What if you remove any of the virtual switches it creates?

Using my example above: On my pool controller, it has 5 endpoints, but I only use 3 of them. So switches 2 and 5 are just sitting there clutter up the place. Is it possible to just delete these out of the device list, or I imagine that will mess things up in the app?

Is there any chance I can get and un-compiled version of your Sonoff.ino.generic.bin software? I am wanting to make minor changes for my needs and I would like to learn what you did to make it work. I am new, a high school teacher and I am struggling to understand the Tasmota. I am hoping by seeing your work and the differences it will make sense to me. I can use Arduino to up load the code to my devices. Thank you for your help and understanding.

PS: You can email it to me if you don't want to post it... bradleymartin2003@yahoo.com

The firmware I created is in here (the .ino file):

The Tasmota I modified for Hubitat is here:

Thank you... Now, do you have a solution for this issue when compiling?

cannot convert 'HTTPMethod' to 'const char* for argument '1' to 'void WSContentSend_P(const char*

Hmm, not sure. Does it say what line number it is on?

Also, can you move this over to the appropriate thread?

There may be some that can answer there.

Is this app still a reasonable choice for making virtual device mirrors of existing devices?

When I use the z-wave firmware updater, my Zen27 (z-wave dimmer), loses the network, then comes back as a new device.

I'm thinking that switching all my automations and app usages (google home, etc), to use a virtual device that syncs with a real device might be the solution.

Can the virtual to real map be easily changed to a new 'real' switch?
Does my usage seem reasonable?
With the advent of the package manager app, any chance this app could be made compatible? to ease installations and updating

I've thought about this idea in the past. It would be great at a system level for Hubitat to create a virtual device and link it to a real device on the backend. It would make swapping out devices a lot easier.

As for this app, it only works with devices that have drivers written in a certain way. Its purpose was to provide access to multi-channel device endpoints before parent / child devices were a thing. I don't plan on maintaining it or modifying it as Hubitat has supported child devices for a long time.

Hi Eric I had your virtual sync, virtual energy switch & PANO4 DH set up in ST a while back and it was working beyond expectation so thank you for that. I have migrated over to HE and have every other device working perfectly but for the life of me I cannot get this to workin HE, to me it seems it is the PAN04 DH that is is the issue as it is flakey and unresponsive I remember in ST there were more settings available in particular parameter 31 (Primitive Frame ) which when set to 2 fixed the flakey switching. Also not sure of what the configure,reset and refresh tiles actually do?

Last night there was a platform update I have the C-7 version this update included a lot of fixes for z wave on the C-7 and your DH is now working properly with the PAN04.
So thank you again for sharing this driver.

1 Like

I’m a long time ST user and am migrating to HE. I have an Aeotec Smartstrip and am using your drivers and sync app on the ST. I am trying to understand how to use your HE versions but I’m confused. What driver do I use for the Smartsrtip? Also I am using your virtual energy driver for the virtual switches. I can’t seem to find a comparable driver in HE. I think I found the smartstrip driver and the sync app in this thread, but I can’t find the virtual driver. If it’s not too much trouble, can set me straight on all this? By the way, thanks for the great work on this.

I believe the drivers you are looking for is here:

Thanks for the quick response. I see the drivers but not the Virtual Device Sync app. Can I use the one for Inovelli you identified earlier in the thread?

Yeah, it is the same app just stored in a different repository.