4
0

config.yaml 824 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # Integration Test Config: EnabledExpression
  3. #
  4. listenAddressSingleHTTPFrontend: 0.0.0.0:1337
  5. logLevel: "DEBUG"
  6. checkForUpdates: false
  7. actions:
  8. - title: Turn On Light
  9. shell: echo "Turning on light"
  10. icon: light
  11. entity: light
  12. enabledExpression: "{{ eq .CurrentEntity.powered_on false }}"
  13. - title: Turn Off Light
  14. shell: echo "Turning off light"
  15. icon: light
  16. entity: light
  17. enabledExpression: "{{ eq .CurrentEntity.powered_on true }}"
  18. - title: Always Enabled Action
  19. shell: echo "Always enabled"
  20. icon: check
  21. entities:
  22. - file: entities/lights.yaml
  23. name: light
  24. dashboards:
  25. - title: LightDashboard
  26. contents:
  27. - title: Light Controls
  28. type: fieldset
  29. entity: light
  30. contents:
  31. - title: Turn On Light
  32. - title: Turn Off Light