thomasloven / lovelace-state-switch

🔹Dynamically replace lovelace cards depending on occasion
MIT License
382 stars 27 forks source link

Possible to add a delay between state changes #93

Closed arboeh closed 1 year ago

arboeh commented 1 year ago

Would be nice to have the posibility to add a delay between state changes. Sometimes its flipping too often. Im using it to change cards for "grid power import" and "grid power export". Sometimes the power is changing very often between grid-import and solar-export and thats why I asked for this enhancement.

DEADSEC-SECURITY commented 1 year ago

Have you tried transition_time Screenshot 2022-10-17 203256

arboeh commented 1 year ago

Solved with a workaround by adding binary sensors with delay_on and delay_off.