Hi there,
my scripting skills are limited, but i can use chat gpt to refine my requirements.
So maybe someone finds this interesting and is willing to develop this automation.
So in the example we have a washingmaschine, but it could also be a dishwasher or other power consuming (dryer) device that needs a full cycle to run. I am looking a little bit in the direction of @leofabri, because you already have a similar blueprint ready.
Requirements for a Blueprint in Home Assistant to Monitor and Control the Washing Machine
Objective
The blueprint should monitor the power consumption of a washing machine and detect when it is turned on. If the washing machine operates at a high electricity price, it should be turned off until the price drops.
Functional Requirements
- Power Consumption Monitoring
- The blueprint should continuously monitor the power consumption of the washing machine.
- A configurable threshold defines when the washing machine is considered “on.”
- Electricity Price Monitoring
- Check a variable (
input_select.electricity_price
) for defined values (CHEAP
,NORMAL
,EXPENSIVE
). - If the electricity price is
NORMAL
orEXPENSIVE
, automatically turn off the washing machine. - Wait until the price is
CHEAP
before turning the washing machine back on.
- Status Representation
- The current status of the washing machine should be represented via an input field (
input_boolean.washing_machine_status
). - The status should distinguish between “off,” “on,” and “waiting.”
- Restart Behavior
- The blueprint must automatically reactivate after a Home Assistant reboot or restart.
- All configurations and states should be retained.
- Notifications and Actions
- Users should be able to receive notifications for various status changes (e.g., “washing machine on,” “electricity price too high,” “washing machine off”).
- Flexible actions should be definable, such as notifications via email, push notifications, or other Home Assistant actions.
Non-functional Requirements
- Robustness and Fault Tolerance
- The blueprint must ensure stability even in case of a home assistant reboot or manual control of the waschingmaschine
- User-Friendly Configuration
- Configuration parameters should be well-documented and easily adjustable.
- A clear user interface for configuring and monitoring the washing machine status and electricity price should be provided.
- Performance
- The blueprint should operate efficiently and not pose a significant load on the Home Assistant system.
Additional Requirements
- Configurable Time Span
- The time span for monitoring power consumption should be configurable.
- Manual Control Option
- Users should have the ability to manually turn the washing machine on or off, regardless of the current electricity price.
- Historical Logging
- The power consumption and electricity price history should be recorded to provide historical data for analysis.
- Scenario Support
- The blueprint should support various scenarios, such as “always keep the washing machine on,” “only run the washing machine when electricity is cheap,” etc.
- Test and Simulation Mode
- A test or simulation mode should be available to test the blueprint without performing real actions.
Final Remarks
This blueprint aims to enable efficient monitoring and control of the washing machine to save electricity costs and optimize operation. Due to its configurability and flexibility, it can be adapted to various needs and scenarios.