-
-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calculating Remaining Units #19
Comments
I would use the monthly utility meter on your sensor data from your glow it will reset every month but will not reset your overall consumption from your glow. It will count up but with a quick calculation you should be able to get it to count down. either way you will be able to see how much you have used and it automatically resets every month. |
I am doing this with a template sensor in HA. I have a input-number helper for the starting units, where I will enter the starting units and then subtract the total usage from that. I still need to decide if I want to reset my total usage everytime I enter the starting units for the month, but got it working in principle. template sensor config:
|
I am trying to get this to work. I have created the input-number helper, but i am a little lost as to where the template sensor config goes. I get errors when i put it in config.yaml Would you mind giving me a little more insight? |
Did you indent your config correctly? I could not figure out how to paste the code with indents. My config is split into different files. You can test the value_template using the template option in developer tools. Do you mind sharing your code and include the sensor names for the input_number and the energy value. I will see if I can assist as much of my coding is by trial and error input_number.yaml sensors.yaml |
Sorry for the late reply @iamvlanone . Now it seems to be working perfectly. Thank you! |
I love this integration. Got it working quite well with an LDR since I don't have access to photodiode.
I have a prepaid meter where I load e.g 500 units at the beginning of the month. Since I can look on the display to see there are currently 537.1 units left, I'm looking for tips on how I can manually enter this into HA and then expose/calculate the remaining units in HA (since glow is able to tell me how many times the light blinked - i.e. how many units I have consumed.)
Any nifty ways for achieving this in HA?
The text was updated successfully, but these errors were encountered: