I have installed some ESP32s in some PIRs, all was working fine but now the PIR has stopped changing states. The tamper however is fine.
The Tamper changes state fine as is wired to PIN 27.
Its just the PIR that is not changing state, wired to PIN 26.
The tamper is Shorted (continuity) on Closed, open circuit on open.
The PIR is closed (continuity) when no motion detected, and open circuit when motion is detected.
Right now, the tamper is behaving as it should, however the PIR just wont change state at all.
Any ideas?
Thanks
binary_sensor:
- platform: gpio
pin:
number: 27
mode: INPUT_PULLUP
name: "Tamper"
filters:
- platform: gpio
pin:
number: 26
mode: INPUT_PULLUP
inverted: True
name: "PIR"
filters:
sensor:
- platform: wifi_signal
id: wifi_signal_db
name: "WiFi Signal Sensor"
update_interval: 60s
- platform: copy # Reports the WiFi signal strength in %
source_id: wifi_signal_db
name: "WiFi Signal Percent"
filters:
- lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
unit_of_measurement: "Signal %"
entity_category: "diagnostic"