Hey all
I have some warning on log constantly popping out:
“The ‘value_template’ option is deprecated, please replace it with ‘state_value_template’”
I’ve searched on my configuration, however I cannot find where should i fix this. It should be an error coming from light.mqtt.
my configuration.yaml code:
light:
- platform: mqtt
name: "Sala da Pranzo"
state_topic: "shellies/shelly1-E8DB84D256C0/relay/0"
command_topic: "shellies/shelly1-E8DB84D256C0/relay/0/command"
qos: 0
payload_on: "on"
payload_off: "off"
optimistic: false
retain: false
- platform: mqtt
schema: template
name: 'Soggiorno1'
command_topic: 'cmnd/soggiorno/Backlog'
command_on_template: >-
{%- if transition is defined -%}
Speed {% if transition < 21 %}{{ transition * 2 }}{% else %}40{% endif %}; Fade 1;
{% else %}
Speed 1; Fade 1;
{% endif %}
{% if brightness is defined %}
Dimmer {{ (brightness / 2.55) | int }};
{% endif %}
{%- if red is defined and green is defined and blue is defined -%}
Color2 {{ "%02X" | format(red | int) }}{{ "%02X" | format(green | int) }}{{ "%02X" | format(blue | int) }};
{%- endif -%}
{% if state is defined %}
Power 1;
{% endif %}
{%- if color_temp is defined -%}
CT {{ color_temp }};
{%- endif -%}
effect_list:
- "None"
- "Wakeup"
- "Color Cycle"
- "Reverse Cycle"
- "Random"
effect_template: >-
{% if value_json.Scheme == 0 %}
None
{% elif value_json.Scheme == 1 %}
Wakeup
{% elif value_json.Scheme == 2 %}
Color Cycle
{% elif value_json.Scheme == 3 %}
Reverse Cycle
{% elif value_json.Scheme == 4 %}
Random
{% endif %}
command_off_template: 'Power 0'
state_topic: 'tele/soggiorno/STATE'
state_template: '{{ value_json.POWER | lower }}'
availability_topic: 'tele/soggiorno/LWT'
payload_available: 'Online'
payload_not_available: 'Offline'
brightness_template: '{{ (value_json.Dimmer * 2.55) | int }}'
red_template: '{{ value_json.Color[0:2] | int(base=16) }}'
green_template: '{{ value_json.Color[2:4] | int(base=16) }}'
blue_template: '{{ value_json.Color[4:6] | int(base=16) }}'
color_temp_template: '{{ value_json.CT }}'
max_mireds: 500
min_mireds: 153
I know is just a deprecation warning, but i want to be sure that when going to update everything works, or i get a divorce
thanks