#light.toggle ignores transition property when ran from an Entities card

1 messages · Page 1 of 1 (latest)

lavish sparrow
#

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

wanton adder
#

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

lavish sparrow
#

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

wanton adder
#

so do you not want a transition?

lavish sparrow
#

no, i'm looking to only have transitions during certain scenes

wanton adder
#

well i thought you managed to change the transition time when calling it, no?

lavish sparrow
lavish sparrow
#

light.toggle ignores transition property when ran from an Entities card

wanton adder
lavish sparrow
wanton adder
#

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

lavish sparrow
#

@wanton adder

#

this is the script

#

but it's not calling the script

#

the last triggered is this..

wanton adder
#

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?

lavish sparrow
#

text

#

and still no difference after deleting and recreating

#

i'm going here

wanton adder
#

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

lavish sparrow
#

then here

#

i then press this

#

and then this

wanton adder
#

Yeah don't do that just use the UI

lavish sparrow
#

oh

#

i figured it out

#

this is so fucking stupid

wanton adder
#

Because the UI will auto fill it for you so you can't mess up

lavish sparrow
wanton adder
#

There is

lavish sparrow
#

where?

#

this is all i have

wanton adder
#

Ohh I thought you were making a button card

#

That's an entities card

lavish sparrow
#

but i figured it out

wanton adder
#

So I understand now

lavish sparrow
#

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

wanton adder
#

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

lavish sparrow
#

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

wanton adder
#

🤷🏼‍♂️ i dont know man I'm not a Dev or anything I'm just another guy that uses HA

#

maybe though

lavish sparrow
#

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

wanton adder
#

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)

lavish sparrow
#

yes correct

#

so i have to make a toggle helper

#

as you said

#

thanks <3

wanton adder
#

No problem

#

Glad to help