AmoebeLabs / AmoebeLabs/flex-horseshoe-card
tap event not working as expected on light
- Vorherrschende Sprache
- JavaScript
- Sterne
- 397
- Forks
- 66
- Ø Merge
- 7 Min.
- Gemergte PRs (30 T.)
- 81
Beschreibung
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
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.