You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so I have a Stream Desk + (Plus) with the home assistant plugin, and for example I can control my Sonos Speakers volume via knob.
I thought it would be doable to also control the height of my desk this way to make fine adjustments, the presets work without issue with the plugin but I can't get the knob to adjust the desk.
`alias: Stream Deck Megadesk Knob
sequence:
choose:
conditions:
condition: template
value_template: "{{ ticks is defined and ticks != 0 }}"
sequence:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone,
so I have a Stream Desk + (Plus) with the home assistant plugin, and for example I can control my Sonos Speakers volume via knob.
I thought it would be doable to also control the height of my desk this way to make fine adjustments, the presets work without issue with the plugin but I can't get the knob to adjust the desk.
`alias: Stream Deck Megadesk Knob
sequence:
value_template: "{{ ticks is defined and ticks != 0 }}"
sequence:
adjustment: "{{ ticks * 1 }}"
new_height: >
{% set adjusted = (states('number.megadesk_height_cm') | int +
adjustment) %} {% if adjusted < 60 %}
60
{% elif adjusted > 120 %}
120
{% else %}
adjusted
{% endif %}
entity_id: number.megadesk_height_cm
data:
value: "{{ new_height }}"
action: number.set_value
value_template: "{{ ticks is not defined and is_short_press }}"
sequence:
value_template: "{{ is_state('number.megadesk_height_cm', '120') }}"
sequence:
entity_id: button.desk_position_2
action: button.press
data: {}
value_template: "{{ is_state('number.megadesk_height_cm', '60') }}"
sequence:
entity_id: button.desk_position_3
action: button.press
data: {}
mode: single
icon: mdi:desk`
This is the script I am using, on the stream deck I have the "Domain" -> Service "my script" selected and the Service Data JSON the following:
{ "ticks": {{ ticks }} }
Has anybody tried this and had any luck, or does anybody have a pointer?
The slider card I made seems to work without issue.
If anybody could help, it would be very appreciated
Beta Was this translation helpful? Give feedback.
All reactions