Comments (33)
Could it be that the number of Usage "devices" is equal to the number of users (family members) shared to the account? In my case, my solar plan account is linked to 2 email addresses and I have 2 times the "device" Usage.
I have anecdotal evidence that this hypothesis might be true: I also have two devices and two users.
No. I am a single person in a single household for years. I just signed up as a new customer at Zonneplan and have 2 'devices' too, both with same sensors. I don't share my info with anyone, except with you guys here ;)
from home-assistant-zonneplan-one.
The fix hasn't been part of a release yet. If you are comfortable with editing python files, you can see the (limited) changes in #45 and just change it locally. Reboot HA, remove and add Zonneplan, and you should be good.
Sorry I missed that. Thx for the quick reply.
from home-assistant-zonneplan-one.
You can also download the beta (current main version) in HACS
from home-assistant-zonneplan-one.
Are all sensors 3 times available? And are you sure all are updated (get new values)?
It could be that some were duplicated during one of the upgrades earlier this year. Or maybe you reinstalled the integration a couple of times and the "old" sensors weren't correctly removed during that process.
But only 1 of each sensor should be updating in that case.
You can just remove the sensors that aren't getting new values.
from home-assistant-zonneplan-one.
I installed it just a couple weeks ago and had 2 "Usage" devices in the integration that also showed the same sensors.
For me, the first device, which had the entities without "_2" suffix were working while for the other one some were not working. So I disabled the second device.
from home-assistant-zonneplan-one.
I installed it just a couple weeks ago and had 2 "Usage" devices in the integration that also showed the same sensors. For me, the first device, which had the entities without "_2" suffix were working while for the other one some were not working. So I disabled the second device.
I had the same and also disabled the second one.
from home-assistant-zonneplan-one.
Same here
from home-assistant-zonneplan-one.
Only for 1 sensor?
if you remove the double sensors are they re-added after a reboot?
from home-assistant-zonneplan-one.
I had a closer look and think that it is related with the amount of phases of my electricity meter. I do have a 3 phase connection. Think that's why everything is tripled.
All my usage devices are equal:
Can someone confirm it behave as I expect?
from home-assistant-zonneplan-one.
I also have a 3 phase meter, but have 2 times usage.
from home-assistant-zonneplan-one.
I had a closer look and think that it is related with the amount of phases of my electricity meter. I do have a 3 phase connection. Think that's why everything is tripled.
All my usage devices are equal:
Can someone confirm it behave as I expect?
I also have 3 phases but 'only' 2 devices....
from home-assistant-zonneplan-one.
Only for 1 sensor?
if you remove the double sensors are they re-added after a reboot?
How do you remove a device?
from home-assistant-zonneplan-one.
Go to Zonneplan entities list:
Settings -> devices and services -> Zonneplan entities
Select the entity/sensor you want to remove
Click delete icon in the top
from home-assistant-zonneplan-one.
@tieskuh @renslinden @Dominic-070 Does the sensor show a red exclamation mark in the entities list? Or is it still active and updated every 3 minutes?
from home-assistant-zonneplan-one.
both sensors work normally, update every 3 minutes and give the same values. no red exclamation marks.
from home-assistant-zonneplan-one.
@tieskuh @renslinden @Dominic-070 how many devices does the integration show?
from home-assistant-zonneplan-one.
See my screenshot above, 4 devices in total. 3 Usage devices and 1 Connect Energiemeter.
Or what do you mean exactly?
from home-assistant-zonneplan-one.
There is a difference between devices and entities.
A device holds 1 or more entities.
from home-assistant-zonneplan-one.
@tieskuh @renslinden @Dominic-070 how many devices does the integration show?
I have 3 devices. 2 usage and 1 energymeter
from home-assistant-zonneplan-one.
Okay, looks that the response from the API is different than expected.
Could you enable debug logging and post the logs here? I'm interested in the debug line starting with Result
.
Be sure to sanitize your personal info when posting the logs here. Your address is probably in the results.
from home-assistant-zonneplan-one.
I am happy to do that. Can you help me a little bit with setting the logging level?
I have to call the service logger.set_level right? What is the data I have to provide to that service call?
from home-assistant-zonneplan-one.
@fsaris The json logging is too large, impossible to send it all and mask the personal details. There are multiple requests right? Please let me know which one you are looking for, then i can provide it.
Just rechecked my setup, the 3rd usage device didn't had any active sensors anymore. So it triggered me to reconfigure (delete and setup again) the Zonneplan integration. It now dropped to 2 usage devices. So the 3rd is magically gone, probably some backend changes?
Still wondering where the 2nd is coming from. I did add a second address within the Zonneplan App (my mothers address which is currently not configured). Maybe that is the reason?
from home-assistant-zonneplan-one.
Not sure if it helps, but I've got two Zonneplan dongles, one in my home and one in my business unit. I started using Zonneplan in the business unit and recently added my home to it. When I did that last thing, the app just gave me the option to monitor both by adding a small tab in the left top corner.
I'm assuming they are visible in the same app because both are based on the same email address. I can see the serial numbers when I open the devices in HA.
You might have registered multiple times at Zonneplan using the same email address which is now causing you to see more than one instance?
Not sure if this is the cause of your problem, but keep in mind that using the same email address will link more devices to your HA instance.
from home-assistant-zonneplan-one.
That should also show up as multiple devices
from home-assistant-zonneplan-one.
@YvoTuk That's exactly the situation I currently have (since a few days). Still my Usage devices are duplicated.
See here a recent screenshot:
from home-assistant-zonneplan-one.
Could it be that the number of Usage "devices" is equal to the number of users (family members) shared to the account? In my case, my solar plan account is linked to 2 email addresses and I have 2 times the "device" Usage.
from home-assistant-zonneplan-one.
Could it be that the number of Usage "devices" is equal to the number of users (family members) shared to the account?
I have anecdotal evidence that this hypothesis might be true: I also have two devices and two users.
from home-assistant-zonneplan-one.
Please enable debug logging (see https://github.com/fsaris/home-assistant-zonneplan-one#troubleshooting) and check in the logs for address_groups
, connections
and contracts
.
Easiest it to copy the json from the log and view them in a tool like http://jsonviewer.stack.hu/
I'm interested to know if there are expired contracts and/or connections of the shared accounts visible there.
Need to know where to check for if this should be filtered out by the integration
from home-assistant-zonneplan-one.
My gas prices are indeed on 'unknown' in HAS (I did not install my P1 yet + my contract starts in 3 days). And have 2 Usage sensors after install.
'address_groups': [
{
'uuid': '7e7f490e-f775-444e-90fb-d009fab44a25',
'connections': [
{
'uuid': '7e7f490e-f775-444e-90fb-d009fab44a25',
'ean': '871687400010641573',
'market_segment': 'electricity',
'contracts': [
{
'uuid': '29ca302a-26f2-455a-8f26-ee2911b51155',
'label': 'Stroom tegen uurprijzen',
'type': 'electricity',
'start_date': '2023-01-12T23:00:00.000000Z',
'end_date': None,
'meta': {
'external_contract_id': '35cff2c6-3262-4d4b-9e3c-af73015a77db',
'agreement_date': '2022-12-22',
'original_end_date': None,
'contract_type': 'smart',
'proposition_reference': 'Marktprijs-E-2021-11',
'start_reason': None,
'end_reason': None,
'show_in_contract_screen': True
}
}
],
'features': [
{
'code': 'E004',
'label': 'Verbruikshistorie'
}
],
'buttons': [
{
'title': 'Connect inchecken',
'subtitle': 'Je kunt nu aan de slag',
'icon': 'star',
'notification_badge': 1,
'group': 'Beschikbare check-ins',
'group_priority': 1,
'form_handler': 'refresh-user-data',
'url': 'https://app-api.zonneplan.nl/connections/7e7f490e-f775-444e-90fb-d009fab44a25/check-in-p1-installation'
}
]
},
{
'uuid': '994ac385-ca22-4903-b247-334f74db6300',
'ean': '871689213002007787',
'market_segment': 'gas',
'contracts': [
{
'uuid': '3f8c9391-fe37-4032-875d-6bb759bcc4b3',
'label': 'Gas tegen dagprijzen',
'type': 'gas',
'start_date': '2023-01-12T23:00:00.000000Z',
'end_date': None,
'meta': {
'external_contract_id': 'b4242469-9ed8-497d-be1d-af73015a79bd',
'agreement_date': '2022-12-22',
'original_end_date': None,
'contract_type': 'smart',
'proposition_reference': 'Marktprijs-G-2021-11',
'start_reason': None,
'end_reason': None,
'show_in_contract_screen': True
}
}
],
'features': [
],
'buttons': [
]
}
from home-assistant-zonneplan-one.
Edit: See below for possible issue found
As a first time user of this component, I am also seeing everything generated twice (two devices, two identical sets of sensors) upon first ever login. I've redacted IDs in the JSON below - redacted1
was the same value appearing 3 times in the JSON. I made sure to use different replacements for each different ID that was found.
{
"data":{
"address_groups":[
{
"uuid":"f4c36c99-bdc3-40b2-8c9b---redacted1--",
"connections":[
{
"uuid":"f4c36c99-bdc3-40b2-8c9b---redacted1--",
"ean":"87168794000--redacted7--",
"market_segment":"electricity",
"contracts":[
{
"uuid":"c7fd4d57-a3c4-4579-a2f4---redacted2--",
"label":"Stroom tegen uurprijzen",
"type":"electricity",
"start_date":"2023-01-19T23:00:00.000000Z",
"end_date":"None",
"meta":{
"external_contract_id":"150995c6-57c2-4502-b20b---redacted3--",
"agreement_date":"2022-12-31",
"original_end_date":"None",
"contract_type":"smart",
"proposition_reference":"Marktprijs-E-2021-11",
"start_reason":"None",
"end_reason":"None",
"show_in_contract_screen":true,
"expected_delivery":3550,
"expected_production":"None"
}
}
],
"features":[
{
"code":"E004",
"label":"Verbruikshistorie"
}
],
"buttons":[
{
"title":"Connect onderweg",
"subtitle":"Je kunt bijna aan de slag",
"icon":"time-outline",
"notification_badge":0,
"group":"Beschikbare Check-ins",
"group_priority":1,
"form_handler":"refresh-user-data",
"url":"https://app-api.zonneplan.nl/connections/f4c36c99-bdc3-40b2-8c9b---redacted1--/check-in-p1-installation"
}
]
},
{
"uuid":"e104813e-7a97-437e-aeb4---redacted4--",
"ean":"871715494000--redacted8--",
"market_segment":"gas",
"contracts":[
{
"uuid":"a530f782-b3c1-4c71-8ac8---redacted5--",
"label":"Gas tegen dagprijzen",
"type":"gas",
"start_date":"2023-01-19T23:00:00.000000Z",
"end_date":"None",
"meta":{
"external_contract_id":"3b005978-def5-4882-a812---redacted6--",
"agreement_date":"2022-12-31",
"original_end_date":"None",
"contract_type":"smart",
"proposition_reference":"Marktprijs-G-2021-11",
"start_reason":"None",
"end_reason":"None",
"show_in_contract_screen":true,
"expected_delivery":1000,
"expected_production":"None"
}
}
],
}
],
}
]
}
}
edit: @fsaris I think I found the issue. The component is also setting up electricity sensors for the gas contract, and/or setting up all sensors for each and every contract (I have both electricity and gas from Zonneplan)
I've enabled debug logs and noticed this (pay attention to the first lines of each block):
2023-01-12 21:41:09.965 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Setup sensors for connnection f4c36c99-bdc3-40b2-8c9b---redacted1--
2023-01-12 21:41:09.965 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan current usage: 0 [0]
2023-01-12 21:41:09.965 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan current usage measured at: None [None]
2023-01-12 21:41:09.965 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan sustainability score: 49.800000000000004 [498]
2023-01-12 21:41:09.966 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan current tariff group: low [low]
2023-01-12 21:41:09.966 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan current electricity tariff: 0.2595086 [2595086]
2023-01-12 21:41:09.966 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find measurement_groups of gas_data.measurement_groups.0.meta.price
2023-01-12 21:41:09.969 DEBUG (MainThread) [custom_components.zonneplan_one.coordinator] in {}
2023-01-12 21:41:09.969 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan current gas tariff: None [None]
2023-01-12 21:41:09.969 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan status message: []
2023-01-12 21:41:09.969 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan status tip: Stroom is groen en goedkoop [Stroom is groen en goedkoop]
2023-01-12 21:41:09.969 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff hour 1: 0.24510969999999999 [2451097]
2023-01-12 21:41:09.969 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff hour 2: 0.2043447 [2043447]
2023-01-12 21:41:09.969 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff hour 3: 0.19528189999999998 [1952819]
2023-01-12 21:41:09.969 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff hour 4: 0.1762607 [1762607]
2023-01-12 21:41:09.969 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff hour 5: 0.168069 [1680690]
2023-01-12 21:41:09.970 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff hour 6: 0.1586552 [1586552]
2023-01-12 21:41:09.970 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff hour 7: 0.15950219999999998 [1595022]
2023-01-12 21:41:09.970 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff hour 8: 0.18654569999999998 [1865457]
2023-01-12 21:41:09.970 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff group hour 1: low [low]
2023-01-12 21:41:09.970 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff group hour 2: low [low]
2023-01-12 21:41:09.970 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff group hour 3: low [low]
2023-01-12 21:41:09.970 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff group hour 4: low [low]
2023-01-12 21:41:09.970 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff group hour 5: low [low]
2023-01-12 21:41:09.970 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff group hour 6: low [low]
2023-01-12 21:41:09.970 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff group hour 7: low [low]
2023-01-12 21:41:09.970 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff group hour 8: low [low]
...
2023-01-12 21:41:09.982 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Setup sensors for connnection e104813e-7a97-437e-aeb4---redacted4--
2023-01-12 21:41:09.982 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan current usage: 0 [0]
2023-01-12 21:41:09.982 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan current usage measured at: None [None]
2023-01-12 21:41:09.982 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan sustainability score: 49.800000000000004 [498]
2023-01-12 21:41:09.983 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan current tariff group: low [low]
2023-01-12 21:41:09.983 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan current electricity tariff: 0.2595086 [2595086]
2023-01-12 21:41:09.983 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find measurement_groups of gas_data.measurement_groups.0.meta.price
2023-01-12 21:41:09.986 DEBUG (MainThread) [custom_components.zonneplan_one.coordinator] in {}
2023-01-12 21:41:09.986 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan current gas tariff: None [None]
2023-01-12 21:41:09.986 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan status message: []
2023-01-12 21:41:09.986 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan status tip: Stroom is groen en goedkoop [Stroom is groen en goedkoop]
2023-01-12 21:41:09.987 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff hour 1: 0.24510969999999999 [2451097]
2023-01-12 21:41:09.987 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff hour 2: 0.2043447 [2043447]
2023-01-12 21:41:09.987 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff hour 3: 0.19528189999999998 [1952819]
2023-01-12 21:41:09.987 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff hour 4: 0.1762607 [1762607]
2023-01-12 21:41:09.988 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff hour 5: 0.168069 [1680690]
2023-01-12 21:41:09.988 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff hour 6: 0.1586552 [1586552]
2023-01-12 21:41:09.988 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff hour 7: 0.15950219999999998 [1595022]
2023-01-12 21:41:09.988 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff hour 8: 0.18654569999999998 [1865457]
2023-01-12 21:41:09.988 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff group hour 1: low [low]
2023-01-12 21:41:09.988 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff group hour 2: low [low]
2023-01-12 21:41:09.988 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff group hour 3: low [low]
2023-01-12 21:41:09.988 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff group hour 4: low [low]
2023-01-12 21:41:09.988 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff group hour 5: low [low]
2023-01-12 21:41:09.988 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff group hour 6: low [low]
2023-01-12 21:41:09.988 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff group hour 7: low [low]
2023-01-12 21:41:09.989 DEBUG (MainThread) [custom_components.zonneplan_one.sensor] Value Zonneplan forcast tariff group hour 8: low [low]
If you look in the JSON, you'll see that those (redacted) connections match with my electricity and gas contracts. But, even for the gas contract it is setting up the complete suite of sensors.
from home-assistant-zonneplan-one.
New install and I had two devices. version 0.0.15
from home-assistant-zonneplan-one.
The fix hasn't been part of a release yet. If you are comfortable with editing python files, you can see the (limited) changes in #45 and just change it locally. Reboot HA, remove and add Zonneplan, and you should be good.
from home-assistant-zonneplan-one.
You can also download the beta (current main version) in HACS
I changed the code as advised.
That worked, thx!
from home-assistant-zonneplan-one.
Related Issues (20)
- Multiple zero values retrieved throughout the day for delivery/production of Zonneplan home battery HOT 4
- Powerplay compensation sensor HOT 16
- Current electricity tariff one hour off since Summertime HOT 2
- Thuisbatteriij sensors stopped updating HOT 6
- Entity "Schedule start and end" is not working anymore HOT 8
- Gas price not updating anymore HOT 3
- Powerplay HOT 3
- Connect call failed HOT 10
- HomeAssistantType
- deprecated alias HOT 1
- Detected blocking call to open inside the event loop (HA 2024.6) HOT 2
- sensor.zonneplan_current_usage Shows 0 HOT 9
- How does it work? HOT 6
- Just errors in the logs HOT 4
- No trigger on current elect. tariff HOT 3
- Forecast unavailable HOT 2
- Daily reset for ‘sensor.electricity_production_costs_today’ HOT 6
- Add cycles (batterijcycli) to available sensors after update 2024-07-17 HOT 13
- 4G status batterij HOT 4
- make earnings available HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home-assistant-zonneplan-one.