Making progress: rest_command from automation help needed

I have successfully have HA turning on/off my pool and hot tub. I am now trying to use an input_number slider to set the hot tub temperature. The rest command to do so is:

http://192.168.2.164:3000/spaheat/setpoint/#

So I have the following set up in HA:

rest_command:
  spa_temperataure:
    url: 'http://192.168.2.164:3000/spaheat/setpoint/{{ (states.input_number.slider1.state | int) }}'

and an automation:

  - alias: 'Set SPA Temperature'
    trigger:
      - platform: state
        entity_id: input_number.slider1
    action:
      service: rest_command.spa_temperature

But it doesn’t seem to set the temperature. If I execute directly into my browser it works great. Do I have the automation set up wrong?

Thanks

I don’t see anything wrong. Have you tried invoking the REST command from the Services page? Does it work there?

Yessir, from the services page it works fine. Must be something with the automation.

You can also manually trigger the automation (if it’s represented in the front end.) Click on it and a window like this should appear:

image

You can then click on the word TRIGGER and the actions of the automation should run immediately (regardless of the trigger and/or conditions.) If that works, then for some reason changing the input_number is not triggering the automation.

Problem solved. It turns out that spelling is hard. :smiley:

thanks!

1 Like