What interfaces do you use the new webbutton device with? It seems to be a simple device that only has on, off, and status.
If it's used for something like lights, I think you should just use the light device and limit the commands for the device, or add security to limit the command for a specific user. I have examples for both use cases in the dopeyrealm instance. Or you could just change the interface to use the "Compact" view, which only allows you to toggle and adjust the level of lights and doesn't display the extra commands.
--
You received this message because you are subscribed to the Google Groups "pytomation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pytomation+...@googlegroups.com.
To post to this group, send email to pytom...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
u_david = User(username='David', password='ASecretPass', accessible_devices = [hall_thermostat,d_front_door,l_backporch,l_frontporch,l_kitchen_recessed,l_kitchen_back,l_kitchen_faucet,f_bathroom,(l_bathroom, [Command.OFF, Command.ON]), #Restricting bathroom light commands to only on and off, for this user only (note: disables toggle)l_foyer,l_hallway,l_master_bathroom,l_master_faucet])
The webbutton I use with the Android app. It's just a Generic but I can select webbutton and not have 34 generics to scroll through on a mobile app. It was annoying. This way I see the two buttons I have configured and can operate them immediately. It's really a UI ease of use thing for me. I'm wondering now if the user code you contributed would do the same thing, I haven't tried it yet. Does it hide all the UI elements the user doesn't have rights to?George
On Sun, 2018-02-04 at 00:24 -0800, David wrote:
What interfaces do you use the new webbutton device with? It seems to be a simple device that only has on, off, and status.--
If it's used for something like lights, I think you should just use the light device and limit the commands for the device, or add security to limit the command for a specific user. I have examples for both use cases in the dopeyrealm instance. Or you could just change the interface to use the "Compact" view, which only allows you to toggle and adjust the level of lights and doesn't display the extra commands.
You received this message because you are subscribed to the Google Groups "pytomation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pytomation+unsubscribe@googlegroups.com.
To post to this group, send email to pytom...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "pytomation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pytomation+unsubscribe@googlegroups.com.
But Pytomation was also built to allow exactly what you did too and I think it's a good example of how you can very easily customize the system.