Easer icon indicating copy to clipboard operation
Easer copied to clipboard

Help: Bluetooth off at home SSID or at night

Open morrogenduath opened this issue 5 years ago • 1 comments

Hi, I can't grasp the logic to build this automation: Bluetooth should be off when

  • between 23h00 and 7h00
  • connected to my home SSID

Bluetooth should be on when

  • not connected to home SSID OR Wi-Fi is off IF it's not night (between 23h00 and 7h00)

Basically, When I'm sleeping (between 23h00 and 7h00), I turn off my Wi-Fi, and Bluetooth should always be off. When I'm at home, Bluetooth should be off. When I'm not at home (so either Wi-Fi off or connected to a different SSID), Bluetooth should be on.

I know I can make profiles for Bluetooth on/Bluetooth off; and conditions for Wifi off or Wifi connected to SSID; I'm not entirely sure about the time window, but the biggest problem is connecting all the things together to make it work.

Thank you for any help.

PS. Not a bug, just asking for help.

morrogenduath avatar Oct 10 '20 20:10 morrogenduath

Hi, sorry for the looooong delay. I was quite busy during the time.

You actually have figured out most parts, and the timing thing is actually very simple too: You need two Events, one for after 23:00, one for before 7:00. The potentially tricky part is how to connect them. You need to "chain" them by setting "parent" in the Scripts. Examples can be found in #62 or #152 , as pointed through the wiki.

renyuneyun avatar Sep 04 '21 23:09 renyuneyun