I am not sure whether we can keep value_template for backwards compatibility. This depends on how HA will handle this case with the next version. I'd remove value_template completly (like in the PR) to avoid problems in the future. HA has implemented position_template long enough, I guess.
The code is untested. I have no dev environment and am not firm enough with Node.js to check it. @binsentsu could you take a look into this? I'd really appreciate your help.
Avoid deprecation warning from Home Assistant.
I am not sure whether we can keep
value_template
for backwards compatibility. This depends on how HA will handle this case with the next version. I'd removevalue_template
completly (like in the PR) to avoid problems in the future. HA has implementedposition_template
long enough, I guess.The code is untested. I have no dev environment and am not firm enough with Node.js to check it. @binsentsu could you take a look into this? I'd really appreciate your help.