1technophile / OpenMQTTGateway

MQTT gateway for ESP8266 or ESP32 with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility & LoRa.
https://docs.openmqttgateway.com
GNU General Public License v3.0
3.62k stars 799 forks source link

[HCSR501 ] Update sensor publication criteria #1846

Closed diepeterpan closed 10 months ago

diepeterpan commented 11 months ago

Description:

Improve performance by avoiding unnecessary calls to handleJsonEnqueue when the HCSR501 sensor's state did not change

Checklist:

1technophile commented 10 months ago

Thanks

diepeterpan commented 9 months ago

Wait a minute, what did I do here, this is not 100% correct, now my one sensor is not working, I am going to rework this, sorrrrrreeeeeee. Will create a new pull request once I fixed it.