#debugging automation, set number has no effect

1 messages · Page 1 of 1 (latest)

pastel stag
#

I am trying to figure out why my automation doesn't seem to be doing anything. The code of the automation is the following:

alias: Heizung remote Temp
description: ""
triggers:
  - trigger: state
    id: az
    entity_id:
      - sensor.aqsensorarbeitszimmer_temperature
  - trigger: state
    id: wz
    entity_id:
      - sensor.rauchmelder_wz_temperature
conditions: []
actions:
  - target:
      entity_id: number.heizung{{ trigger.id }}_remote_temperature
    data:
      value: "{{ trigger.to_state.state | float }}"
    action: input_number.set_value
mode: single

The automation seems to run correctly but for some reason the _remote_temperature is just not set. The trace looks good and there is no error there:

Executed: 14 January 2025 at 09:06:19
Result:
params:
  domain: input_number
  service: set_value
  service_data:
    value: 18.92
    entity_id:
      - number.heizungaz_remote_temperature
  target:
    entity_id:
      - number.heizungaz_remote_temperature
running_script: false

but if I look at the number.heizungaz_remote_temperature entity it is not updated. Updating the entity manually works okay.

#

debugging automation, set number has no effect

hollow zodiac
#

you're trying to update a number entity using the input_number.set_value action. try number.set_value

true wing
#

The service and entity have to have a matching domain (except when using the homeassistant services)

pastel stag
#

I would expect it to at least report some error somewhere in this case. Failing silently seems a weird design but thanks

hollow zodiac
#

are you sure there's no warning in the logs on the matter?

#

hm, you're right, i don't think it does log any error 🤔

true wing
#

It never has, it just silently fails

pastel stag
#

Changing the domain fixed the problem but I still think it should give you an error/warning

mossy tree
#

Are you triggering this manually? The trigger variable has no value if that's the case