AmoebeLabs / AmoebeLabs/flex-horseshoe-card

tap event not working as expected on light

オープン
#74 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
397
フォーク
66
平均マージ
7分
マージ済み PR(30日)
81

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。