How change sensor value using lambda?

It might be that you have to do this:
if ((id(estado).state == 0))

1 Like