- #LOGITECH ALERT COMMANDER OPENHAB SERIAL#
- #LOGITECH ALERT COMMANDER OPENHAB MANUAL#
- #LOGITECH ALERT COMMANDER OPENHAB TV#
The Pi will listen to serial communication with a small Python script and receive a small JSON payload from the microcontroller: So I just let it touch my old-fashioned mousetrap, and when the trap is moving, the sensor will be triggered and send a small packet to the Raspberry Pi Zero WH. It is based on a microcontroller connected to a HAT on a Raspberry Pi Zero WH which acts as a gateway for this custom long-range RF communication:
After complaining about this at a Christmas party, a friend of mine, Thomas Jørgensen, came to the rescue with a custom-made hardware solution. I researched online, but was not able to find any attractive solutions. To accommodate both problems and optimize the “mousetrap operational uptime” I wanted/needed a connected mousetrap. This has (also) left the mousetrap out of function for longer periods.
In other cases a mouse has successfully eaten the bait without having been caught.This is a quite undesired discovery when finally checking. In some cases a mouse has been caught and left for weeks or even months unnoticed.This has spawned two problems based on mousetraps not being checked systematically or frequently:
#LOGITECH ALERT COMMANDER OPENHAB TV#
Note: Devices might not respond or return an error to some command when the device is powered off which will make your items look in a wrong state until the TV turns on.įor instance, getting the volume status when the device is off makes no sense.Bothered by mice living in our attic, we have set up simple mousetraps and caught multiple mice every winter. If your device documentation doesn't give such information, you can look at the "LG protocol references" below and use the "Generic LG TV" thing which should contain all the different possible channels/commands. Sets the volume, values are from 0 to 100Īs for others, please refer to the documentation of your device in the section named "Controlling the multiple product", "External control" or any section that refers to RS-232, the names of the channels map the command names. Channel type idĪdjust screen format, at least 4:3, 16:9 formats The following channels are common to most TV through the serial or service port, taken from. However, the item values for the thing with set id 0 will never display the right values as it receives responses from many devices. That allows you to have a thing that will handle a particular device (with set id other than 0), and another to send command on all devices (with set id equals 0). The set id can also be specified when using daisy-chaining. On Linux systems, this will usually be either /dev/ttyS0, /dev/ttyUSB0 or /dev/ttyACM0 (or a higher number than 0 if multiple devices are present). It is necessary to specify the serial port device used for communication.
#LOGITECH ALERT COMMANDER OPENHAB MANUAL#
No discovery supported, manual configuration is required.