Climate - Override hvac_mode with hvac_action as the state

HI. Is there a way to override the climate entity state? I’m using a custom thermostat card that can change colors based on heat, cool or idle and its using hvac_mode as the state. I want the color to change based on if its actually in use vs. always staying orange because the hvac_mode is set to heat while the hvac_action is idle,

Bump. Anyone know if this possible?

Have got any response? I have the same issue. I want to control my thermostats but I don’t know my options.

I think the problem is the custom card you’re using as the climate.thermostat's state reflects its hvac_action if you check it in Developer tools -> States.
Therefore there is no need to change climate entity state, ask the author of the card to fix it or DIY.