I have a custom alarm panel UI with a countdown timer that shows when arming or pending. The countdown timer needs to know the number of seconds configured in the manual alarm config for the current state- so it can countdown for that number of seconds.
Previously (back in 2020) I had modified device_state_attributes in the HA manual alarm component to publish its current state duration. But my pull request was declined- they said “The alarm times are configured. We don’t allow storing configuration in the state machine.”
Is there a way from within my custom card javascript to access the config for the manual alarm? Can I reach the dictionary for the system-wide config? Or can/should I try to open/parse the configuration.yaml directly?
Thanks for any tips and advice!
-John