AmoebeLabs / AmoebeLabs/flex-horseshoe-card

tap event not working as expected on light

Ouverte
#74 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
397
Forks
66
Merge moyen
7 min
PR mergées (30 j)
81

Description

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
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.