bruhautomation / ESP-MQTT-JSON-Multisensor

(OBSOLETE) ESP MQTT JSON Multisensor for Home Assistant. Supported sensors include the TEMT6000 light, AM312 PIR, DHT22 temperature/humidity sensors. RGB led supports flash, fade, and transition. Over-The-Air (OTA) uploading, too!
https://youtu.be/jpjfVc-9IrQ
Apache License 2.0
340 stars 152 forks source link

PIR Enhancements #42

Open rdbahm opened 6 years ago

rdbahm commented 6 years ago

Some basic changes to PIR functionality - most importantly, changed the PIR from a "sensor" to a "binary sensor," which should be a better platform to base that kind of sensor on - we even get a fancy icon that changes color for motion! This also means that it should act similarly to other properly configured motion sensors in our environments.

I also broke out the spot where the PIR string is defined in case people want to simplify it down to "on/off" etc, but left the defaults for compatibility with old HASS configurations.