core icon indicating copy to clipboard operation
core copied to clipboard

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

Open zsotie opened this issue 1 year ago • 8 comments

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

zsotie avatar Sep 05 '24 15:09 zsotie

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)

home-assistant[bot] avatar Sep 05 '24 17:09 home-assistant[bot]

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

mib1185 avatar Sep 05 '24 17:09 mib1185

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 avatar Sep 05 '24 19:09 zsotie

[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 avatar Sep 05 '24 19:09 zsotie

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 avatar Sep 05 '24 19:09 zsotie

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.

zsotie avatar Sep 05 '24 19:09 zsotie

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.

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!

zsotie avatar Sep 20 '24 19:09 zsotie

I don't understand a single thing of what is wrong here. You are pasting some code from I don't know where (the _preprocess_telegram_data funtion), without any context.

You will really need to give a better detailed overview of the issue, cause this is just not understandable unfortunately!

dupondje avatar Oct 03 '24 07:10 dupondje

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.