I have a little problem with the remaining time of my washing machine.
The remaining time sensor, shows an end time, but it is wrong. Thus, I can not use it to display the remaining time (in minutes).
Here briefly for explanation in a template:
- status: sensor from the washing machine end time 13:00 clock
2nd status: current time in Homeassistant - status: sensor time machine finished
- status: remaining time in minutes (1h ago it showed me also already 34 minutes, because the machine should be finished at 13:00 o’clock, it should have shown 104 minutes).
This is the sensor as state:
Here is my Code:
- sensor remaining time in minutes
- sensor time machine finished
- sensor:
name: "Waschmaschine_verbleibende_Zeit"
unique_id: "Waschmaschine_verbleibende_Zeit"
unit_of_measurement: "min"
state: '{{ (as_timestamp(states("sensor.waschmaschine_remaining_program_time")) - as_timestamp(now())) | timestamp_custom("%M") }}'
- sensor:
name: "Waschmaschine_Uhrzeit_fertig"
unique_id: "Waschmaschine_Uhrzeit_fertig"
unit_of_measurement: "Uhr"
state: '{{ (as_timestamp(states("sensor.waschmaschine_remaining_program_time"))| timestamp_custom("%H:%M")) }}'
How can i change that? Thanks for all hints.