There isn't a specific hold status. There is a "last event" item. From looking at my logs, it looks like manual change (which creates a hold) reports this:
- Code: Select all
"latestEventType": "hold",
And when the hold ends, you get this:
- Code: Select all
"latestEventType": "template",
So I can probably expose that "latestEventType" as a state, and then you could trigger on it changing. There might be other values as well. I would need to see what it does with vacations, etc.