for my washing machine it all works fine after a complete run of that machine. Waiting for others to run smoothly now (without changes during the run, they probably interfere with the run).
Have set up tracker for the following machines:
- Computers of both sons
- Washing machine
- Dryer
- Dishwasher
The washing machine is the one I started with and has a complete perfect run :). The others probably will follow. Thanx for the effort!
an example of my yaml:
alias: Bureau Ruben tracker
description: ""
use_blueprint:
path: Blackshome/appliance-notifications.yaml
input:
power_sensor: sensor.bureau_ruben_current_consumption
start_appliance_power: 30
end_appliance_power: 1
start_title: Bureau Ruben
start_message: Computer Ruben is aan
start_notify_device:
- 33940b162e8797d27da9816cdc144b8d
include_start_notify: disable_start_notify_options
include_end_notify: disable_end_notify_options
end_notify_device:
- 33940b162e8797d27da9816cdc144b8d
end_message_title: Bureau Ruben
end_message: Computer Ruben is uit
include_duration_tracking: enable_duration_tracking
end_message_duration_tracking: Duur
running_dead_zone: 7
start_time_delay: 0.5
end_time_delay: 3
power_consumption_sensor: sensor.bureau_ruben_today_s_consumption
start_notify_data:
- sticky
end_notify_data:
- sticky
end_repeat_count: 1
include_custom_actions:
- enable_end_custom_actions
start_custom_actions: []
end_custom_actions:
- action: notify.pushover
metadata: {}
data:
message: >-
Computer Ruben is uit {% set kwh = states(end_power_consumption) |
float - states(start_power_consumption) | float %}
{{'\n'}}{{end_message_kwh}} {{kwh | round(2) }} kWh {% set cost
= (states(end_power_consumption) | float -
states(start_power_consumption) | float) * (states(cost_per_kwh) |
float) %} {{'\n'}}{{end_message_cost}}{{cost | round(2) }}
{% if include_duration_tracking == "enable_duration_tracking" %}
{% set end_time = now().timestamp() %} {% set duration =
(end_time - start_time) | int %} {% set hours = (duration //
3600) | int %} {% set minutes = ((duration % 3600) // 60) | int
%} {% set seconds = (duration % 60) | int %} {{'\n'}}Duur {{
'%02d' | format(hours) }}:{{ '%02d' | format(minutes) }}:{{ '%02d' |
format(seconds) }} {% endif %}
include_time: time_disabled
include_power_tracking: enable_power_tracking_and_cost
end_reminder_notification_message: Nogmaals, de computer van Ruben is uit
end_message_kwh: Verbruik
end_message_cost: Ongeveer €
cost_per_kwh: input_number.energieprijs_export_normaal_eur_per_kwh
start_power_consumption: input_number.bureau_ruben_start_consumptie
end_power_consumption: input_number.bureau_ruben_end_consumptie
UPDATE: All working now. Fixed last issue where the power usage of the computers didnt drop below 1watt