Capture/Restore not Working

I have a rule that I have been using for some time, to run certain devices when TV is turned on, then to restore after TV has been turned off.

Everything works properly, except for the capture and restore of the two side lamps.
Logs show that everything was completed properly, no errors.

Any suggestions?

It’s always a good idea to include a screenshot of the logs.

Based on the information provided, I suspect an issue with the message getting to one or both of the lamps. Did you enable the new retry functionality for those devices? If not, I would start with that. If it still doesn’t work, I would recommend including logs for the devices as well as the rule.

Good call.
So, in the log, it looks like the rule is being re-triggered every time the power is reported. Therefore, once TV turned off, the value of the lamps that were set when the mode was started is the value they are restored to.

Suggestions?
Also, could not find the retry functionality you spoke of.

You're going to have to find some way to prevent the rule from re-triggering while you're waiting. An easy option might be adding a required expression of Private Boolean true, setting it false as the first action in your rule (or any time between then and right after the capture), and then setting it back to true after your restore.

Something like "power <= 68" would almost work but for the "and stays" (but would otherwise be easier and less sensitive to interruption) -- but won't in this case since it will take you back to your original problem when the does this kind of fluctuation that it looks like you're trying to avoid.

Someone else might be able to think of another way, as well.

2 Likes

Could I use Speakers Unmuted as a required expression?
That way, once they are unmuted after watching TV, the lights would return to original state, and the rule would not be triggered again.
Thoughts?

If the devices accurately report this state back to the hub, then I don't see why that wouldn't work, too!

1 Like

Looks like it does work. I need to test the rule for a longer time, but I think adding the Speakers Unmuted as a Required Expression does the trick.

3 Likes

Awesome!

So, here is an update.
Things have stopped working as defined by the rule.
Here are the logs:


Shows that everything should have worked as indicated. Yet, the speakers did not unmute, and the lamps did not restore properly.

Next steps for troubleshooting?

Can you turn on full logging on the speaker and the lamp to see what they are reporting?

I assume that from the device screen, they respond correctly?

Not sure what is going on. It has been working lately. Sigh.
I think in the morning, there were different starting positions of things (sounds confusing, I know).
Will look at logs next time I activate.

1 Like