Hi, I’m not even really sure what to ask, but here goes
I’ve got a Broadlink RM4 pro set up to control my ceiling fan, but the fan remote doesn’t have discrete light on/light off buttons, but rather just one button to toggle the light on/off.
Is there a way for me to set the toggle to keep track of the state (from a defined known state) and make it work more like a switch? (like, if I call switch.turn_on, and it’s already on, to not send the command)?
The problem is that the Broadlink has no way of knowing whether the light is on or off - all it does is blast out the codes.
You might try using an input_boolean to mirror the state of the light. The input_boolean would be your on/off switch, with an automation to send the toggle command each time it was changed.