Skip to content

Commit

Permalink
Using 'value_template' for 'position_topic' is deprecated and will be…
Browse files Browse the repository at this point in the history
… removed from Home Assistant in version 2021.6, please replace it with 'position_template'
  • Loading branch information
przemyslawzygmunt committed Jun 2, 2021
1 parent f291ac8 commit 8b85cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supla-server/src/mqtt/mqtt_channel_message_provider.cpp
Expand Up @@ -928,7 +928,7 @@ bool supla_mqtt_channel_message_provider::ha_roller_shutter(
ha_json_set_string_param(root, "pl_not_avail", "false");

ha_json_set_string_param(
root, "value_template",
root, "pos_tpl",
"{% if value is defined %}{% if value | int < 0 %}0{% elif value | int > "
"100 %}100{% else %}{{value | int}}{% endif %}{% else %}0{% endif %}");

Expand Down

0 comments on commit 8b85cdf

Please sign in to comment.