https://www.beaconzone.co.uk/allbeacons/iBS02M2for a switch input you can try above BLE-beacon.
It sends a BLE advertising message when contact opens/ closes, runs on 2 CR2032 batteries. It can be up to 30 m away from the RPI (in a building w sheet rock (wood) walls, outside .. 100 m, not tested).
Better than WiFi sensors (ie shelly) as those just "eat" batteries. This one should last several years. Also the Wifi switches need to walke up contact the router, get an IP# and then send, that can take several seconds. This one is < 0.4 secs from switch change to the indigo device state change.
They have different versions of this one ( touch, magnetic, IR ..) the inside is the same besides the actual on/off sensor (mechanical, magnetic, IR short distance long range IR ..)
They are really ugly but work very well.
Also for magnetic - door window sensor try: url]https://www.beaconzone.co.uk/sensor/IM21[/url]
simple on/off, also very fast, and small and looks nice.
Similar for water leak:
https://www.beaconzone.co.uk/sensor/EW70I use now the 4 button remote
https://www.beaconzone.co.uk/sensor/RC10 for my alley way sliding door and garage door: alley way door (3 buttons) open/close/stop --> 3 relays on RPi and garage door (one button) open/stop/close --> one Insteon switch connected to the garage door motor.
This are all very solid beacons that run on CRxxx battery cells, wake up for a message send the message and go back to sleep, very fast and long battery life
Karl