Hello, very new to openhab and i have a question on using the switch.
I have cannibalized some cheapo RF controlled outlets to control some lights.
I am using the remote that came with the outlets as a transmitter to turn the outlets on and off using GPIO’s on a Raspberry pi 3 and it does work.
The main problem is the remote transmitter that turns the outlets on has a separate on switch and an off switch for each outlet. Under my very basic setup I currently have to have 2 switches for each light.
What i would like to do is when the switch is turned to “ON” it will turn on a GPIO pin for 1 second, then when the switch is turned to “OFF” it will turn on a different GPIO pin for 1 second.
Is this possible?
Would i use a rule for this? or would this be done in the item section of the switch?
I have had a lot of fun getting to this point, but I am struggling to get the syntax used.
Thanks in advance for any help.
Ryan