Wenar

sensor do switch

Apr 13th, 2020
105
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cards:
  2. - elements:
  3. - entity: sensor.status2
  4. style:
  5. top: 68%
  6. left: 50%
  7. tap_action:
  8. action: call-service
  9. service: light.toggle
  10. service_data:
  11. entity_id: switch.night_lamp
  12. state_filter:
  13. 'on': brightness(110%) saturate(1.2)
  14. 'off': brightness(50%) hue-rotate(45deg)
  15. type: state-icon
  16. image: 'https://demo.home-assistant.io/stub_config/bedroom.png'
  17. title: test
  18. type: picture-elements
  19. type: 'custom:vertical-stack-in-card'
RAW Paste Data