We just bought a new washing machine, a Samsung WW5300 which has Wifi and the option to connect to SmartThings.
In Home Assistant, there is a separate integration for SmartThings, and fortunately, it is straightforward to set up this link.
When you have connected Home Assistant and SmartThings, devices that have been added to SmartThings will be synchronized to Home Assistant. Here you will then get continuous status on the device.
E.g. for the washing machine, you get an overview of power consumption, the status of the machine, the option to switch it on/off, the washing program that is running, and when it is expected to be finished.
So – the first thing to do is connect Home Assitant and SmartThings. It is basically just a matter of following the instructions that have already been prepared on the Home Assistant integration page (https://www.home-assistant.io/integrations/smartthings/).
When this is done, the devices in SmartThings will be synchronized over to Home Assistant.
The smart thing to do now is to create a small template in the configuration file, which calculates how much time is left on the sink. If not, you will only get the time when the wash is finished.
All you need to do is add the following code to the configuration.yaml file.
Note – remember to replace “sensor.vaskemaskin_washer_completion_time” with the name/sensor of your machine. It can be e.g. “sensor.washer_samsung_completion_time”…
template:
- sensor:
- unique_id: washer_remaining_time
name: 'Washer Remaining Time'
state: >-
{% set rem_h = (as_timestamp(states.sensor.vaskemaskin_washer_completion_time.state) - as_timestamp(now())) | timestamp_custom('%-H', false) %}
{% set rem_m = (as_timestamp(states.sensor.vaskemaskin_washer_completion_time.state) - as_timestamp(now())) | timestamp_custom('%-M', false) %}
{% if int(rem_h) > 0.9 %} {{ rem_h }} hour(s) and {{ rem_m }} minute(s) {% else %} {{ rem_m }} minute(s) {% endif %}
After restarting Home Assistant, you will then get a sensor that gives you the number of hours/minutes left of the wash that is running.
Comment