I have 2 bedroom side lights powered from Sonoff Basics and controlled by their own RF light switches and a Main switch Sonof T1) in the entrance to the room that uses a rule to turn the sidelights on at the same time.
Because the side lights can be turned off independently after they are BOTH turned on from the main entrance switch i am looking for rule that will report back to the main switch once both side lights are off.
All Sonoff items are running Tasmota and are set up already communicating to the MQTT server
These RF light switches are receivers only. They cannot feed back their state to the RF bridge and therefore to openHAB.
Unless you find a way to feed back to openHAB the actual state of the light switches, your requirement cannot be met.
Unfortunately, 433MHz tech is very limited. I suggest that you get two more sonoffs for your bedside lamps
No I don’t
I asked you what RF technology you used for the lights and you said 433Mhz. So I answered accordingly.
How are the two sonoffs configured? Are you using them with the original firware or have you flashed them with something like tasmota?