I have a problem and I just can’t get ahead:
I would like to set a status text via KNX per notify - this also works wonderfully. However, this does not work from an automation.
that means that states('sensor.dishwasher_remaining_program_time') results in “unknown”.
So the state of sensor.dishwasher_remaining_program_time is “unknown” (exactly that string) at time of execution.
If this is the case when the dishwasher is not running, you’ll have to handle that case - maybe with an if/else and a variable or something.