📳 Appliance Notifications & Actions - Washing Machine - Clothes Dryer - Dish Washer - ETC

now works perfect!! thanks

1 Like

Wow this is almost exactly what ive been looking for, and now i come cap in hand to see if anyone is able to help me on a journey to extend this blueprint a little.

What Id like to do is have a QR code on the washing machine or dryer that when scanned turns the power socket on and stores the details of the person that scanned it for targetted notifications once complete.

Once complete, grab these details and use them to notify that persons device and media players.

The rationale: I did set up something similar to this, but nowehere near as comprehensive and found that my teenagers didnt seem to mind if the entire house was being reminded over and again that someones laundy was ready to be tended to!

To that end, having a qr code on the machine that turns the socket off and kills the notifications would be in order, I reckon.

Complete newby here - migrating from homekit and loving what HA has done for our smart home so apologise for my pie in the sky hopes but hope someone is able to point me somewhere toward the right path. Cheers.

@tipananz

What you would do is create a simple automation that turn ON the washing machine when you scan the QR code.

Next, create a script that identifies the last device to scan the QR code and sends a notification to that device when your washing is finished. Use this script in the custom end action of your automation. Now, when the automation completes, it will notify the appropriate device.

You can also choose to turn OFF the washing machine within the script or add a separate action in the custom actions section to turn OFF the washing machine.

Blacky :smiley:

@Blacky
Thanks for this amazing blueprint, which works nicely! :heart: Even the costs, calculated by consumption (kWh) during the run multiplied by the price (currency/kWh) are correctly shown in the alert message on my mobile device. :+1:

Would you mind sharing a few thoughts about how I could present the costs per run on my dashboard? I am not sure how to place it there - marked by <???>:

type: entity
show_state: true
show_icon: true
entity: <???>
name: Costs
color: state
icon: mdi:tumble-dryer

Do I have to create another template variable for this, or can I put it (as a kind of a formula) directly into the YAML code shown above?

I understand that this is not really related to your great blueprint, but is rather a more general HA question about how to present a value from an entity that is actually a factor (A x B). Hopefully, you do not mind that I ask here.

Thank you very much for your time and help! :blush:

@7wells

I will show you 2 ways… you just have to replace your input numbers to your entity ID’s. It will only be accurate when it is finished.

Option 1: Markdown Card

  1. Go to your Dashboard and edit it.
  2. Add a Markdown Card with the following content changing your entity ID’s.
{% set cost = 
  (states('input_number.washing_machine_end_kwh') | float - 
  states('input_number.washing_machine_start_kwh') | float) * 
  (states('input_number.electricity_rate') | float) %}
**Washing Machine Cost:** ${{ cost | round(2) }}

Option 2: Template Sensor

  1. Navigate to Settings > Device & Services > Helpers tab at the top.
  2. Click the Create helper button.
  3. Select Template and then choose Template a sensor.
  4. Add the code below and change your entity ID’s.
{% set cost = 
  (states('input_number.washing_machine_end_kwh') | float - 
  states('input_number.washing_machine_start_kwh') | float) * 
  (states('input_number.electricity_rate') | float) %}
{{ cost | round(2) }}

You could use a trigger template sensor so it will only update when the end kWh changes like this into your configuration.yaml file.

template:
  - trigger:
      - trigger: state
        entity_id: input_number.washing_machine_end_kwh
    sensor:
      - name: "Last Washing Machine Cost"
        state: >
          {% set cost = 
            (states('input_number.washing_machine_end_kwh') | float - 
            states('input_number.washing_machine_start_kwh') | float) * 
            (states('input_number.electricity_rate') | float) %}
          ${{ cost | round(2) }}

Blacky :smiley:

1 Like

New Update 2.7

Maintenance :toolbox:

  • From time to time, Home Assistant updates their YAML standards and coding practices. To align with their roadmap, we’ve updated the code accordingly. We will continue to apply these updates across all our blueprints as they are revised.

If you like this blueprint? Consider hitting the :heart: button in the top post :+1:

If you like my blueprints, and would like to show your support or just say thank you? Click Here :smiling_face_with_three_hearts:

Enjoy

Blacky :grinning:

Hi,

Great blueprint and I have this working fine for the dish washer and dryer. My washer is smart things based, which sends an energy usage as KWh but not an on demand wattage.

I could create a sensor which goes to 10 when the washers state changes to ON, and then 0 when the washers state changes to OFF, which could then be used as a dummy wattage sensor, but is there a better way, i.e. modified so that the washers state can be used in place of the wattage triggers?

