I've copied this from my thread on this. It workds extremely well.
At night time: whenever either my wife or I charge our phones by plugging in the cable on the bedside, and place the phone facedown, our Android phones call local end points which flicks a virtual switch in HE, causing the bedroom to go into "quiet time", thanks @april.brandt. When we both have gone to bed, the mode changes to NIGHT, and turns on the alarm.
Upon wake up, the reverse occurs, and it's working well. The split second the phone is unplugged, the house wakes up for the first person, and the room wakes up for the second.
I'm also using variables in tasker to stop it spamming the local end points multiple times per day, although that's not a huge problem as we have wireless charging points around the home (but not the bedroom).
Local end points will stop this rule in it's tracks it if I'm ever on vacation. Initially I was using cloud end points, but local is far superior. For testing purposes, I've also got who is still in bed on my dashboard - and it could be considered stalking or abuse!