Skip to content

Multipliers for Dynamic Limits#90

Open
jarvisms wants to merge 3 commits intolozzd:mainfrom
jarvisms:main
Open

Multipliers for Dynamic Limits#90
jarvisms wants to merge 3 commits intolozzd:mainfrom
jarvisms:main

Conversation

@jarvisms
Copy link

DynamicLimits can now apply a multiplier in the case where the number_input entity is in pence while the tariff is in pounds.

DynamicLimits can now apply a multiplier in the case where the  number_input entity is in pence while the tariff is in pounds.
@lozzd
Copy link
Owner

lozzd commented Jul 18, 2025

Interesting - what's the use case for that one?
Can you add it to the README too please?

Documentation for the additionalDynamicLimits.multiplier property.
@jarvisms
Copy link
Author

jarvisms commented Jul 22, 2025

Documentation has been added.
The use case is where the input number or sensor being used is simply in pence rather than pounds which is what the underlying rates are in. i.e. The value "20" returned by a sensor for a threshold of 20p/kWh so needs to be multiplied by 0.01 to be correctly interpreted as £0.20/kWh as appropriate for comparing to Octopus rates. This could also be a negative number for use with positive numbers which should be interpreted as export. Otherwise, the only other way to do this would be to making a separate template number helper in home assistant which is somewhat overkill.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants