Giter Site home page Giter Site logo

Comments (21)

hmmbob avatar hmmbob commented on August 18, 2024 1

I'll see if I can get to my system somewhere today!

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on August 18, 2024

It should be possible to get all data in HA for everything the app shows.

But as I don't have this functionality I'm not able the find out what api endpoint to use and don't know how the data is structured.

Someone with this data should snoop the traffic of the app to find the api endpoint

from home-assistant-zonneplan-one.

killengage avatar killengage commented on August 18, 2024

from home-assistant-zonneplan-one.

killengage avatar killengage commented on August 18, 2024

I captured some network data. Where can i send you this privately (secure) ?

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on August 18, 2024

Please send me a PM on the home assistant forum https://community.home-assistant.io/u/minifranske

from home-assistant-zonneplan-one.

killengage avatar killengage commented on August 18, 2024

Please send me a PM on the home assistant forum https://community.home-assistant.io/u/minifranske

Unfortunately i can't send messages (yet) on the Home Assistant forum since i'm new on the forum. Is there another way ?

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on August 18, 2024

first steps made see https://github.com/fsaris/home-assistant-zonneplan-one/tree/charge_point

from home-assistant-zonneplan-one.

holobeer avatar holobeer commented on August 18, 2024

first steps made see https://github.com/fsaris/home-assistant-zonneplan-one/tree/charge_point

Great! If you need any testing done let me know. I have all Zonneplan services in use (One, Connect, Dynamic tarrifs and the charging station.

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on August 18, 2024

@holobeer please test the latest beta

from home-assistant-zonneplan-one.

holobeer avatar holobeer commented on August 18, 2024

I reinstalled version 0.1.17b5. After reloading i get the following error in de log:
2023-02-17 17:28:04.634 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up zonneplan_one platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/zonneplan_one/sensor.py", line 113, in async_setup_entry
ZonneplanChargePointSensor(
File "/config/custom_components/zonneplan_one/sensor.py", line 145, in init
self._attr_native_value = self._value_from_coordinator()
File "/config/custom_components/zonneplan_one/sensor.py", line 237, in _value_from_coordinator
raw_value = value = self.coordinator.getConnectionValue(
File "/config/custom_components/zonneplan_one/coordinator.py", line 151, in getConnectionValue
rv = rv[key]
IndexError: list index out of range

I get a new device called "Charge laadpaal":
image
I am missing a energy/power sensor for the laadpaal (the app can show the energy/power usage of the laadpaal)

But the other zonneplan devices stopped working:
image

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on August 18, 2024

Can you enable debug logging and share you logs with me?

from home-assistant-zonneplan-one.

holobeer avatar holobeer commented on August 18, 2024

I have enabled debug logging. When I restart HA i get the following log entries:

2023-02-20 09:41:16.348 INFO (MainThread) [custom_components.zonneplan_one.coordinator] _async_update_data: start
2023-02-20 09:41:17.492 DEBUG (MainThread) [custom_components.zonne..... [dedacted]

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on August 18, 2024

@holobeer @killengage please test the new beta https://github.com/fsaris/home-assistant-zonneplan-one/releases/tag/0.1.17b6

@hmmbob could you maybe also test the beta?

from home-assistant-zonneplan-one.

holobeer avatar holobeer commented on August 18, 2024

I installed the latest beta and it appears to be working fine. No more error messages in the log. I will monitor the sensors over the coming days.
Tnx for the great work!
image

from home-assistant-zonneplan-one.

killengage avatar killengage commented on August 18, 2024

It's working again. I had an Apexchart card running to show the current hour rates. This is not working. Else is ok :). If you need data directly from the app again, let me know.

from home-assistant-zonneplan-one.

hmmbob avatar hmmbob commented on August 18, 2024

It's working again. I had an Apexchart card running to show the current hour rates. This is not working. Else is ok :). If you need data directly from the app again, let me know.

Change forcast into forecast in the data generator post of apex and you should be good

from home-assistant-zonneplan-one.

hmmbob avatar hmmbob commented on August 18, 2024

@holobeer @killengage please test the new beta https://github.com/fsaris/home-assistant-zonneplan-one/releases/tag/0.1.17b6

@hmmbob could you maybe also test the beta?

Just updated to beta6, looks all good (but I don't have PV or chargepoint)

edit: extending the last point; it looks like it is parsing all data quite a few times at startup to see if there is ChargePoint data in it:

2023-02-27 08:47:41.812 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find pv_installation of pv_installation
2023-02-27 08:47:41.817 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find charge_point of charge_point
2023-02-27 08:47:41.818 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find pv_installation of pv_installation
2023-02-27 08:47:41.819 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find p1_installation of p1_installation
2023-02-27 08:47:41.820 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find charge_point of charge_point
2023-02-27 08:47:41.821 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find charge_point of charge_point
2023-02-27 08:47:41.822 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find charge_point of charge_point

from home-assistant-zonneplan-one.

killengage avatar killengage commented on August 18, 2024

It's working again. I had an Apexchart card running to show the current hour rates. This is not working. Else is ok :). If you need data directly from the app again, let me know.

Change forcast into forecast in the data generator post of apex and you should be good

That did the trick. Thanks !

from home-assistant-zonneplan-one.

hmmbob avatar hmmbob commented on August 18, 2024

Just had a reboot to load 2023.3.1, but the list of warnings is even longer:

2023-03-03 11:24:28.980 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find pv_installation of pv_installation
2023-03-03 11:24:28.985 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find charge_point of charge_point
2023-03-03 11:24:28.988 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find pv_installation of pv_installation
2023-03-03 11:24:28.988 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find p1_installation of p1_installation
2023-03-03 11:24:28.989 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find charge_point of charge_point
2023-03-03 11:24:28.990 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find pv_installation of pv_installation
2023-03-03 11:24:28.991 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find p1_installation of p1_installation
2023-03-03 11:24:28.992 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find charge_point of charge_point
2023-03-03 11:24:28.993 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find pv_installation of pv_installation
2023-03-03 11:24:28.994 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find p1_installation of p1_installation
2023-03-03 11:24:28.995 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find charge_point of charge_point
2023-03-03 11:24:28.996 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find charge_point of charge_point
2023-03-03 11:24:28.997 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find charge_point of charge_point
2023-03-03 11:24:28.998 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find charge_point of charge_point
2023-03-03 11:24:28.999 WARNING (MainThread) [custom_components.zonneplan_one.coordinator] Could not find charge_point of charge_point

Is there a way to crawl over the contracts in a more effective way?


edit:, ah, i can explain a bit: In the app I see our new house got added to the contract already. That explains at least half of the warnings ;-)

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on August 18, 2024

These logs should be downgraded to INFO as it's not a real issue. It's the setup just checking if the data is present to determine if sensors need to be setup.

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on August 18, 2024

First version is released https://github.com/fsaris/home-assistant-zonneplan-one/releases/tag/0.0.17

from home-assistant-zonneplan-one.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.