hello ,
i control my wled brightness directly via tha wled api
i use this , but i suppose this code is not optimal when i use much bigger API’s
can this code be optimalised or is tis 100% the way to go ?
thanks for your reply
config.yaml :
rest_command:
restwled_felheid:
url: "http://192.168.1.172/win&A={{states('input_number.wled_felheid') }}"
method: get
content_type: "application/json"
automatisation :
alias: rest
description: ""
trigger:
- platform: state
entity_id:
- input_number.wled_felheid
condition: []
action:
- action: rest_command.restwled_felheid
metadata: {}
data: {}
mode: single