I want to display several weather data on an LED matrix.
The whole thing should run as a scrolling text via WLED.
So far everything is working.
I made this entry in the Configuration.yaml:
rest_command:
wled_text:
url: http://10.0.0.155/json/state
method: POST
payload: '{"seg": [{"col": {{color}}, "n": "{{text}}"}]}'```
In the automation, the weather data is then sent to WLED:
sequence:
- device_id: ca012a4a7db12ed01c68f90427d8024f
domain: select
entity_id: 7448845df35fface6b9f27ed1a2150b5
type: select_option
option: Scrolling Text
- data:
text: . Temp. {{ states("sensor.gw1100a_outdoor_temperature") }} `C
color:
- 0000FF
- 0
- 0
alias: TMP
enabled: true
action: rest_command.wled_text
- data:
text: . Wind {{ states("sensor.gw1100a_wind_speed") }} km/h
color:
- 00FFFF
- 0
- 0
alias: WIND
enabled: true
action: rest_command.wled_text
So far so good, but there is the following problem:
The text length is limited and if you want to display several values in different colors, you have to send several data blocks with the corresponding values.
And that’s where the problem starts.
I would like WLED to scroll through the first block, then the second, etc.
Unfortunately, WLED doesn’t do that. It executes the automation in one go and so only the last data block scrolls on the matrix.
You can simply wait a certain amount of time between the blocks, but that’s a rather unsightly solution because the times are never exactly the same and so the scrolling doesn’t go smoothly.
sequence:
- device_id: ca012a4a7db12ed01c68f90427d8024f
domain: select
entity_id: 7448845df35fface6b9f27ed1a2150b5
type: select_option
option: Scrolling Text
- data:
text: . Temp. {{ states("sensor.gw1100a_outdoor_temperature") }}`C
color:
- 0000FF
- 0
- 0
alias: TMP
enabled: true
action: rest_command.wled_text
- delay:
hours: 0
minutes: 0
seconds: 15
milliseconds: 0
- data:
text: . Wind {{ states("sensor.gw1100a_wind_speed") }}km/h
color:
- 00FFFF
- 0
- 0
alias: WIND
enabled: true
action: rest_command.wled_text
Have any of you by any chance already gathered experience here?
If possible, the end result should look like this:
[Sensor] in white - [Value] in color - [Sensor 2] in white - [Value 2] in color - …
Thank you for your Input!