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
69.85k stars 28.95k forks source link

Missing Tibber Meter entity #119530

Open twobeass opened 3 weeks ago

twobeass commented 3 weeks ago

The problem

I am using the Tibber integration and miss the entities for meter consumption and production. It is possible to get this informations via API ([astMeterConsumption/Production) but the entities are not created in Home Assistant

What version of Home Assistant Core has the issue?

core-2024.5.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tibber

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tibber

Diagnostics information

config_entry-tibber-5f2d3c5dd9d1dce5e2f87766e99b303e.json

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 3 weeks ago

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

Code owner commands Code owners of `tibber` 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 tibber` 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)


tibber documentation tibber source (message by IssueLinks)

Danielhiversen commented 3 weeks ago

What sensors do you have from Tibber pulse?

marcelheib commented 3 weeks ago

Hey, I have the same problem. I currently have 13 entities since yesterday 9pm. For example, the current electricity price is missing.

Danielhiversen commented 3 weeks ago

Any error in the log?

marcelheib commented 3 weeks ago

Unfortunately not.

marcelheib commented 3 weeks ago

Could it be related to the fact that I announced a relocation yesterday?

Danielhiversen commented 3 weeks ago

Could you run this query with your token at https://developer.tibber.com/explorer ?

{
  viewer {
    homes {
      currentSubscription{
        status
        priceInfo{
          current{
            total
            startsAt
          }
        }
      }
    }
  }
}
marcelheib commented 3 weeks ago

Result:

{ "data": { "viewer": { "homes": [ { "currentSubscription": null }, { "currentSubscription": { "status": "ended", "priceInfo": { "current": { "total": 0.3203, "startsAt": "2024-06-13T19:00:00.000+02:00" } } } } ] } } }

marcelheib commented 3 weeks ago

It seems that there have been changes to the API.

https://developer.tibber.com/docs/reference#price

In some rows there is an "deprecated" marker.

Danielhiversen commented 3 weeks ago

"status": "ended",

So we do not try to fetch prices from your home

marcelheib commented 3 weeks ago

Many thanks for the quick reply. Strange that the status "terminated" is already noted. The contract still runs until July 01.

image

twobeass commented 2 weeks ago

Could you run this query with your token at https://developer.tibber.com/explorer ?

{
  viewer {
    homes {
      currentSubscription{
        status
        priceInfo{
          current{
            total
            startsAt
          }
        }
      }
    }
  }
}

{ "data": { "viewer": { "homes": [ { "currentSubscription": { "status": "running", "priceInfo": { "current": { "total": 0.3325, "startsAt": "2024-06-21T09:00:00.000+02:00" } } } } ] } } }

And this 19 Entities were created:

image

Danielhiversen commented 2 weeks ago

@tobiebooth So it is a feature request and not a bug?

twobeass commented 2 weeks ago

I think it is a bug as i am missing Last meter active import register state (kWh) Last meter active export register state (kWh)

Danielhiversen commented 2 weeks ago

Do you get the values if you try with your token at https://developer.tibber.com/explorer ?

twobeass commented 2 weeks ago

subscription{ liveMeasurement(homeId:"censored"){ timestamp lastMeterProduction lastMeterConsumption } }

shows me

{ "liveMeasurement": { "timestamp": "2024-06-21T09:53:31.000+02:00", "lastMeterProduction": 964.5954, "lastMeterConsumption": 155.7596 } }

Danielhiversen commented 2 weeks ago

Strange, then I do not know why you do not see it in Home Assistant

twobeass commented 2 weeks ago

I added the integration before my contract started, all the other entities showed up after the start date of 01/06, but these two are still missing. Could that be the issue ? Any ideas what to try out ?