diff --git a/src/main.ts b/src/main.ts index e05327e1..24a6bd37 100644 --- a/src/main.ts +++ b/src/main.ts @@ -425,6 +425,11 @@ export class PaperButtonsRow extends LitElement { hex = styles.getPropertyValue(`--state-${domain}-${active}-color`); if (hex) return this._hexToRgb(hex); + + if (stateObj.state === STATE_ON) { + hex = styles.getPropertyValue("--state-active-color"); + if (hex) return this._hexToRgb(hex); + } } };