Widget color dependent on harmony state

I am still in the trial/testing phase of HA along with HADashboard. So far I have only integrated harmony hub and once I get that working fully how I want I’ll move to the next piece of the puzzle.

Currently I have 4 Harmony Activities that get called via scripts and through script widgets on HADashboard. What I am wondering is, if I create an automation to track current activity of the harmony hub, how can I trigger that back to the widgets and change the background of the corresponding widget white or any color I choose?