home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.64k stars 29.94k forks source link

DSMR - Not coming energy production and consumption value (only monthly) #125345

Open zsotie opened 2 weeks ago

zsotie commented 2 weeks ago

The problem

Not coming the energy production and consumption value, only the monthly value. Non of them.

What version of Home Assistant Core has the issue?

2024.9.0

What was the last working version of Home Assistant Core?

2024.7.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

dsmr

Link to integration documentation on our website

dsmr

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 2 weeks ago

Hey there @robbie1221, mind taking a look at this issue as it has been labeled with an integration (dsmr) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `dsmr` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign dsmr` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


dsmr documentation dsmr source (message by IssueLinks)

mib1185 commented 2 weeks ago

Hi @zsotie please provide a bit more detailed issue description, thx :+1:

zsotie commented 2 weeks ago

def _preprocess_telegram_data(self, data): """ Preprocess the telegram data to exclude previous month's data.

    :param str data: Full telegram data string
    :return: Processed telegram data without the previous month's section
    :rtype: str
    """
    # Remove or exclude everything after the historical data section start `0-0:98.1.0`
    processed_data = re.split(r'0-0:98\.1\.0[\s\S]*', data)[0]
    return processed_data
zsotie commented 2 weeks ago

[parsers.py]

def parse(self, telegram_data, encryption_key="", authentication_key="", throw_ex=False): # noqa: C901 telegram = Telegram()

before telegram_data = self._preprocess_telegram_data(telegram_data) telegram = Telegram()

this: def _preprocess_telegram_data(self, data): processed_data = re.split(r'0-0:98.1.0[\s\S]*', data)[0] return processed_data

zsotie commented 2 weeks ago

2024-09-05 17:41:00.324 DEBUG (MainThread) [dsmr_parser.clients.protocol] got telegram: /HLY5\D545-METER

1-3:0.2.8(50) 0-0:1.0.0(240905174101S) 1-0:1.8.0(016059.434kWh) 1-0:1.8.1(007085.565kWh) 1-0:1.8.2(008973.869kWh) 1-0:1.8.3(000000.000kWh) 1-0:1.8.4(000000.000kWh) 1-0:2.8.0(014544.610kWh) 1-0:2.8.1(010279.510kWh) 1-0:2.8.2(004265.100kWh) 1-0:2.8.3(000000.000kWh) 1-0:2.8.4(000000.000kWh) 1-0:3.8.0(000050.024kvarh) 1-0:4.8.1(004472.730kvarh) 1-0:5.8.0(000018.782kvarh) 1-0:6.8.0(000031.242kvarh) 1-0:7.8.0(002407.592kvarh) 1-0:8.8.0(006721.661kvarh) 1-0:15.8.0(030604.044*kWh)

And this is the HA value: -0:1.0.0(240901000000T) 1-0:1.8.0(015989.688kWh) 1-0:1.8.1(007055.107kWh) 1-0:1.8.2(008934.581kWh) 1-0:2.8.0(014433.930kWh) 1-0:2.8.1(010189.231kWh) 1-0:2.8.2(004244.699kWh) 1-0:3.8.0(000049.968kVarh) 1-0:4.8.1(004437.545kVarh) 1-0:5.8.0(000018.769kVarh) 1-0:6.8.0(000031.199kVarh) 1-0:7.8.0(002385.155kVarh) 1-0:8.8.0(006683.219kVarh) 1-0:15.8.0(030423.618*kwh )

zsotie commented 2 weeks ago

I get back the 1.8.0 and 2.8.0 received under the code last month's closing data. The problem is that I don't have daily import/export and current values data.

issue-triage-workflows[bot] commented 1 day ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

zsotie commented 15 hours ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

I'm using the latest version, but the problem is above! Please resolve it!