create duplicate zwave dummy switches?

Moderator: leecollings

Post Reply
stlsparky
Posts: 9
Joined: Thursday 02 June 2016 1:12
Target OS: Linux
Domoticz version:
Contact:

create duplicate zwave dummy switches?

Post by stlsparky »

I just started using domoticz and love the floorplan! It is so nice to see all my zwave switches in one simple-to-view place! I set it up by dragging and dropping the light switch to the center of the ceiling on my floorplan, to represent the center overhead light fixture. Looks sharp!It works very intuitively for 1 switch-1 light scenarios. But I have a problem when I have 1 switch already wired to 4 lights.

For example: all my bed rooms have 4 can lights in the ceiling in addition to the ceiling fan's light. So each room has a ceiling fan and a square pattern of can lights surrounding the fan. I attached a pic to better explain.

How can I make 3 dummy can light icons that react just like the 1 real can light switch icon? I have tried dummy switches but they don't turn off the lights, just change icon status. I also played with slave settings, hoping that would link the dummty and real switch together, but I can't make it work :(

My goal would be to have 4 icons each that could trigger the can lights to turn on, dim, turn off, etc just like the one does.

What am I doing wrong? Thanks for your help!

PS, I created my floorplan using sweethome 3d (hint to US users-it is the only free app that I found which allows inches instead of fractions of a foot)
fan and cans.png
fan and cans.png (98.81 KiB) Viewed 1097 times
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: create duplicate zwave dummy switches?

Post by Egregius »

Have a look at https://github.com/Egregius/PHP-Custom- ... r-Domoticz

With that you don't need another virtual switch, you just put 4 times the same switch and they will all work as one to switch:
Schakelaar('room1','Light',52,8,88);
Schakelaar('room1','Light',52,8,147);
Schakelaar(room1','Light',52,8,206);

The last 2 numbers are the position on the floorplan, ex 8 from top, 88 from left.
stlsparky
Posts: 9
Joined: Thursday 02 June 2016 1:12
Target OS: Linux
Domoticz version:
Contact:

Re: create duplicate zwave dummy switches?

Post by stlsparky »

Thanks for the reply. I looked at your project, and I think it is WAY out of my skill level. My understanding is that I need an Apache server running in addition to the domoticz one? Is that correct? Is there simply a way to modify the domoticz floorplans.html page without running and creating a separate server? I have no scripting experience, but understand your reply. I just wish there was a bit easier approach, or that dummy switches could mirror a real switch.

If using your project is the only way to go, then I may work on some skills this weekend. Are there any tutorials that you know of for the PHP Custom Floorplan installation? I only see your comments, but I think I am not to that level as a newbie yet!

Any simple-for-a-newbie suggestions?
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: create duplicate zwave dummy switches?

Post by Egregius »

It's not that hard to run a second webserver. It's not much more than "apt-get install apache2 php5"
There are tons of tutorials available for that.
To have the PHP Floorplan running (after apache is installed) it's just copying floorplan.php, functions.php and settings.php.
All the rest of the files are more for logic programming and other stuff.
Questions about the floorplan fit best at http://www.domoticz.com/forum/viewtopic.php?f=8&t=7551
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest