[Breaking Change] Change HCSR501 MQTT key to 'presence' (#710)
* Change HCSR501 MQTT key to 'presence'
This commit is contained in:
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user