How can you read a device's preferences from an app?


#21

I thought that was what I said, too. But I must have explained it with the wrong words. :smile:

Thanks!


#22

@chuck.schwer That's exactly the behavior I'm wanting but I don't see it in the hub's logs so I assumed I had to wire it in myself. Is there something I could be doing that is keeping it from the log? Perhaps related to it being a child device to a parent device?


#23

none of that should affect it. Have you tried turning it off, clicking save and then turning it on and clicking save then click the open and close buttons? copy and paste the logs of that here.


#24

@chuck.schwer It's that simple! I was doing a myDevice.sendEvent(name: "contact", value: "open") and that did not trigger writing to the log. When I did myDevice.open() it did write it to the log. So the logging is part of the open/close command and not part of an event handler. Makes perfect sense now that you say that. Thanks!