Closed calamarain closed 1 month ago
@calamarain this is an interesting idea but unfortunately I don't see a robust approach to implement this, at least not in the context of this integration. Why not use the info from the charging station (Wallbox) directly? All decent charging stations does have some kind of API which can be leveraged, mostly via MQTT.
My charging station doesn't have an energy meter. Using the car's value seems like a good enough estimate for my use case, of getting insight into my home's energy use. Perhaps the best solution then is to create an automation that toggles (and resets?) a standard HASS utility meter?
I think you can perfectly achieve what you described using an utility meter.
pon., 22 lip 2024, 10:04 użytkownik Remus Lazar @.***> napisał:
@calamarain https://github.com/calamarain this is an interesting idea but unfortunately I don't see a robust approach to implement this, at least not in the context of this integration. Why not use the info from the charging station (Wallbox) directly? All decent charging stations does have some kind of API which can be leveraged, mostly via MQTT.
— Reply to this email directly, view it on GitHub https://github.com/remuslazar/homeassistant-carwings/issues/10#issuecomment-2242336024, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH6ADBJXDR5KD7SWWZYR2T3ZNS4HNAVCNFSM6AAAAABLEFKF52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBSGMZTMMBSGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
That would be great. What would be required? Because the value of the utility meter should only change when the car is charging, and it should start counting up from whatever value the car has when it starts charging.
Looking at the form for creating a utility meter in HASS, it seems like the 'Periodically resetting' functionality should be used, it doesn't reset to 0, though.
Any ideas on how this could be made to work?
Addition: this is what the value from the car can look like:
AFAIK as long as you don't set your utility meter to netto it will only count when the source sensor is increasing.
pon., 22 lip 2024, 11:33 użytkownik calamarain @.***> napisał:
That would be great. What would be required? Because the value of the utility meter should only change when the car is charging, and it should start counting up from whatever value the car has when it starts charging.
Looking at the form for creating a utility meter in HASS, it seems like the 'Periodically resetting' functionality should be used, it doesn't reset to 0, though. image.png (view on web) https://github.com/user-attachments/assets/7b970b06-f50b-4a73-a711-4daabd94140e Any ideas on how this could be made to work?
— Reply to this email directly, view it on GitHub https://github.com/remuslazar/homeassistant-carwings/issues/10#issuecomment-2242513687, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH6ADBKUXUFSKG4SOUC4UEDZNTGWTAVCNFSM6AAAAABLEFKF52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBSGUYTGNRYG4 . You are receiving this because you commented.Message ID: @.***>
Ok. So what would a utility meter do if the input resets to a value > 0?
Remain constant
pon., 22 lip 2024, 13:09 użytkownik calamarain @.***> napisał:
Ok. So what would a utility meter do if the input resets to a value > 0?
— Reply to this email directly, view it on GitHub https://github.com/remuslazar/homeassistant-carwings/issues/10#issuecomment-2242697297, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH6ADBPMPBAU2TJA62VIHHTZNTR7NAVCNFSM6AAAAABLEFKF52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBSGY4TOMRZG4 . You are receiving this because you commented.Message ID: @.***>
A solution is to create a utility meter with these settings:
If you like the utility meter to only measure conditionally, create two tariffs, e.g., 'on' and 'off'. I used this to only measure when my charge point at home is charging.
Checklist
Is your feature request related to a problem? Please describe.
Thanks a lot for writing and maintaining this integration! It would be great to use the newly available
sensor.leaf1niss_battery_capacity
to measure how much energy has been used to charge the car.Describe the solution you'd like
I'm unsure how to do this, but I'm sure people with actual programming experience can think of a good solution. I suppose the documentation of this integration would be a good place to document an example.
Describe alternatives you've considered
Additional context
No additional context.