Make automation component startup earlier

Hi,

I made this test automation where I want to perform an action when a specific value is higher than the threshold.
Like this: http://hastebin.com/ezomunacus.sm

But, since this is almost always true, the action will never get executed since the value of ‘sensor.panelen’ is above the threshold when calculating using the old_state and new_state when an event is fired.

Looking in the code of the numeric_state i noticed that it should trigger when the old state didn’t exist or didn’t match the threshold: https://github.com/home-assistant/home-assistant/blob/8df91e6a17fb1a5bb6ad2bddca4087857b8e0cb4/homeassistant/components/automation/numeric_state.py

I looked in the logs and noticed that there is an event where the old state is None and new state is the new value.
Unfortunately, the automation component is not started up before the event is fired.

Now, Is there a way that i can make the automation component start up earlier or delay the first events send out by the sensor component?

Did anyone experience something similar?

Kind Regards,
Wafje

The automation component is started up after all devices have loaded on purpose. Otherwise it would cause too many triggers while the system is starting up.

If you want to run something when the system starts up, create an automation that is triggered by the homeassistant_start event