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 allBedrooms = ["All Bedrooms"]
|
||||||
const masterBedroom = ["Master Bedroom", "Master Bedroom Echo Dot"]
|
const masterBedroom = ["Master Bedroom", "Master Bedroom Echo Dot"]
|
||||||
const commonAreas = ["Common Areas"]
|
const commonAreas = ["Common Areas"]
|
||||||
|
const alexaEverywhere = ["alexa_everywhere", "Alexa Everywhere"]
|
||||||
const room = msg.topic
|
const room = msg.topic
|
||||||
const voice = msg.voice || global.get("jarvis_voice", "diskCon")
|
const voice = msg.voice || global.get("jarvis_voice", "diskCon")
|
||||||
const type = msg.type || "normal"
|
const type = msg.type || "normal"
|
||||||
@ -29,6 +30,8 @@ if (livingRoom.includes(room)) {
|
|||||||
msg.topic = "master_bedroom"
|
msg.topic = "master_bedroom"
|
||||||
} else if (commonAreas.includes(room)) {
|
} else if (commonAreas.includes(room)) {
|
||||||
msg.topic = "common"
|
msg.topic = "common"
|
||||||
|
} else if (alexaEverywhere.includes(room)) {
|
||||||
|
msg.topic = "alexa_everywhere"
|
||||||
} else if (room === "Everywhere") {
|
} else if (room === "Everywhere") {
|
||||||
msg.topic = "everywhere"
|
msg.topic = "everywhere"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user