Quick question: I want to pass a string from my device to a smartapp when the device throws an event. How?
Long story; I’m so close to having my x10 integration working. However, one thing I need to do is pass the x10 module (such as A15) and command for the device (such as ON) to a smartapp I’m writing. I need something like the following event:
sendEvent(name: ‘x10commandExecuted’, value: ‘A15-On’)
I think I’m limited to the built-in events, because when I try to throw a custom event, it just gets ignored in the smartapp, even though i’m subsubscribing to the matching event name. So, if I have to use built-in events, then something like the following could work:
sendEvent(name: ‘switch’, value: ‘on’, attr: ‘A15-On’)
I’m pseudo-coding here because I’ve been trying every seemingly possible way to get it to work for the past 4 or 5 hours and can’t. I know there’s got to be some magic to making this happen (custom events that I don’t understand, attributes I can read from the device, SOMETHING)…
Can anyone help?