Still do not understand HOW or why HA converts the state eg 220 on the dimmer
to a state on the soundbar 0.40 for example. Or is there a logic built in to ha
Probably historical. Someone implemented lights as having a brightness from 0 to 255. Someone implemented volume as having a range of 0.0 to 1.0. It really doesn’t matter when stuff is made so easy with templates.