Skip to content

Instantly share code, notes, and snippets.

@MoritzBuetzer
Last active November 24, 2020 13:43
Show Gist options
  • Save MoritzBuetzer/bb4007ca23caaf5b6651ed33095bd5e0 to your computer and use it in GitHub Desktop.
Save MoritzBuetzer/bb4007ca23caaf5b6651ed33095bd5e0 to your computer and use it in GitHub Desktop.
Simple way to control the dingz LED from Home Assistant – https://www.dingz.ch/
# in configuration.yaml
rest_command:
dingz_led:
url: http://DINGZ_IP/api/v1/led/set
method: POST
payload: 'action={{ action }}&color={{ color }}&mode=rgb'
content_type: 'application/x-www-form-urlencoded; charset=utf-8'
# use it as service
- service: rest_command.dingz_led
data:
action: "on|off|toggle"
color: "FFFFFF"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment