Script for wled json

hello

I want to send a JSON msg to wled. how can I create a script for that?

solution:
to put lor=0

rest_command:
  wled_lor0:
    url: http://ip-address/json/state
    method: POST
    payload: '{"lor":0}'
    content_type:  'application/json; charset=utf-8'
2 Likes