Hi,
i would like to know if it is necessary to test state of a device before call a service or if hass do it for us.
i means for exemple if i would like to call a light.turn_off, is it usefull to test if light state is not already off before calling the service, or hass do it and didn’t call the turn_off if the state is already off ?
the idea is just to optimize some things, and don’t launch a lot of useless command like a “all_off” script who will call something like group.all_light turn_off for maybe only one light to really turn_off
regards,