Hi all,
I’ve been working with Home assistant for a bit now and I was setting up my front end, now I’ve run in to a problem.
I added a glance card with light switches as following:
type: glance
title: Lights
show_state: false
column_width: calc(100% / 3)
entities:
- entity: light.fibaro_system_fgd212_dimmer_2_level_4
name: Kitchen
icon: mdi:ceiling-light
tap_action: toggle
Which shows up on the UI, but when I tap (or click for that matter) it does nothing.
I tried taking away the “tap_action: toggle”, which works, but then I get the popup for that entity, which I don’t want. and I tried setting the UI to the online edit mode (so no yaml editing), but this doesn’t allow me to use the tap_action.
I have the same problem with this part of code:
type: glance
show_name: false
show_state: false
column_width: calc(100% / 1)
entities:
entity: media_player.denon
tap_action: call-service
service: media_player.volume_up
icon: mdi:volume-high
Anyway, this used to work a couple of days ago.
I’m on Home Assistant 0.84.3 running on HassOS 1.13. Reboot did nothing and I don’t see any error in the log.
Does anyone know what is wrong or what I am doing wrong?
Thanks in advance.
1 Like
tap-action:
action: toggle
As per the breaking changes a couple of versions ago.
1 Like
Dixey
December 19, 2018, 5:07pm
3
Click… and hold… on the image for a couple of seconds.
Thanks, I’ll give it a try.
Too bad, now it just acts as if I didn’t specify anything…
This is my code now:
- entity: light.fibaro_system_fgd212_dimmer_2_level_4
name: Kitchen
icon: mdi:ceiling-light
tap-action:
action: toggle
phoxy84
(Alex)
December 20, 2018, 8:35am
6
- entity: light.fibaro_system_fgd212_dimmer_2_level_4
name: Kitchen
icon: mdi:ceiling-light
tap_action:
action: toggle
Use the _ in stead of - on tap_action
1 Like
I also have problem with tap_action but I have never got this code to work, so I am not sure what to think about it:
- entity: timer.1_50min
name: 50 min
tap_action:
action: call-service
service: script.turn_on
service_data:
entity_id: script.start_timer_1_50min
hold_action:
action: call-service
service: script.turn_on
service_data:
entity_id: script.reset_timer_1_50min
type: entity-button
leranp
(Leranp)
December 20, 2018, 11:25am
8
Me to, after the beaking change it is not possible to get the tap action to work
Kejszijo
(Zoltán Kovács)
December 20, 2018, 9:33pm
9
Me too… call-service call all entity in the group, not only the specified entity_id.
for example:
tap_action:
action: call-service
service: light.turn_on
service_data:
entity_id: light.l1
It’s turn on ALL lights, not only “l1” light.
sholofly
(Rudolf Offereins)
December 21, 2018, 7:02am
10
Isn’t it homeassistant.turn_on?
CountOlaf
(Olaf)
December 21, 2018, 7:17pm
11
That was it, so for all others, the correct syntax is:
tap_action:
action: toggle
Thanks @Phoxy84
3 Likes
fexpositog
(fexpositog)
February 8, 2019, 2:19pm
12
Do you have any solution to that problem?
Thanks
Kejszijo
(Zoltán Kovács)
February 8, 2019, 6:39pm
13
Hi,
It’s work after 0.85 release.
fexpositog
(fexpositog)
February 8, 2019, 7:06pm
14
example, please.
Entity-Button Launches script, how can it be done?
Kejszijo
(Zoltán Kovács)
February 8, 2019, 7:38pm
15
- entity: script.movie_light
icon: 'mdi:movie'
style:
'--paper-item-icon-color': white
border-color: 'rgb(34, 154, 210)'
color: white
left: 60%
top: 47%
tap_action:
action: call-service
service: script.turn_on
service_data:
entity_id: script.movie_light
type: icon
3 Likes
fexpositog
(fexpositog)
February 8, 2019, 8:42pm
16
Thank you very much, my friend!!!
1 Like
pedrohtd
(Pedrohtd)
December 27, 2022, 8:14pm
17
Thank you!!! Works with me. The space before “action: toggle”