#Automation write temperature question

1 messages · Page 1 of 1 (latest)

dim scarab
#

Hi All,

I am trying to acheive the following;

When the target temperature on my radiator knob (TADO X via matter) changes, set the target room temperature of my MQTT radiator boosters to match this temperature.

I have already made this in YAML;
⁨⁨```alias: Sync Radiator Valves with Thermostat
description: ""
triggers:

  • entity_id: climate.smart_radiator_thermostat_x
    attribute: temperature
    trigger: state
    conditions: []
    actions:
  • target:
    entity_id:
    - number.heatbooster_slaapkamer_achter_ambientcontrol_temp
    data:
    temperature: >-
    {{ state_attr('climate.smart_radiator_thermostat_x', 'temperature') |
    float }}
    action: climate.set_temperature
    mode: single


The Entity_ID are found via developer tools -->  states, and I have attached them in the screenshots

I do see that it is getting triggered, but it does no write the data to the heatboosters
(third screenshot)
#

Does anybody know why the value on the MQTT heatmeister booster is not changing to match the radiator knob set temperature?? Eventho it does run correctly

rugged yew
#

The target isn't a climate, it's just a number. So it doesn't know how to do the climate.set_temperature action on it

#

You might have to use an integration specific action to set that particular value

dim scarab
#

Wait I see!

#

but how do I then set the value to match?

unkempt sage
#

If it's a number entity you can just use number.set_value

alias: Sync Radiator Valves with Thermostat
description: ""
triggers:
  - entity_id: climate.smart_radiator_thermostat_x
    attribute: temperature
    trigger: state
conditions: []
actions:
  - target:
      entity_id:
        - number.heatbooster_slaapkamer_achter_ambientcontrol_temp
    data:
      value: >-
        {{ state_attr('climate.smart_radiator_thermostat_x', 'temperature') |
        float }}
    action: number.set_value
mode: single
dim scarab
#

I see, the script unfortunately is not working tho... It is still running, but values do not change

rugged yew
#

What integration is providing that entity?

dim scarab
#

Providing; Matter

#

Receiving MQTT

#

but it is receiving the command, I think, because the script is ran automatically if I change the temperature target on the radiator knob

#

It just does not sync the target temperature of the booster, yet

unkempt sage
#

Looks fine to me,

But did you make a custom MQTT number? Of was it auto discovery?

dim scarab
#

autodiscovered

unkempt sage
#

First try to set a fixed temperature via Dev tools => Actions

#

Does that work?

dim scarab
rugged yew
#

Some things are not settable over mqtt, only readable

#

But that looks like it should work

unkempt sage
#

a number entity should be setable though. Otherwise the integrarion is wrong in making it a number in the first place.

#

A read only number entity in HA is a sensor-entity

dim scarab
#

Ohkee so I tried this.

It sets the target temperature of the radiator knob

#

so that seems correct

rugged yew
unkempt sage
#

No, you are now setting the radiator, not the booster

dim scarab
#

this is the booster, functioning well

unkempt sage
#

can you also try 21.5 ? As that was what the automation tried last time

dim scarab
#

for set radiator;
⁨```action: climate.set_temperature
target:
entity_id: climate.smart_radiator_thermostat_x
data:
temperature: 21


for set booster;
⁨```action: number.set_value
target:
  entity_id: number.heatbooster_zolderkamer_sander_ambientcontrol_temp
data:
  value: "18"
```⁩
unkempt sage
#

ow, and in Dev tools, can you do in yaml mode:

#
action: number.set_value
target:
  entity_id: number.heatbooster_zolderkamer_sander_ambientcontrol_temp
data:
  value: 21
dim scarab
#

Heyy, 21,5 does not work

rugged yew
#

That's a different entity to the one in your automation

dim scarab
#

does work with 21.5

dim scarab
unkempt sage
#

yeah

dim scarab
#

where?

unkempt sage
#

So did it just work and you looked at the wrong entity? 😄

dim scarab
#

So do we all agree this then should be correct YAML for the automation?;
⁨```alias: Sync Radiator Valves with Thermostat
description: ""
triggers:

  • entity_id: climate.smart_radiator_thermostat_x
    attribute: temperature
    trigger: state
    conditions: []
    actions:
  • action: number.set_value
    target:
    entity_id: number.heatbooster_zolderkamer_sander_ambientcontrol_temp
    data:
    value: >-
    {{ state_attr('climate.smart_radiator_thermostat_x', 'temperature') |
    float(0) }}
    mode: single
unkempt sage
#

In dev tools you use: number.heatbooster_zolderkamer_sander_ambientcontrol_temp
In the automation: number.heatbooster_slaapkamer_achter_ambientcontrol_temp

dim scarab
#

sorry

#

Damnn, indeed

#

yess it works now!

#

it syncs!

unkempt sage
#

🎉

rugged yew
#

Woo

dim scarab
#

thanks both!!

Amazing what this system can do!

#

quite new to it but it seems amazing!

rugged yew
#

Yup. It's pretty powerful 🙂

dim scarab
#

yeahh

#

Ohkee got it working for all boosters now!

#

thanks again, ill close the ticket