AmoebeLabs / AmoebeLabs/flex-horseshoe-card

tap event not working as expected on light

Abierto
#74 2 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
397
Forks
66
Merge medio
7 min
PR fusionados (30 d)
81

Descripción

I have a light that I want to control. The horseshoe will show the brightness while an icon will simply turn it on or off. Clicking on the horseshoe will bring up the normal brightness/on/off control while clicking on the little fan-light icon should toggle it on or off. At least that's what I want. What's happening is that in either case, clicking just brings up the standard brightness/on/off control.
I have tried having the entity_id: light.office_light in both the service_data and in the target lists. Same results both ways. Any advice would be appreciated.

```
type: custom:flex-horseshoe-card
entities:
- entity: light.office_light
attribute: brightness
decimals: 1
unit: '%'
area: Office
- entity: light.office_light
name: Light
icon: mdi:ceiling-fan-light
tap_action:
action: call-service
service: light.toggle
service_data:
target:
entity_id: light.office_light
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.