Skip to content

Commit

Permalink
mqtt: add online stat
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Dec 9, 2023
1 parent c98e91c commit c9568df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/mqtt/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/mqtt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@
"@scrypted/common": "file:../../common",
"@types/nunjucks": "^3.2.0"
},
"version": "0.0.74"
"version": "0.0.75"
}
1 change: 1 addition & 0 deletions plugins/mqtt/src/autodiscovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ addBinarySensor(ScryptedInterface.BinarySensor, ScryptedInterfaceProperty.binary
addBinarySensor(ScryptedInterface.OccupancySensor, ScryptedInterfaceProperty.occupied);
addBinarySensor(ScryptedInterface.FloodSensor, ScryptedInterfaceProperty.flooded);
addBinarySensor(ScryptedInterface.AudioSensor, ScryptedInterfaceProperty.audioDetected);
addBinarySensor(ScryptedInterface.Online, ScryptedInterfaceProperty.online);

autoDiscoveryMap.set(ScryptedInterface.Thermometer, {
component: 'sensor',
Expand Down

0 comments on commit c9568df

Please sign in to comment.