Ett script för shelly gen 2 enheter som körs direkt i enheten och tar in aktuellt pris var 10e minut och slår av eller på enheten om priset är över eller under att nivå.
Improved Energy Price Monitoring with Emergency Mode
Description
This pull request introduces an enhancement to the existing energy price monitoring script, providing a new emergency mode feature. This feature ensures that high electricity prices trigger a temporary mode to reduce energy usage. The modifications include:
New Features:
Emergency Mode: Added functionality to switch to emergency mode when the energy price exceeds a threshold consecutively.
Thresholds: Introduced configurable thresholds to determine when to enter emergency mode and for how long.
Consecutive High Price Monitoring: Track consecutive occurrences of high prices to decide when to activate emergency mode.
Changes:
Emergency Activation Duration: Defined a specific duration for emergency mode (2 hours).
Monitoring Functionality: Modified the existing monitoring function to track consecutive high price counts and trigger emergency mode based on the threshold.
Switch Control: The switch is now controlled based on emergency mode status rather than only the current price.
Other Updates:
Documentation: Updated comments in the code to reflect the new functionality and usage.
Motivation
This update aims to automate power usage reduction by triggering emergency mode only when consecutive high prices occur, helping users save energy and cost.
How to Use
Update the configuration with the appropriate Tibber API credentials and thresholds.
Deploy the updated script to the Shelly device.
Observe the device automatically entering emergency mode based on high energy prices.
Improved Energy Price Monitoring with Emergency Mode
Description
This pull request introduces an enhancement to the existing energy price monitoring script, providing a new emergency mode feature. This feature ensures that high electricity prices trigger a temporary mode to reduce energy usage. The modifications include:
New Features:
Changes:
Other Updates:
Motivation
This update aims to automate power usage reduction by triggering emergency mode only when consecutive high prices occur, helping users save energy and cost.
How to Use