Play Emma's door alert on all Echo Dots unless told otherwise
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user