fredrik_persson_

State Switch Fan Speed

Apr 20th, 2023
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. - type: custom:state-switch
  2. view_layout:
  3. grid-area: 'r1e'
  4. entity: light.smart_dimmer_shelly_hallway
  5. default: none
  6. states:
  7. "on":
  8. type: 'custom:button-card'
  9. view_layout:
  10. grid-area: 'r1e'
  11. entity: light.smart_dimmer_shelly_hallway
  12. name: Fläkt Hastighet
  13. show_name: true
  14. show_icon: false
  15. show_label: false
  16. show_state: false
  17. styles:
  18. grid:
  19. - grid-template-areas: '"n" "slider"'
  20. - grid-template-rows: 1fr 1fr
  21. - row-gap: 6px
  22. card:
  23. - height: 100%
  24. - border-radius: "var(--border-radius)"
  25. - box-shadow: "var(--border-radius)"
  26. - padding: 1em
  27. name:
  28. - text-align: center
  29. - font-size: "var(--fs-400)"
  30. - justify-self: center
  31. - align-self: center
  32. custom_fields:
  33. slider:
  34. card:
  35. type: "custom:my-slider"
  36. card_mod:
  37. style: |
  38. ha-card {
  39. ha-card-background: none;
  40. box-shadow: none;
  41. }
  42. entity: light.smart_dimmer_shelly_hallway
  43. radius: "10px"
  44. height: "20px"
  45. background: "var(--color-white)"
  46. minSet: 0
  47. maxSet: 100
  48. mainSliderColor: "var(--color-blue)"
  49. #mainSliderColorOff: 'rgb(255,206,0)'
  50. secondarySliderColor: 'rgba(255,255,255,1)'
  51. secondarySliderColorOff: 'rgba(240,240,240,0.25)'
  52. thumbHorizontalPadding: "0px"
  53. thumbVerticalPadding: "0px"
  54. thumbWidth: "40px"
  55. thumbColor: '#2145fa'
Advertisement
Add Comment
Please, Sign In to add comment