Can someone help me with an on/off representation of a particular switch in a sitemap?
I have a push button that controls ON (PushON) and another button that controls OFF (PushOFF) to control a light. I need to send an ON command to one of them to turn on or off the light:
PushON.sendCommand(ON) //turns ON the light
PushOFF.sendCommand(ON) //turns OFF the light
Is there a possibility to have one single switch button in a sitemap that when toggled left it sends ON to PushON and when toggled right it sends ON to PushOFF?
Okay, you are probably starting at the wrong end of the stick.
I would suggest trying to follow the Yeelight binding documentation to end up with your lamp represented as an Item in openHAB.
At that stage, you should be able to at least see it the admin PaperUI, and move on to creating a sitemap to be used with the end-user BasicUI.
If you have problems with that, best to start your own new thread, since this has little to do with simulating pushbuttons via a rule.