Control plug with wall switch by automation

Cupertino, October 22, 2020

I need help.

I have a smart wall switch that I want to use to control the lamps on a smart outlet. The wall switch is not connected directly to the socket, so this must be done with the automations. Also, since I sometimes control the switch directly (from my phone or by voice), I found that I have to configure 4 automations for this:

If the wall switch is on - turn on the plug

If the wall switch turns off - turn off the plug

If the connector is on - turn on

If the plug stops - stop

The problem I have is that due to slight delays, sometimes when the switch is pressed several times, the whole combination falls into a loop, starting and stopping continuously.

Is there a better way to do this? I feel that it must exist, that I am missing something. I thought I could group the switch and the connection so that it behaves like a single unit, but that doesn't seem to work either.

Any help would be greatly appreciated!

Best selling & Top trending HomeKit product in our shop at this moment

HomeKit.Blog is in no way affiliated with or endorsed by Apple Inc. or Apple related subsidiaries.

All images, videos and logos are the copyright of the respective rights holders, and this website does not claim ownership or copyright of the aforementioned.

All information about products mentioned on this site has been collected in good faith. However, the information relating to them, may not be 100% accurate, as we only rely on the information we are able to gather from the companies themselves or the resellers who stock these products, and therefore cannot be held responsible for any inaccuracies arising from the aforementioned sources, or any subsequent changes that are made that we have not been made aware of.

HomeKit.Blog Is A Participant In The Amazon Services LLC Associates Program, An Affiliate Advertising Program Designed To Provide A Means For Sites To Earn Advertising Fees By Advertising And Linking To Amazon Store (, Or,,, Or

The opinions expressed on this website by our contributors do not necessarily represent the views of the website owners. 

Copyright © 2022 HomeKit Blog
. All rights reserved
United States