Help and Explain

I am learning to do some automations , like turn off a sonoff lamp
Under service , I see there is one called " Homeassistant_turnoff" and one called “switch_turnoff”

Which one would you use to turn OFF a Sonoff lamp ?

Trying understand the difference between the two?

Thanks

Depends on entity id, for entity called “switch.whatever” use service “switch.turn_off” for entity called “light.something” use service “light.turn_off” and so on

1 Like

That’s Help and Explain please

Thanks appreciate the help