User case for outbound transformations.
I really think this important despite your reservations about performance issues.
See:
Where the user is using a MAP transform outbound
I have my own case where, when I started in HA, I mage my own arduino device to control 433MHz devices.
I made some design “errors”. The value for of is 0
and for ON is 9
The reason for this was htat I could have settings it between.
I still have two of these legacy devices, they are hard to access AND I have lost the original code.
I don’t want to write that code again. I don’t want to spend hours accessing those devices. They are very reliable.
What I want is being able to send 0
for OFF and 9
for ON. To do that I currently use the MAP transform.
Switch LivingRoom_WallLights "Wall Lights" (LivingRoom, MaghribLights, SunsetLights) [ "Lighting" ] { mqtt=">[mybroker:ESP8266/LivingRoom/WallLights:command:*:MAP(off0on9.map)]" }
How can I achieve that with the NEW binding?