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
Add optional dsmr timestamp sensor #104979
Conversation
Hey there @RobBie1221, @frenck, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
What is the practical use case of this? |
I for example calculate the estimated peak usage according to the current peak usage + current power usage. Only small amount of people will use it I guess, but it doesn't hurt to have it as a sensor which is disabled by default I guess? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,
Thnx @dupondje 👍
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Remove "timestamp" translation Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
I dunno honestly, this is not a common / normal pattern in our integrations, hence I think it is odd to add it here as well. @joostlek @jbouwh You approved, does that mean you do think this is a common pattern? ../Frenck |
dsmr_reader has it also included for example:
Just don't see a reason to enable it by default. But might be useful for some users to have it available. |
That doesn't make it a common pattern? |
|
But what is the use case for it? |
Proposed change
Add an (optional) timestamp sensor which is set to the timestamp value of the dsmr telegram.
This can be useful sometimes as the time on the meter can sometimes have some offset. (12 seconds in my case now for example)
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: