How to use Attribute and only Time Value

Hi All

I am very new to Home Assistant.

I have a calendar entity, that has attributes that details the upcoming event I am interested in.

Start time 19 March 2023 at 10:00:00
End time 19 March 2023 at 12:30:00

I have a 2 part question.
1 - How do I use the attribute as a trigger / condition for an automation
2 - How do I strip the time value from the attribute, as I am not interested in the date.

The intended use is
If my home battery is less than 35%,
And the next power outage is 2 hours away (-2 hours from the above start time)
Switch my inverter to battery charge mode.

I would ideally like to use the UI and not YAML if at all possible


Create an automation with a Calendar Trigger with a 2 hour offset and a Numeric State Condition that confirms the battery is below 35.

Calendar Trigger
Numeric State Condition

You’re free to use whatever you want but automations are shared in YAML format, not as screenshots.

FAQ - Format it properly