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

Also wondering, how would you recommend handling dynamic time of use pricing for power where an application was running while the cost changed?

ie it started running in Off Peak and finished in Peak, which have different rates?

Hi Everybody,

whats wron in this Code - the BP send no message by starting the action manually ?

alias: Waschmaschine fertig
description: ""
use_blueprint:
  path: >-
    sbyx/notify-or-do-something-when-an-appliance-like-a-dishwasher-or-washing-machine-finishes.yaml
  input:
    power_sensor: sensor.fritz_dect_200_43_leistung
    starting_threshold: 200
    actions:
      - action: notify.mobile_app_andys_ipad_mini_6
        metadata: {}
        data:
          message: Waschmaschine fertig Message
          title: Waschmaschine fertig Title
      - action: notify.mobile_app_iphone_andy2025
        metadata: {}
        data:
          message: SpĂŒlmaschiene fertig
          title: Waschmaschine fertig fĂŒr iPhone 15
      - action: notify.mobile_app_ipad_air_11_new
        metadata: {}
        data:
          message: Waschmaschine fertig Message
          title: Waschmaschine fertig Title
    pre_actions:
      - repeat:
          count: 3
          sequence: []
    starting_hysteresis: 2
    finishing_hysteresis: 3
    finishing_threshold: 100

The notify.mobile_app for himself works perfect.

Thanks a lot.

Hello,
I have a Problem getting a push Notification for end notify.
I get a Notification for the start of my dryer. The test works.
But when i enable the end notify tab, i don’t get a Notification Event via a push notification.
Did i make a mistake in my config?
The automations.yaml entry is very short:

- id: '1762271639473'
  alias: WM
  description: ''
  use_blueprint:
    path: Blackshome/appliance-notifications.yaml
    input:
      power_sensor: sensor.trockner_leistung
      end_time_delay: 1
      end_repeat_count: 2
      include_start_notify: enable_start_notify_options
      start_notify_device:
      - cccea1d3fc5c7b4f20f3b17c423ba078
      include_end_notify: enable_end_notify_options
      end_notify_device:
      - cccea1d3fc5c7b4f20f3b17c423ba078

Thank you for your help

Same here, I added a custom action to send telegram messages on start and end, so on start I get android and telegram notification but on end I get only telegram notification, the android one doesn’t show.
The yaml :

alias: Lessive
description: ""
use_blueprint:
  path: Blackshome/appliance-notifications.yaml
  input:
    power_sensor: sensor.prise_buanderie_power
    running_dead_zone: 0
    end_appliance_power: 10
    end_time_delay: 1
    include_start_notify: enable_start_notify_options
    start_notify_device:
      - 825bb3f305e57f7c7a04e60b71d97768
    start_title: Lavage
    start_notify_data:
      - channel
    start_notify_channel: HA
    include_end_notify: enable_end_notify_options
    end_notify_device:
      - 825bb3f305e57f7c7a04e60b71d97768
    end_message_title: Lavage
    end_notify_data:
      - channel
    end_notify_channel: HA
    end_reminder_notification: disable_reminder_notification
    end_reminder_notification_time_delay: 1
    end_reminder_notification_max_count: 5
    power_consumption_sensor: sensor.prise_buanderie_energy
    include_power_tracking: enable_power_tracking
    end_notify_tag: lavage
    start_notify_tag: lavage
    start_custom_actions:
      - action: telegram_bot.send_message
        data:
          config_entry_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
          message: Lessive démarrée
    include_custom_actions:
      - enable_end_custom_actions
      - enable_start_custom_actions
    end_custom_actions:
      - action: telegram_bot.send_message
        data:
          config_entry_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
          message: Lessive Terminée

@spacetom

Your welcome, glad you got it all working now.

Blacky :grinning:

@Wraey

They are being stored to helpers. This is how you can set them and use it in a custom end action if you would like them to store the result in a helper.

{% set kwh = (states(end_power_consumption) | float - states(start_power_consumption) | float) %}
{% set cost = kwh * (states(cost_per_kwh) | float) %}

I haven’t tested it but something like this in your custom end action.

    end_custom_actions:
      - variables:
          kwh: >
            {{ (states(end_power_consumption) | float -
            states(start_power_consumption) | float) }}
          cost: |
            {{ kwh * (states(cost_per_kwh) | float) }}
      - action: input_number.set_value
        metadata: {}
        data:
          value: "{{ kwh }}"
        target:
          entity_id: input_number.your_kwh_number_helper_here
      - action: input_number.set_value
        metadata: {}
        data:
          value: "{{ cost }}"
        target:
          entity_id: input_number.your_cost_number_helper_here

You can’t, it only records it at the start and end. See points 4 & 5 of the FAQ click here. If you would like to do this you may be able to run a script from the start.

Also note HA can track your energy usage of your sensor if you like. Go to Energy > 3 dots top right and select energy configuration > add your sensor under individual devices

Blacky :grinning:

@AndyW64

I have no idea how you got all those settings. Try an recreate the automation again from new.

Blacky :grinning:

@Pandi

Welcome to the community.

All looks good but you have a End - Repeat Count of 2 in your Power Settings. This means as per your settings it must go from above 5 watts to below 5 watts for at least 1 min twice before you will receive your end notification.

Try setting your End - Repeat Count to 1.

Blacky :grinning:

@bemo47

In Energy Tracking you missing your number helpers.

Once you add them in it will work. See the more information link.

Blacky :grinning:

Oh thanks, I will add this, but my issue is just the end message that doesn’t show, it is based on the power entity only, apparently no link with the energy entities, are you sure there is a link ?

@bemo47

In the image I provided above the arrow shows you the link that will take you to the FAQ. Here it is for you click here.

You need to add the number helpers into the inputs shown in the image above that has the red box around it. They are

  • Energy Tracking - Cost per kWh
  • Energy Tracking - Start Number Helper
  • Energy Tracking - End Number Helper

Blacky :grinning: