Skip to content

Button trigger automation and show timer? #350

Open
@antgustech

Description

@antgustech

I currently have this card:

type: entities
entities:
  - entity: light.ikea_e14_1
    type: custom:multiple-entity-row
    name: Byrå
    toggle: true
  - entity: automation.toggle_window_lights_when_pressed
    icon: mdi:timer-sand
    type: button
    name: Starta timer
    tap_action:
      action: call-service
      service: automation.trigger
      target:
        entity_id: automation.toggle_window_lights_when_pressed
      data:
        skip_condition: true
  - entity: timer.bedroom_light_timer
    name: Timer tid
title: Huvudsovrum
show_header_toggle: false
state_color: false



light

The idea is to be able to turn a light on and off with the toggle as well as starting it via a timer.

Now, I'm trying to rewrite this with multiple-entity-row to put it all on the same row. However, the timer button does not work,
"Failed to perform the action automation/trigger. must contain at least one of entity_id, device_id, area_id, floor_id, label_id." and the timer does not show the time either, only "Active" or "Idle".
multiple

type: entities
entities:
  - entity: light.ikea_e14_1
    type: custom:multiple-entity-row
    name: Byrå
    toggle: true
    entities:
      - entity: automation.toggle_window_lights_when_pressed
        icon: mdi:timer-sand
        type: button
        name: Starta timer
        tap_action:
          action: call-service
          service: automation.trigger
          target:
            entity_id: automation.toggle_window_lights_when_pressed
          data:
            skip_condition: true
      - entity: timer.bedroom_light_timer
        name: Timer tid
title: Huvudsovrum
show_header_toggle: false
state_color: false

How do I fix this so that it looks equivalent to my orignal card but on one row instead? Bonus points if its possible to use a more..clear button instead of "RUN"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions