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
The currently released circular slider is in alpha state. It contains several small and big issues regarding cos/sin calculations and thumb position updates.
This fix should solve many of these issues, if not all (being optimistic 😺 )
Additional background:
The circular slider needs support for multiple entities. This change should be included in this issue!
Related Issues (if any)
(Optional): Suggested Solution
With my development version these at least work, but with the current Github version only a few work, so that is progress 😄
You also might see that in card 3 tool parts (brightness part) or - as in card 6 - even the whole toolset disappears depending on the state of the light.
Light switched OFF:
Light switched ON:
Different opacity for slider in card 6 (1.0 instead of 0.3), depending on the brightness slider value:
For this to work, as in the state of an entity 'controls' another entity, there is support for multiple entities (entity_indexes as you can see). Animations can set the required entity index to use!
- type: 'custom:swiss-army-knife-card'entities:
- entity: light.livingroom_light_duo_right_lightname: 'CircSlider Test'
- entity: light.livingroom_light_duo_right_lightattribute: brightnessunit: "%"format: brightnessaspectratio: 1/1# Card is 100x100 gridlayout:
styles:
card:
toolsets:
# ================================================================
- toolset: circ-slider-testposition:
cx: 50cy: 50tools:
# ------------------------------------------------------------
- type: circsliderposition:
cx: 50cy: 50radius: 40start_angle: 0end_angle: 360label:
placement: 'position'cx: 50.01cy: 50.01# entity_index: 1entity_indexes:
- entity_index: 1# Entity index 1 is the default (brightness)
- entity_index: 0# Entity index 0 is the extra entityanimations:
- state: '50'# Set opacity to 0.3 if brightness >= 50%operator: '>='reuse: truestyles:
track:
opacity: 0.3transition: opacity 1s ease
- state: '50'# Set opacity to 1.0 if brightness < 50%operator: '<'reuse: truestyles:
track:
opacity: 1transition: opacity 1s ease
- state: 'on'entity_index: 0# Explicitly use entity index (light state) herereuse: truestyles:
track:
stroke: redtool:
display: initial # Display tool
- state: 'off'# Light switched off: remove complete tool setting display to none.reuse: trueentity_index: 0styles:
tool:
display: none # Remove tool from displaying
(Optional): Alternative Solutions
The text was updated successfully, but these errors were encountered:
The Problem To Be Solved
The currently released circular slider is in alpha state. It contains several small and big issues regarding cos/sin calculations and thumb position updates.
This fix should solve many of these issues, if not all (being optimistic 😺 )
Additional background:
The circular slider needs support for multiple entities. This change should be included in this issue!
Related Issues (if any)
(Optional): Suggested Solution
With my development version these at least work, but with the current Github version only a few work, so that is progress 😄
You also might see that in card 3 tool parts (brightness part) or - as in card 6 - even the whole toolset disappears depending on the state of the light.
Light switched OFF:
Light switched ON:
Different opacity for slider in card 6 (1.0 instead of 0.3), depending on the brightness slider value:
For this to work, as in the state of an entity 'controls' another entity, there is support for multiple entities (
entity_indexes
as you can see). Animations can set the required entity index to use!(Optional): Alternative Solutions
The text was updated successfully, but these errors were encountered: