[Breaking Change] Change HCSR501 MQTT key to 'presence' (#710)

* Change HCSR501 MQTT key to 'presence'
This commit is contained in:
Jon authored and GitHub committed 2020-07-26 08:14:06 -05:00
1 parent f9787312a3
commit 61f7843e40
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ If you don't want to resend values that haven't changed you can set DS1820_ALWAY
### HCSR501
A boolean value of the PIR sensors state is sent when a state change occurs. The length of time that the PIR stays in a triggered state depends on the PIR hardware and is not changed by OpenMQTTGateway.
`home/OpenMQTTGateway/HCSR501toMQTT {"hcsr501":"false"}`
`home/OpenMQTTGateway/HCSR501toMQTT {"presence":"false"}`
You can have another PIN mirror the value of the PIR sensor output by adding the following to config_HCSR501.h
This can be useful if you would like to connect an LED to turn on when motion is detected.