Advertisement
caffeinated00

homelab/light/security card

Jan 16th, 2025
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. type: horizontal-stack
  2. cards:
  3. - type: custom:mushroom-template-card
  4. secondary: ""
  5. icon: mdi:server-network
  6. icon_color: |
  7. {{ 'red' if is_state('binary_sensor.pvecheck', 'on') else '#7A7275' }}
  8. primary: HomeLab
  9. layout: vertical
  10. tap_action:
  11. action: navigate
  12. navigation_path: homelab
  13. double_tap_action:
  14. action: navigate
  15. navigation_path: http://192.168.68.112:3000
  16. - type: custom:mushroom-template-card
  17. primary: Lights
  18. secondary: ""
  19. icon: mdi:lightbulb-multiple-outline
  20. icon_color: "#cc5500"
  21. layout: vertical
  22. tap_action:
  23. action: navigate
  24. navigation_path: lights
  25. hold_action:
  26. action: call-service
  27. service: light.turn_off
  28. target:
  29. entity_id: all
  30. - type: custom:mushroom-template-card
  31. primary: Security
  32. secondary: ""
  33. icon: >-
  34. {{ 'mdi:shield-alert' if is_state('binary_sensor.waterleakalert', 'on')
  35. else "mdi:shield-check" }}
  36. icon_color: >-
  37. {{ 'red' if is_state('binary_sensor.waterleakalert', 'on') else '#679db1'
  38. }}
  39. layout: vertical
  40. tap_action:
  41. action: navigate
  42. navigation_path: security
  43. double_tap_action:
  44. action: url
  45. url_path: http://192.168.68.112:3000
  46. - type: custom:mushroom-template-card
  47. primary: Energy
  48. secondary: ""
  49. icon: mdi:lightning-bolt
  50. layout: vertical
  51. tap_action:
  52. action: navigate
  53. navigation_path: energy
  54. icon_color: "#7EBE7A"
  55.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement