Detect When Chromecast Device No Longer Casting in HE Rule

What is the best way to detect when a Chromecast device linked to HE stops casting? I seem to get mixed results with triggering RM rules on the mediaSource attribute "changing" or detecting it as being "None". I need to do more troubleshooting to be sure about exactly what circumstances are not working as expected... Would appreciate others input... I feel like I may have posted about this before, apologies if that is the case...

As some background.... I have a Tasker prfile on my phone and tablets to send a string to a device using my Generic Attribute driver with the name of the currently cast media. I then have an RM rule to reset the Generic Attribute device string when the the chromecast device is no longer casting, but it does not always reset the media title. Here's the reset rule:

Could it be because of the double trigger? As written, that would fire twice when the media source goes to none. Maybe that's borking the whole thing?

1 Like

Hmmm... interesting thought... but I did think I put those in because it was not firing as expected... but certainly something worth investigating.... Might separate them into separate rules.... Thanks.

I mean having a trigger as mediasource changed and mediasource none. When it goes from something to "none", both those triggers would be fulfilled. Given HE doesn't deconflict anywhere else, I presume that will result in the rule running twice. I could be wrong though.

I'm pretty sure that part of the rule was something where one of those did not fire... been a while since I set this up or last played around with it.... Am keen to incorporate this into a broader App I want to develop, but needs to be consistent.