Skip to content

Commit

Permalink
Update Google Send State categories
Browse files Browse the repository at this point in the history
  • Loading branch information
coldfire84 committed Jan 23, 2020
1 parent 4b3d867 commit f3e97e9
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/services/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,18 +278,31 @@ const sendGoogleHomeState = async(user, device) => {
// Per-device type send-state configuration, can enable/ disable Alexa and/ or Google Home
if (device.displayCategories.indexOf("CONTACT_SENSOR") > -1) {
enableDevTypeStateReport = true;
//sendGoogleStateUpdate = true;
}
else if (device.displayCategories.indexOf("MOTION_SENSOR") > -1) {
else if (device.displayCategories.indexOf("INTERIOR_BLIND") > -1) {
enableDevTypeStateReport = true;
sendGoogleStateUpdate = true;
}
else if (device.displayCategories.indexOf("THERMOSTAT") > -1) {
else if (device.displayCategories.indexOf("EXTERNAL_BLIND") > -1) {
enableDevTypeStateReport = true;
sendGoogleStateUpdate = true;
}
else if (device.displayCategories.indexOf("FAN") > -1) {
enableDevTypeStateReport = true;
sendGoogleStateUpdate = true;
}
else if (device.displayCategories.indexOf("LIGHT") > -1) {
enableDevTypeStateReport = true;
sendGoogleStateUpdate = true;
}
else if (device.displayCategories.indexOf("MOTION_SENSOR") > -1) {
enableDevTypeStateReport = true;
}
else if (device.displayCategories.indexOf("THERMOSTAT") > -1) {
enableDevTypeStateReport = true;
sendGoogleStateUpdate = true;
}
else if (device.displayCategories.indexOf("SMARTPLUG") > -1) {
enableDevTypeStateReport = true;
sendGoogleStateUpdate = true;
Expand Down

0 comments on commit f3e97e9

Please sign in to comment.