I'm new to Hubitat and just learning. I want to create a button (device) to turn on all my lights as a panic button. I created a virtual device switch and tied a basic rule to it but I can't get it to respond to an on or off . It doesnt show any current state. What should I be doing?
What driver ("Type" on the device page) did you use for this virtual device? Also, a virtual button (or real button unless it also has these other capabilities) would not have on/off commands, only button-related commands like "push."
If you're not sure but you're able to post screenshots, those may also be helpful.
Actually I used an "ecobee switch" type device. Unfortunately I removed it all because it didn't work. I just basically need to know if I'm approaching this problem correctly, and what virtual device would be appropriate.
Thanks so much for the quick response.
I want this to be a button on my dashboard. No real hardware button or switch involved
You may want to try the built in "Groups and Scenes" app.
You could simple create a "All Lights" or "Panic" 'Group', add all your lights to the 'Group". The app will make the virtual device for the Group and have built in On/Off. Add that to your dash and done.
That is intended for a real device. For a virtual device, you will need one of the "Virtual..." built-in drivers (or a custom driver written with the same goal in mind). There are several different kinds, depending on what capability you need.
That being said, for your particular use case, I agree that the built-in Groups feature might be better idea.
Good luck with whatever approach you choose!
Wonderful. I will try that. Thank you.
This is what I do, it works fantastic. I have All On\Off, as well as All Inside On\Off and All Outside On\Off.
My wife loves these.
Groups worked perfect ! Thanks everyone, only I can't seem to add the "all lights" group button to my dashboard. It is in "all devices" and works well there. Any ideas?
It sounds like you have not authorized the new device(s) for use with that Dashboard. To do this:
-
Launch the admin UI for your hub (e.g., go its IP address in a web browser; the mobile app is not necessary for this, though it can help you find it if you don't know).
-
Go to "Apps" on the left-side menu. (Note: "Apps," not "Dashboards.")
-
Under "Hubitat Dashboard" in the apps list, find the Dashboard in question, then click/tap its name to open that Dashboard app.
-
You can probably figure it out from here, but if not: select the new device under "Choose Devices," then hit "Done" to save your settings. It is recommended to choose only the devices you are using on your Dashboard (due to overhead that may be incurred from the Dashboard "listening" to device events it doesn't need to care about if you aren't actually using them).
Thank you. That worked great.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.