I can’t quite tell what you are doing, but in general you download/install the blueprint, then select it in the automation ui editor one of a couple of ways.
Once there you find the line item you want to add stuff to, in this case action CW side 3 and action ccw side three.
select call service, change to edit in yaml, then paste the provided code in.
The script part is a script, added via the script ui editor. Script ui editor, edit in yaml, paste in the whole script section except the word script:
If you want to see it in use, look at my personal configuration…
cube_dimmer_control:
description: Template Dimmer Control
variables:
light:
angle:
sequence:
- service: light.turn_on
data:
entity_id: "{{ light }}"
brightness_pct: >
{% set step_size = angle * 0.4 %}
{# Get brightness as a percent. #}
{% set cb = (state_attr( light, 'brightness') | float(10) / 255.0) * 100.0 %}
{% set new_brightness = cb | int(10) + step_size %}
{% if new_brightness < 5 %}
{# If it gets really low set to 0. Adjust if needed for your lights. #}
0
{% elif new_brightness <= 10 %}
{# If it's not quite 0, set to a minimum working brightness. #}
10
This file has been truncated. show original
1 Like