Did something similar to monitor my DSC alarm panel, I also used examples from Charles, your code is a lot cleaner than mine.
1 Like
Thanks.
That clears a lot of things up.
From my research, I thought that setting the DNI to the hex IP:PORT of the device was the only way to get parse() to work, but your script proves otherwise.
The documentation states that you can also setup inbound HTTP requests so you can call different functions based on the method.
mappings {
path("/sample") {
action: [
GET: "listMethod",
PUT: "updateMethod"
]
}
}
Havenāt seen that in docs. probably something new.
Found it in SmartAppās endpoints section.
Was not applicable to me because I wanted to implement everything on DTH level.