Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95468

Rest_command & variable in payload not working

$
0
0

@KoenGullentops wrote:

Hi,

I notice that the variable is never replaced by the value assigned during service call:

rest_command:
  mediaruimte_dimmer:
    url: http://192.168.0.13:8081/outputs/bec5-8/state
    method: PUT
    payload: '{"bri": {{ brightness }}}'
    content_type:  'application/json; charset=utf-8'
    verify_ssl: false

Service call example;

test_rest_cmd:
  sequence:
  - data:
      brightness: "30"
    service: rest_command.mediaruimte_dimmer

What I’m doing wrong. I use hassio v102

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95468

Trending Articles