Add "Alexa Everywhere" to speech engine subflow
This commit is contained in:
@ -7,6 +7,7 @@ const kidsBedrooms = ["Kids Bedrooms"]
|
||||
const allBedrooms = ["All Bedrooms"]
|
||||
const masterBedroom = ["Master Bedroom", "Master Bedroom Echo Dot"]
|
||||
const commonAreas = ["Common Areas"]
|
||||
const alexaEverywhere = ["alexa_everywhere", "Alexa Everywhere"]
|
||||
const room = msg.topic
|
||||
const voice = msg.voice || global.get("jarvis_voice", "diskCon")
|
||||
const type = msg.type || "normal"
|
||||
@ -29,6 +30,8 @@ if (livingRoom.includes(room)) {
|
||||
msg.topic = "master_bedroom"
|
||||
} else if (commonAreas.includes(room)) {
|
||||
msg.topic = "common"
|
||||
} else if (alexaEverywhere.includes(room)) {
|
||||
msg.topic = "alexa_everywhere"
|
||||
} else if (room === "Everywhere") {
|
||||
msg.topic = "everywhere"
|
||||
}
|
||||
|
Reference in New Issue
Block a user