#Set identity to zero with automation?

1 messages · Page 1 of 1 (latest)

hard gulch
#

//English:
Hello everyone 🙂 .

I hope you can help me here in the shortest possible way.

Problem: With a smart socket, the power is not set to 0w after switching on but remains at the last active value.

I would like to try to overwrite this value with an automation after switching off.

How do I do this?

//Deutschland (original):
Moin zusammen 🙂 .

Ich hoffe mit kann man hier auf kurzem Dienstweg helfen.

Problem: Bei einer smarten Steckdose wird nach anschkaten die Leistung nicht auf 0w gesetzt sondern verbleibt beim letzten aktiven Wert.

Ich möchte gerne versuchen, diesen Wert mit einer Automation nach abschalten zu überschreiben.

Wie mache ich das?

muted widget
#

To be honest, for sensors like this that have wierd behaviour, I prefer making a template sensor helper intermediary rather than messing around, trying to force the raw sensor to behave
EG you could do:
{{0 if is_state('on/off sensor', 'off') else states('power sensor') }}