With a double switch each switch as its own device id so we can use
luup.call_action(“urn:upnp-org:serviceId:SwitchPower1”, “SetTarget”, {newTargetValue = value}, device)
To set its state
But the S2 on a Dimmer 2 does not have its own deviceid, how can I set the state of the Dimmer 2 using luup?
The use case is that I want to sync it woth the actual state of a remote associated light so that the light and the S2 is always in sync, otherwise I some times need to press S2 twice for the light to sync with the switch