Yesterday I got the message, that in my heishamon.yaml there is a deprecation about payload_template in the theme “panasonic_heat_pump/commands/SetOperationMode” . I should use payload instead. What do I have to do, to get this repaired.
#Sets heatmode to the selected value
- alias: Set heatmode
trigger:
platform: state
entity_id: input_select.heishamon_heatmode
action:
service: mqtt.publish
data_template:
topic: panasonic_heat_pump/commands/SetOperationMode
retain: false #IMPORTANT! ALWAYS set retain flag false for commands!
payload_template: >-
{%- if states('input_select.heishamon_heatmode') == "Heizen" -%}
0
{%- elif states('input_select.heishamon_heatmode') == "WW" -%}
3
{%- elif states('input_select.heishamon_heatmode') == "Heizen+WW" -%}
4
{%- endif -%}
Can anyone advice?