Home_assistant.call_service.turn_on

Hi,

I was wondering which domains were supposed to be supported by this?

Obviously lights and switches, but what about covers, locks, etc. The UI lets you call this on a cover/lock, but it doesn’t seem to do anything. Is this intended functionality?

I would have assumed turn_on would correspond to cover.open and lock.lock.

The service is homeassistant.turn_on.

It only works on domains that have the states on and off. So not covers or locks.

The UI lets you do many things you should not. You could write a blog in the yaml editor for example (no one should ever write a blog).

Should I log this as an issue against the UI?

Probably not. Filtering the available services based on the selected entity is more of a feature request. You can do that in the Github HA frontend Discussions.

However there are issues with doing this that would need to be considered:

What if the user selects an area?

What if the service is selected before the entity?