Files
advanced-camera-card/docs/configuration/actions/stock/README.md
T

2.4 KiB

Stock Actions

call-service

Call a service. See Home Assistant actions documentation.

action: call-service
[...]

more-info

Open the "more-info" dialog for an entity. See Home Assistant actions documentation.

action: more-info
[...]

navigate

Navigate to a particular dashboard path. See Home Assistant actions documentation.

action: navigate
[...]

toggle

Toggle an entity. See Home Assistant actions documentation.

action: toggle
[...]

url

Navigate to an arbitrary URL. See Home Assistant actions documentation.

action: url
[...]

Fully expanded reference

Reference: Home Assistant Actions.

elements:
  - type: icon
    icon: mdi:numeric-1-box
    title: More info action
    style:
      left: 200px
      top: 50px
    entity: light.office_main_lights
    tap_action:
      action: more-info
  - type: icon
    icon: mdi:numeric-2-box
    title: Toggle action
    style:
      left: 200px
      top: 100px
    entity: light.office_main_lights
    tap_action:
      action: toggle
  - type: icon
    icon: mdi:numeric-3-box
    title: Call Service action
    style:
      left: 200px
      top: 150px
    tap_action:
      action: call-service
      service: homeassistant.toggle
      data:
        entity_id: light.office_main_lights
  - type: icon
    icon: mdi:numeric-4-box
    title: Navigate action
    style:
      left: 200px
      top: 200px
    tap_action:
      action: navigate
      navigation_path: /lovelace/2
  - type: icon
    icon: mdi:numeric-5-box
    title: URL action
    style:
      left: 200px
      top: 250px
    tap_action:
      action: url
      url_path: https://www.home-assistant.io/
  - type: icon
    icon: mdi:numeric-6-box
    title: None action
    style:
      left: 200px
      top: 300px
    tap_action:
      action: none
  - type: icon
    icon: mdi:numeric-7-box
    title: Custom action
    style:
      left: 200px
      top: 350px
    tap_action:
      action: fire-dom-event
      key: value