hi red line under the action topic. studio code says “Value is not accepted.” please help
mqtt:
climate:
- name: MQTT Heater
modes:
- "off"
- "heat"
unique_id: mqtt_heater
mode_command_topic: "cmnd/sonoffth/ThermostatModeSet"
mode_command_template: "{{'1' if value == 'heat' else '0'}}"
mode_state_topic: "stat/sonoffth/RESULT"
mode_state_template: "{{'heat' if value_json['ThermostatModeSet1'] |int() == 1 else 'off' }}"
action_topic: "tele/sonoffth/STATE"
action_template: "{{'heating' if value_json['POWER1'] == 'ON' else 'off'}}"
current_temperature_topic: "tele/sonoffth/SENSOR"
current_temperature_template: "{{ value_json['AM2301'].Temperature}}"
temperature_state_topic: "tele/sonoffth/SENSOR"
temperature_state_template: "{{ value_json['Thermostat1'].TempTargetSet }}"
min_temp: 15
max_temp: 26
precision: 0.1
temp_step: 0.1
retain: true
temperature_command_topic: "cmnd/sonoffth/TempTargetSet"
availability_topic: tele/sonoffth/LWT
payload_available: Online
payload_not_available: Offline
sorry im edited my entry