WallyR
(Wally)
December 13, 2024, 12:52am
4
Using device ids makes a mess and cause these exact situations which is why many on the forum warns users against them.
Using entity ids makes it much easier.
Background
When you start writing automations, a device trigger seems the obvious choice. Everybody knows what a device is and it comes at the top of the UI dropdown list.
[image]
It works… but it is certainly not a “great way to start” because it is storing up problems for the future. Far better to use an entity, with state or numeric_state.
Device_id problems
The yaml will be longer and harder to follow, which may make maintenance difficult, especially a few months down the line when y…