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

@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