Hi everyone,
(If relevant, I’m using openHAB 4.1.2.)
Recently, I blew a 63A fuse in my house because too many high-power devices (heaters, car chargers, cooktop, etc.) were turned on simultaneously.
Now, to monitor house consumption, I bought an energy meter that provides real-time (well,
with a 10 seconds delay) power usage data. I’ve already set up a rule that sends an alert when consumption exceeds a certain threshold.
Now, I don’t want an alert, I want this stuff to work by itself.
I’d like to automate power management by turning off certain devices when a threshold is reached. Specifically, if the current exceeds 55A, the system should shut off devices in the following order (example):
- Spa heater
- Floor heater 1
- Floor heater 2
- Car charger
- Room heater 1
- Room heater 2
- Room heater 3
- Room heater 4
Additionally, if the load is above 40A, I want to prevent some items (probably a different list) from turning on automatically (for example, heaters that are turned on automatically based on the temperature). This is to be sure that manually operated devices (chargers, oven, cooktop, etc.) can still be used safely.
It it was a ‘programming language’, I would use some kind of ‘wrapper’ around each controllable item. This wrapper would:
- Allow the item to be turned off externally (e.g., sending a command to turn off the car charger).
- Prevent the item from turning on if certain conditions are met. (some rule sends a command to the item, however the wrapper prevents this item from turning on)
For the shutdown logic, I can write a rule that iterates over a predefined list (possibly a group, but I need it to be in a specific order), turning off devices one by one. It could wait 10–15 seconds after each shutdown and check if the current is still above the threshold before proceeding to the next device.
However, I have no idea how to implement the 40A “yellow” threshold rule, which prevents items from turning on without rewriting all the rules I have and introducing a complex logic to the system.
How can I achieve this in openHAB?
Any advice would be greatly appreciated!
Thanks!