Automation to match one entry to another

Im sure this is simple but i cant work it out

i would like an automation that when i change sensor.id3_climate_set_temp_temperature i would like number.my_volkswagen_target_climate_temperature to change to the same value.

any help or pointers would be great thanks

State trigger on the sensor (“when something changes” in the UI, I think).

Service call in the action: number.set_value.

Depends on what’s set that number entity up as to whether you can change it like that.

thank you making some progress this is the code ive got but it throws up an error, if i change
target:entity_id: number.my_volkswagen_target_climate_temperature to just a number it works

ERROR

Triggered by the state of sensor.id3_climate_set_temp_temperature at 28 July 2023 at 16:00:27

Call a service 'Number: Set' on My Volkswagen Target Climate Temperature

Stopped because an error was encountered at 28 July 2023 at 16:00:27 (runtime: 0.02 seconds)

expected float for dictionary value @ data['value']

CODE

alias: id3 temp setting
description: ""
trigger:
  - platform: state
    entity_id:
      - sensor.id3_climate_set_temp_temperature
condition: []
action:
  - service: number.set_value
    data:
      value: sensor.id3_climate_set_temp_temperature
    target:
      entity_id: number.my_volkswagen_target_climate_temperature
mode: single

Please format your code correctly — see point 11 in the “How to help” sticky.

Try:

value: "{{ states('sensor.id3_climate_set_temp_temperature')|float(0) }}"
1 Like

Thank you very much for your help its now working :slight_smile:

ive edited my post to hopefully format the code correctly

1 Like