Hi everyone, I have a Word Clock with a WS2812
https://www.mikrocontroller.net/articles/WordClock_mit_WS2812#STM32_WordClock_Software
I would like to switch this on/off via Homeassistant, which I have already implemented via configuration.yaml
switch:
- platform: command_line
switches:
wordclock:
command_on: "/usr/bin/curl -X GET http://10.0.2.214/?action=poweron"
command_off: "/usr/bin/curl -X GET http://10.0.2.214/?action=poweroff"
value_template: '{{ value == "1" }}'
friendly_name: Wordclock
Now I would also like to pass texts or values to start a ticker or dim the clock, the commands are:
Ticker http ://10.0.2.214/?ticker=Text&action=saveticker
Brightness: Value 0- 10: http ://10.0.2.214/display?brightness=10&action=savebrightness
Unfortunately I can’t do it, who can help me?
wordclock:
input_text:
ticker:
rest:
- authentication: basic
scan_interval: 60
resource_template: "http:// 10.0.2.214/?ticker={{ states('input_text.sa_site_id') }}sste&action=saveticker"