shelly-homekit icon indicating copy to clipboard operation
shelly-homekit copied to clipboard

Dummy switch creation

Open Jaguaza opened this issue 5 years ago • 27 comments

Proposal: Create an option in the web interface to create dummy switch.

Objective: Apart from having the shelly device, having a fake device to be able to add it to automations.

Example: Automations by a geolocation trigger for connection and disconnection of the alarm in homekit ask for authorization to carry it out in a push notification.

If you create a rule that says when I leave home, turn off and turn on the dumy switch. And a second rule that says when the switch turns on it turns on the alarm.

Since the switch is not a homekit security device, it does not ask for geolocation authorization. And since the switch is supposed to be turned on you do not ask for authorization to connect the alarm.

These dummy switche devices are widely used in Homekit.

Jaguaza avatar May 17 '20 06:05 Jaguaza

it would actually be easy to do but i'll need more people to confirm its usefulness.

rojer avatar May 17 '20 06:05 rojer

why not just use Shortcuts, to enable / disable the alarm ?

This is what i do, and it does not require confirmation of master user.

Screenshot 2020-05-17 at 07 57 04 Screenshot 2020-05-17 at 07 57 13

andyblac avatar May 17 '20 06:05 andyblac

en realidad sería fácil de hacer, pero necesitaré más personas para confirmar su utilidad.

Ok I don't think that's a problem.

It is a widely used device.

Jaguaza avatar May 17 '20 07:05 Jaguaza

¿Por qué no usar atajos para activar / desactivar la alarma?

Esto es lo que hago, y no requiere confirmación del usuario maestro.

Captura de pantalla 2020-05-17 a las 07 57 04 Captura de pantalla 2020-05-17 a las 07 57 13

Good Morning.

It was just a simple usage example.

Jaguaza avatar May 17 '20 07:05 Jaguaza

ah ok...

andyblac avatar May 17 '20 07:05 andyblac

Estaría genial que implementaseis esta opción a parte de utilizarlo para el sistema de seguridad se podría utilizar en multitud de situaciones. Estaremos atentos!

Translated:

It would be great if you implemented this option, apart from using it for the security system, it could be used in many situations. We'll be alert!

xuleto avatar May 17 '20 07:05 xuleto

Would be a nice enhancement +1

divemasterjm avatar May 17 '20 07:05 divemasterjm

+1

freddair avatar May 17 '20 07:05 freddair

+1 I think that this will be useful. Not only in the case that @Jaguaza mentions, but other ways. Many systems have it.

edubox avatar May 17 '20 08:05 edubox

+1. It is a great idea and very useful

jjulveval avatar May 17 '20 08:05 jjulveval

Good morning, the updates you are putting in the firm for the shellys are very good, it would be interesting the option of having a dummy switch also when possible.

muval avatar May 17 '20 09:05 muval

+1. I join the partner's proposal, I find it interesting to have that dummy switch

jesegura avatar May 17 '20 09:05 jesegura

This would be perfect por HomeKit users that look for easy options as possible.

danimart1991 avatar May 17 '20 09:05 danimart1991

+1

Tomer51m avatar May 17 '20 09:05 Tomer51m

+1 It would be great to have this implemented giving lots of posibilities. Thanks!

Borja90 avatar May 17 '20 09:05 Borja90

Hi guys I think it's a great idea the dummy option !!!

ElBielas avatar May 17 '20 10:05 ElBielas

+1 i too am very interested

alcar21 avatar May 17 '20 10:05 alcar21

wow, wow, ok, i get it :)

rojer avatar May 17 '20 11:05 rojer

so, the plan is to add more "sw" sections. currently we only have one for each physical switch but we can have more. set gpio for them to -1 and modify code to ignore all the gpio activity but behave the same in all other respects (state changes, notifications). we'll need to figure out the UI aspect as well, so we don't populate like 10 of them but allow adding and removing "virtual" switches as needed.

rojer avatar May 17 '20 11:05 rojer

entonces, el plan es agregar más secciones "sw" . Actualmente solo tenemos uno para cada interruptor físico, pero podemos tener más. establezca gpio para ellos en -1 y modifique el código para ignorar toda la actividad de gpio pero se comporte igual en todos los demás aspectos (cambios de estado, notificaciones). también tendremos que descubrir el aspecto de la interfaz de usuario, de modo que no rellenemos como 10 de ellos, sino que permitamos agregar y quitar conmutadores "virtuales" según sea necesario.

thanks

Jaguaza avatar May 17 '20 11:05 Jaguaza

I’m very interested!!

alfons1000 avatar May 17 '20 11:05 alfons1000

I think the optimal solution would be to integrate this to issue #9 !!!

Pixel-Chris avatar May 19 '20 09:05 Pixel-Chris

I think the optimal solution would be to integrate this to issue #9 !!!

+1

Jaguaza avatar May 19 '20 11:05 Jaguaza

I guess this should be another easy one, now that code rewrite is done.

andyblac avatar Sep 21 '20 14:09 andyblac

indeed. but only after the roller shutter is done!

rojer avatar Sep 21 '20 15:09 rojer

as stateless switch is now coded, this should be fairly easy to add ? could it be added for 2.7.0 ?

andyblac avatar Dec 06 '20 13:12 andyblac

not for 2.7.0, but it is much easier after recent refactoring effort. maybe soon.

rojer avatar Dec 13 '20 04:12 rojer