How to use the on_...: then: statement

hi all,
how can I create switches using
output:
on_…:
then:
statement?
I have a pipsolar inverter and will like to create switches/automations for the following output statement:

output:
  - platform: pipsolar
    pipsolar_id: inverter0
   **charger_source_priority** (*Optional*): charger source priority;
   **possible_values** (*Optional*, list): a list of possible values default: 0,1,2,3

thaks,
Miguel

I think we might need just a little bit more information than you have provided.
For example - just as a start, this doesn’t look like Home Assistant configuration code, it looks like it’s more ESPHome?

Eg:

Moved to ESPHome.

1 Like