Best approach, check state>call service or just to call service?

I’m just wondering what is the best approach situations like these. Have current state nodes to check status of entities or to just to call services regardless


or does it not matter?

If it’s not required by automation logic and not required by the device (I don’t now any) then short answer is: no, you don’t need those conditions.

Long answer would touch description of distributed systems which are not covered by reliable transaction. Especially the state check and it’s change are not an atomic operation. Which makes such check pointless.

At the end such the check doesn’t really matter because you are interested in achieving the final state.

Thanks for the answer @maxym. I had the exact same question as OP.

So if you’re constantly calling services to change the state of devices that are already in the desired state, would that have no impact on the system performance?