https://i.imgur.com/M7UqxqQ.jpg https://i.imgur.com/rZY2xfN.jpg So I have this automation for a long press of a button on my nightstand, with a bunch of nested statements if . What are some of your practices for resolving excessive nesting of conditional clauses? The idea behind it is quite simple. -If all the lights are already off -> triggers a good night scene, this ensures that all appliances are turned off and specifically turns off the bedroom TV and plays ambient music -If some lights are still on, you just need to turn off all the lights and other appliances (not the TV in the bedroom), so I can watch it …. before I press the button a second time. Sorry, I didn’t find a single answer, so I asked for suggestions here. I’m new to Apples HomeKit and I just moved to the iPhone and the Apple ecosystem.
Nested statement statement IF
Do you love writing reviews for smart home devices and other IoT? Publish it on HomeKit BLOG and become famous
accessories Airplay App Apple Application Aqara automation automations camera cameras Circle compatible Control devices Door Eufy Eve garage Home HomeKit HomePod hub Hue iOS iPad light lights Lock Logitech motion Problems Question room secure sensor Siri Smart support Switch Switches turn Update Video Wifi work