I am sorry if this has been discussed before and I am just searchwise challenged but I really haven’t managed to find a solution to my problem. So here it goes, feel free to direct me to “this is discussed thousand times before” thread.
Question is - can I set the state of the device from another device handler or smartapp? Rough description of my goal:
- I have a device handler for BroadLink device that is defined as capability.Switch
- I have a device capability.contactSensor
- I want to have the state of the Switch to change to On when the contactSensor state turns to Open WITHOUT running Switch.on() method, ie just change the state without doing the actual stuff that is done when the switch is turned on (sending the corresponding BL command)
Basically I want to achieve the situation where user has the option to turn OFF the switch, which seems to be in open state because of contactsensor being open.
Writing this makes me feel like a total noob, it should be the most simple thing to do but for some reason I can’t get the pieces together.