Play Emma's door alert on all Echo Dots unless told otherwise

This commit is contained in:
2025-03-29 15:50:12 -04:00
parent bac4c67530
commit 69099d1d0e

View File

@ -12,7 +12,7 @@ const topic = msg.topic
// Set some default values
let who = 'Master Bedroom'
let who = 'Alexa Everywhere' // Default to playing on all Echo Dots unless told otherwise
let tinaAvailable = false
let tonyAvailable = false
let enable = false
@ -28,10 +28,10 @@ if (xiaDesktopUser === 'irish' && xiaDesktopIdle === 'off' && tinaLocation === '
tinaAvailable = true
}
// Determine where to send the alert to
// If both of us are still asleep, or I am asleep and she is at work, play the alert only in the master bedroom
if (tinaAvailable === true || tonyAvailable === true) {
who = 'Common Areas'
if (tinaAvailable === false && tonyAvailable === false) {
who = 'Master Bedroom'
}
// Determine if the alert should be sent