Skip to content
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

可否在計費周期重置時更新attribute "start day"的時間 #28

Open
ivanlee1007 opened this issue Nov 30, 2024 · 0 comments
Open

Comments

@ivanlee1007
Copy link

首先誠摯感謝您的程式碼讓我的HA 可以計算每期的電力使用費用。
目前 power_cost sensor 內的 "start day" attribute 似乎會一直固定在第一次建立sensor 時候所指定的抄表日期那一天。可否在計費周期重置時更新attribute "start day"的時間好讓我可以顯示目前這一個計費周期的開始日期? 另外可否也提供一個attribute 顯示目前計費周期的end day? 謝謝!

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

No branches or pull requests

1 participant