Documentation: https://esphome.io/
For issues, please go to the issue tracker.
For feature requests, please see feature requests.
Category: C/C++ / Miscellaneous |
Watchers: 158 |
Star: 2.9k |
Fork: 738 |
Last update: Jan 2, 2021 |
Documentation: https://esphome.io/
For issues, please go to the issue tracker.
For feature requests, please see feature requests.
I recently ordered one of these NEO Coolcam PIR WIFI sensors.
The PIR itself is quite handy and small (sized like a golf ball). When you take it apart you find a ESP8266EX and a lot of pinholes to connect to. Have a look at forum diskussion here.
The standard software is placed in the tuya/smart life universe and the PIR supports IFTT. Some sellers mention amazon alexa and google home support, but that is not integrated (yet?).
The original behaviour of the PIR is to detect movement, give a signal with the integrated LED's when movement is detected and return to deep sleep if there isn't any movement for 60 seconds.
when connecting the marked pins it is possible to flash the pir and extract the original firmware. the esphomeyaml I created so far looks like this:
esphomeyaml:
name: pir2
platform: ESP8266
board: esp01_1m
board_flash_mode: dout
wifi:
ssid: MyHomeNetwork
password: VerySafePassword
domain .veryowndomain
mqtt:
broker: ip
username: user
password: MyMQTTPassword
logger:
level: VERY_VERBOSE
debug:
ota:
password: passwd
binary_sensor:
- platform: gpio
pin:
# number: GPIO1
# number: GPIO2
# number: GPIO3
# number: GPIO4
# number: GPIO5
# number: GPIO12
# number: GPIO13
# number: GPIO14
# number: GPIO15
name: "esp_xxx_pir"
device_class: motion
## https://esphomelib.com/esphomeyaml/components/binary_sensor/status.html
- platform: status
name: "esp_xxx_pir_system_status"
id: "esp_xxx_pir_system_status"
sensor:
## https://esphomelib.com/esphomeyaml/components/sensor/uptime.html
- platform: uptime
name: "esp_xxx_pir_system_uptime"
id: esp_xxx_pir_system_uptime
## https://esphomelib.com/esphomeyaml/components/sensor/wifi_signal.html
- platform: wifi_signal
name: "esp_xxx_pir_system_wifi_signal"
id: esp_xxx_pir_system_wifi_signal
update_interval: 15s
With that configuration boot-up is working, mqtt is working wifi-OTA is working. So far none of the GPIO's was sucessful in keeping it alive or sending a signal. Exactly after 60 seconds the PIR is dead and has to be repowered manually. So I think I have to figure out how to get the signal after deep sleep wake-up (that has to happen without programming I think).
Would it be wise to set the GPIO's to OUTPUT mode? Any ideas how to procede?