#light.toggle ignores transition property when ran from an Entities card
1 messages · Page 1 of 1 (latest)
There seems to be these attributes in the zigbee device settings, but I'm unfamiliar with what these do, and trying to write to them does nothing
it seems that a transition time of 0 causes these lights to use a default transition time of 1 second
so if there was a way to set it to 0.1 or 0.001 by default
i don't have zigbee lights im afraid so its tough for me to help with that
i have never seen a page like that either so im really not sure
new to this myself
yeah all my zigbee lights behave with a default transition time even though all transition settings/attribute are disabled/set to 0/nulled
unless i explicitly state a transition time of 0.001 in the service call
so do you not want a transition?
no, i'm looking to only have transitions during certain scenes
well i thought you managed to change the transition time when calling it, no?
yes, when running the script or calling the service by hand, but when done via the Entities card, it does nothing
light.toggle ignores transition property when ran from an Entities card
So the card needs to not call the service directly but call the script instead. If you set the tap_action to call service: your script will be in the list (as well as the original service but dont use that)
If you make a script that works you can then set the card to call that script as a service
@wanton adder but that's what I'm doing here? #frontend-archived message
Yeah I dont see whats causing it. can you share the script you made? Don't give up someone here will be able to help for sure
@lavish sparrow
@wanton adder
this is the script
but it's not calling the script
the last triggered is this..
Ohh
Okay
Well I suggest you delete the button and start fresh
With the button
Keep the script
Are you using the UI to edit the button
Or text?
I would use the UI. And using that set the tap action to call service. Then search for the name of the script and allow it to auto fill it for you so you can't mess it up
Yeah don't do that just use the UI
Because the UI will auto fill it for you so you can't mess up
there's no option for tap action in UI
There is
but i figured it out
So I understand now
the tap action runs only when I tap the icon
if i use the slider to toggle, it toggles directly
i'm not sure if i can override that
You can find a solution
I know what to do
It's all good
Go to settings > devices > helpers. Create a toggle helper called lights toggle helper or whatever
Then create an automation:
If lights toggle helper state changes from any state to on:
Trigger turn on lights script
And another for the opposite
Then back to your entities card. Forget the call service part. just set the entity to the input toggle and leave it at that
That's it your problem will be solved
Sorry I'm a bit brain-dead at the moment but hopefully you got me
yee i'll give this a go
but according to the web docs the entities card should just take in a transition property anyway
so this may be a bug
🤷🏼♂️ i dont know man I'm not a Dev or anything I'm just another guy that uses HA
maybe though
nah you're right
the default behavior of the entities card is to directly toggle, you can't modify default action
you can replace it with a button
What you were doing before when you set your card entity to the light was telling the entity to make the toggle basically a switch for that entity.
You added tap action on top of that which was a separate thing that does what you tell it when you tap the card. (in your case it would be conflicting because the toggle already turned the lights on)