I want to trigger off the activity of a shim device. (every update of the device). I first set up the trigger using the shim specific triggers, but the trigger never 'triggers'. Setting up the trigger as a 'device state change' does work. Is this normal behavior, a plugin issue or user error: (Note: There are no conditions with any of these. The action just executes a script.)
Trigger 1 (never 'triggers'):
Trigger 2 (never 'triggers'):
Trigger 3 (Triggers as expected/action runs):
My appologies if I was unclear with my description in another topic thread.
Side question: Can I skip the "Shim" trigger alltogher and add an action to the Connector Match trigger? I only ask this because this is the first time I've seen the use of a trigger without an action.
Shim Trigger Question
Shim Trigger Question
Bill
My Plugin: My People
My Plugin: My People
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Shim Trigger Question
That's strange. I need debug logs for both the connector and shim plugins when one of these messages arrives. Probably better to create a GitHub issue for this.
You should be able to trigger off the message received at the connector. The only reason that the connector plugin has the shortcut "action" is because I was afraid that a flood of MQTT messages arriving very rapidly could cause a race condition where a subsequent MQTT message received could overwrite the connector state values before an action could process them.
You should be able to trigger off the message received at the connector. The only reason that the connector plugin has the shortcut "action" is because I was afraid that a flood of MQTT messages arriving very rapidly could cause a race condition where a subsequent MQTT message received could overwrite the connector state values before an action could process them.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: Shim Trigger Question
No problem. I'll stop posting on this thread and move this over to GitHub.FlyingDiver wrote:That's strange. I need debug logs for both the connector and shim plugins when one of these messages arrives. Probably better to create a GitHub issue for this.
Yeah, that's why I was hesitant on using that action.FlyingDiver wrote:You should be able to trigger off the message received at the connector. The only reason that the connector plugin has the shortcut "action" is because I was afraid that a flood of MQTT messages arriving very rapidly could cause a race condition where a subsequent MQTT message received could overwrite the connector state values before an action could process them.
Bill
My Plugin: My People
My Plugin: My People
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Shim Trigger Question
It's really only an issue if you actually need data from the topic or payload to be passed to the action (via device state). If the actions can run just based on the initial trigger, it should be fine.Yeah, that's why I was hesitant on using that action.FlyingDiver wrote:You should be able to trigger off the message received at the connector. The only reason that the connector plugin has the shortcut "action" is because I was afraid that a flood of MQTT messages arriving very rapidly could cause a race condition where a subsequent MQTT message received could overwrite the connector state values before an action could process them.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: Shim Trigger Question
I really don't need the data, so I can put the action in there. I just need to know that a message was received under that topic.
Bill
My Plugin: My People
My Plugin: My People