Sonoff /eWeLink component Automation use

i’m trying to get the custom component Sonoff/eWeLink working as an automation with very little success
the custom component and switch creation works on the main lovelace ui,
when i go to set the automation up like below

Trigger: Trigger type-SUN: Event-Sunset,

Action: Action Type-Condition: Condition Type-State: Entity-switch.sonoff_1000796972: State-on

Nothing happens when i manually trigger it.
I can’t find the switch in anything other sub menu than an action type-“Condition” condition type - “state”
and i have looked in the init.py to see if there were any other Attrib values for on/off

thank you for any pointers