- Posted on
Mon Oct 11, 2021 7:48 am
-
WagnerOne
offline
-
- Posts: 150
- Joined: Jun 12, 2009
- Location: Chicago, IL
-
I came here looking for similar information.
Using a python action script I wondered if I can get the command "Received" via "Any Command".
I'm guessing no after reading this, but my case is a bit different in that I am trying to obtain it from a particular Device receiving the "Any Command" .
I want to use this information in the action to do various things (e.g., include the command in the notification, etc.).
Alternatively I was thinking I could have a trigger that listens for "Any Command" and, when the python action runs, it could get the state of the particular Device.
I'm not sure how reliable this approach is and/or what I should assume is the default in case it fails or the command isn't received and interpreted quickly enough for the python action state check to get a reliable, accurate state. In this case it's a TriggerLinc that is attached to a door. I guess I could assume the state is "open" in this use case and then at worst I'd have false positives the door is open.
Thanks,
Mike