Thanks.

Hey!

First of all: Great work. I really love this blueprint.
I do have a question though: Is there an option to access the current “state” of the automation? E.g. I want to display on my dashbboard if the dryer is running or if the automation is in waiting state after the end threashhold has been detected.
Atm I’m helping myself by setting a helper entity with the start and end custom actions but I’d really love to use the other states this automation has …

@vantech2020

If you are going to use the power tracking then that would be the best way. If your not going to use the power tracking then have a look at my :round_pushpin: State Notifications & Actions blueprint as it will track your state and send the notification. If you state is not in the selection for start and end then just type it in, make sure it exactly the same (lower case?).

Blacky :smiley:

@HSven1611

The automation just runs so having a custom action is the way to go. @nicknol shared his method of how he does it and it may help you in your setup, click here to Nick post.

Maybe someone else may share how they monitor the status in a dashboard.

Hope this helps you.

Blacky :smiley:

Some updates
decluttering_card is not maintained anymore, hence I switched to the streamline_card; which allows configuration via UI :slight_smile:

btw, in my post I mixed up the icons, I use

      icon_off: mdi:tumble-dryer-off
      icon_on: mdi:tumble-dryer

Meanwhile I use MeasureIt to track the duration of the runs of the appliances; it observes a template condition to start/stop the kind-of stop watch. in my case input_boolean.dryer_job_cycle or to be more precise input_boolean.dryer_finished since I simplified my scripts to use less helpers, which were left-overs of former approaches…

1 Like

Hi, is there any chance to run the blueprint in a ‘skipping’ way, when a notification could no be sent?

I got as an example this message:

Device not connected to local push notifications

But the problem was only on one device and everything got skipped, also the custom actions.

Edit:
We only need this continue_on_error

Can you please integrate this?

wasmachine
I must be doing something wrong, because it’s not acting as it should.
I created four number helpers as shown by Blacky; two for the washing machine and two for the tumbledryer:
input_number.wasmachine_start_kwh
input_number.wasmachine_einde_kwh
input_number.wasdroger_start_kwh
input_number.wasdroger_einde_kwh

I created a quick entity list to see what was going on. (See picture)

When the washing machine started it entered the correct value for total kWh in the “start” field. As shown in picture.
When the washing machine stopped, the value in the “end” field remained “0”.
When the tumbledryer started it entered the same kWh value in the “end” field, see picture.
When the tumbledryer stopped, nothing changed.

What am I doing wrong?

@TCr82

Once you known that the device need to have local push is everything working ok?

Blacky :smiley:

@Maynstream

This is very strange explicitly because you have the exact same reading for your washing machine and dryer. Something it not set correctly.

Check your input numbers and check your Power Tracking - Power Sensor.

I thinking it will be your Power Tracking - Power Sensor. You should have different sensors for both that read the total kwh as it being use throughout the day (should always be increasing).

Blacky :smiley:

I used the wrong input number in one of the blueprints. Tumbledryer is working now.
Thanks for your reply👍!

1 Like

I had not figured out which device it is (was running out of time).

But I think this is a really missing feature to include the continue_on_error with the aliases. I think it should never block the blueprint from working, if one device fails.

I have a problem with this Blueprint. The automation starts aber never ends. I found this in die log:

Logger: homeassistant.components.automation.appliance_notifications_actions
Quelle: helpers/script.py:2032
Integration: Automatisierung ([Dokumentation](https://www.home-assistant.io/integrations/automation), [Probleme](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+automation%22))
Erstmals aufgetreten: 15:19:24 (2 Vorkommnisse)
Zuletzt protokolliert: 18:47:00

Appliance Notifications & Actions: Choose at step 5: choice 1: Wait until appliance has finished: Error rendering Appliance Notifications & Actions: Choose at step 5: choice 1: Wait until appliance has finished timeout template: Time period should be positive

Can someone help me? Next test tommorow is to try with “End - Power Time Delay” to 3 Minutes instead of 2,5. Perhaps the system does not cope with decimal places?

@Smart86

Have your entered in 2,5? It can handle decimal places but looks like you may have a comma not a dot. It should be 2.5

Blacky :smiley:

HI All,

Im still finind my feet with HA but am making good progress.

I have added the blueprint and added the smart socket that my tumble dryer is attached to.

I have set teh parametsrs looking at the cycle from last night - however when i click “run” just to test the notification for teh end nothing comes through - am i being really silly?

PS thanks for the ace blue print Blacky.