Hi,
I have an old Foscam FI8910W that can trigger a http GET request on motion. It’s not smart enough to talk to mqtt. Plus, I wouldn’t trust the camera to interact with a more capable system anyway.
Since a simple GET request sensor could be useful for other automation tasks, I created a binary_sensor called httpserver. It will open up a server port that listens for GET requests. Once the proper request is received, the corresponding binary_sensor is set to ‘on’ and then reset after an individually configurable time (perhaps allowing for certain emulation tasks).
You can configure binary sensors mapped to URL paths, for example
/motion/garage
can trigger a binary sensor named binary_sensor.garage_motion
. The number of such sensors is not limited, and the paths are freely configurable.
This component isn’t quite ready for inclusion in the main distribution (python isn’t my native language), but since it’s working fine for me, let me know what you think.