GithubHelp home page GithubHelp logo

cjne / ha-myenergi Goto Github PK

View Code? Open in Web Editor NEW
131.0 131.0 26.0 605 KB

Home Assistant integration for MyEnergi devices

License: MIT License

Python 100.00%
ev-charging green-energy home-assistant myenergi

ha-myenergi's People

Contributors

cjne avatar dependabot[bot] avatar jmccrohan avatar josyban avatar jwillemsen avatar markcocker avatar reedy avatar robferrer avatar sparks1372 avatar trizmark avatar videojedi avatar zeppen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ha-myenergi's Issues

Service to boost Eddi not mentioned in README.md

Version of the custom_component

0.0.20 - https://github.com/CJNE/ha-myenergi/releases/tag/0.0.20

Configuration

service: myenergi.myenergi_eddi_boost
data:
  target: Heater 1
  time: 60
target:
  device_id: 81969428db84748bd0f6bbc7fffd3a66

Describe the bug

The README.md lists the sensors and services provided by this integration, but does not mention the service to boost the Eddi. Would be useful add something like:
Service to start boost (provide boost amount in minutes as parameter)

Debug log

Documentation related issue, so debug log not relevant.

Server request problem

Version of the custom_component

0.0.20, latest from hacs

Describe the bug

Hi,

My internet went out for a few days, and now that it's back this component is the only one that won't load properly.
The error below doesn't give much information, no idea what's wrong but the myenergi mobile app is working fine and reporting data, so presumably my hub has connected back fine.
Since last night I tried a few times reloading the integration, disabling / enabling it and restarting HA all give the same error :


Logger: pymyenergi.connection
Source: custom_components/myenergi/__init__.py:90
Integration: myenergi ([documentation](https://github.com/cjne/ha-myenergi), [issues](https://github.com/cjne/ha-myenergi/issues))
First occurred: 11:36:53 AM (6 occurrences)
Last logged: 11:39:36 AM
Myenergi server request problem

I had a look at the myenergi forum and I don't see any obvious signs of their service being disrupted, but who knows.

Thanks

sensor.myenergi_ev_charger_energy_used_today

sensor.myenergi_ev_charger_energy_used_today Is 0

My Eddi has consumed 0.96kWh and Zappi 1.76kWh of solar energy today (green) but this entity value is 0

There are no errors in the log.

Myenergi server request problem - Integration down

Version of the custom_component - ****

0.0.20 (latest)

Home Assistant Supervisor Version - 2022.08.3
Home Assistant Core Version - 2022.08.4

Configuration

# Loads default set of integrations. Do not remove.
default_config:

frontend:
  themes: !include_dir_merge_named themes

# Text to speech
tts:
  - platform: google_translate

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor: !include custom_sensors.yaml

lovelace:
  resources:
    - url: /local/power-wheel-card.js?v=2
      type: module

Describe the bug

The inegration is not starting, can't get any output from any sensors. I'm running in Home assistant supervisor in a debian docker. All was working previously.

Debug log

This error originated from a custom integration.

Logger: pymyenergi.connection
Source: custom_components/myenergi/__init__.py:90
Integration: myenergi (documentation, issues)
First occurred: 22:38:21 (11 occurrences)
Last logged: 22:46:31

Myenergi server request problem
Logger: homeassistant.config_entries
Source: config_entries.py:1067
First occurred: 22:42:15 (1 occurrences)
Last logged: 22:42:15

Config entry 'My Home' for myenergi integration not ready yet; Retrying in background
2022-08-12 22:36:21.211 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration kia_uvo which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-08-12 22:36:21.213 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration eufy_security which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-08-12 22:36:21.214 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration luxpower which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-08-12 22:36:21.215 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration govee which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-08-12 22:36:21.216 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration myenergi which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-08-12 22:36:21.217 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration alexa_media which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-08-12 22:36:21.218 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration dwains_dashboard which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-08-12 22:36:21.219 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-08-12 22:36:21.222 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration garbage_collection which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-08-12 22:36:21.222 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration philips_ambilight_hue which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-08-12 22:36:21.717 WARNING (MainThread) [homeassistant.components.lovelace] Lovelace is running in storage mode. Define resources via user interface
2022-08-12 22:37:12.252 WARNING (MainThread) [custom_components.govee] API is back online.
2022-08-12 22:37:22.572 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: alexa_media, hive, forecast_solar
2022-08-12 22:38:21.221 ERROR (MainThread) [pymyenergi.connection] Myenergi server request problem
2022-08-12 22:38:21.225 WARNING (MainThread) [homeassistant.config_entries] Config entry 'My Home' for myenergi integration not ready yet; Retrying in background
2022-08-12 22:38:43.360 ERROR (MainThread) [pymyenergi.connection] Myenergi server request problem
2022-08-12 22:39:13.901 ERROR (MainThread) [pymyenergi.connection] Myenergi server request problem
2022-08-12 22:39:54.266 ERROR (MainThread) [pymyenergi.connection] Myenergi server request problem
2022-08-12 22:40:54.330 ERROR (MainThread) [pymyenergi.connection] Myenergi server request problem
2022-08-12 22:42:15.801 ERROR (MainThread) [pymyenergi.connection] Myenergi server request problem
2022-08-12 22:42:15.810 WARNING (MainThread) [homeassistant.config_entries] Config entry 'My Home' for myenergi integration not ready yet; Retrying in background
2022-08-12 22:42:40.872 ERROR (MainThread) [pymyenergi.connection] Myenergi server request problem

Getting an error on Home Assistant startup - ValueError: entity_category must be a valid EntityCategory instance

I recently noticed that I get the following error when re starting HA. The integration seems to be working fine.
Is there a way to get rid of this error??

2022-06-02 17:18:36 ERROR (MainThread) [homeassistant.components.number] Error adding entities for domain number with platform myenergi
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 514, in _async_add_entity
    entry = entity_registry.async_get_or_create(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 383, in async_get_or_create
    raise ValueError("entity_category must be a valid EntityCategory instance")
ValueError: entity_category must be a valid EntityCategory instance

2022-06-02 17:18:36 ERROR (MainThread) [homeassistant.components.number] Error while setting up myenergi platform for number
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 257, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 514, in _async_add_entity
    entry = entity_registry.async_get_or_create(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 383, in async_get_or_create
    raise ValueError("entity_category must be a valid EntityCategory instance")
ValueError: entity_category must be a valid EntityCategory instance

wrong username / password

Hi,

Having trouble logging in. Integration downloads correctly but when adding I cannot log in.

Regards

charges added

Thx for this nice integration!

I am trying to get an overview of all charges added to the EV. I now use the "myenergi_zappi_charge_added..". This show the last added session but this remains this number until a next charge session. So in grafana I see a lot of same numbers over time Is it possible that this sensor resets to 0 after it has been written to the database? Or do you have another way to keep track of the kwh added?

Service to change charge mode

Hi,

I may just be missing something obvious, but trying to set some cards to control my Zappies in the frontend I can't find an elegant way of changing the charge mode easily.
Would it be possible to add a service to the integration to change the charge mode ? I know there's a drop down in the device controls but it doesn't integrate well with what I'm trying to do, I think that makes more sense for people who have energy generation which I sadly don't.

It would make it possible to use any card that supports calling a service to switch between modes easily, in my case I'd like to use a card to show the charger status (plugged / unplugged) and have it go from Stopped to Fast on a long press, since those are the only two modes I use.

Thanks

Energy Integration

Hi,

I literally install HA yesterday, I’m coming from Domoticz and there is defo a learning curve to it. This has been one of the first things I have setup, so thank you.

It works great, I have all my details. I would love to get this to work with the stock Energy integration. When I try and select an entity, I only get “kWh added to vehicle” options. I assume that’s because they are the only kWh ones? Is there a way for us to be able to add the myenergi consumption stuff so we can fill that data require for the native Energy options?

This is the link it suggests:-

https://www.home-assistant.io/more-info/statistics/

Many Thanks

Simon

Negative power generation

Any idea why the power production in Hassio shows negative values, while this is not the case in the Myenergi app?

Screenshot_20220129-191627
Screenshot_20220129-191610

Charge mode resetting

Version of the custom_component

Latest from HACS

Describe the bug

I have a day/night rate with changes at 9am to day rate and midnight to night rate.
I created an automation to change my Zappi chargers from Fast to Stopped and Stopped to Fast mode at those times, to make sure cars only charge on the night rate.
This is working mostly fine, however every once in a while the mode re-sets immediately :

image

As you can see above for example, the automation changed the mode to Fast at midnight as expected, but 55 seconds later it changed itself back to Stopped without showing a source.
I don't use the myenergi app so that's not where that change originated.

I've seen this both ways (Stopped -> Fast -> Stopped like here and Fast -> Stopped -> Fast) a few times.

Any idea what could be doing that ?
Thanks

Discrepancies between app and integration totals

Version of the custom_component

0.0.20 (via HACS) - according to manifest.json, const.py lists 0.0.18

Configuration

Using API key, 15 second polling
I have a Zappi and Harvi currently (PV generation, grid, car charging)

Describe the bug

I've been happily using this integration to pull my myEnergi numbers in to HA for a couple of months - thanks! - but I just noticed today that the numbers in the myEnergi app/website don't match those in HA.

As of 13:45 today, my numbers are:

myEnergi app
Generated: 13.7 kWh
Imported: 4.1 kWh
Exported: 4.4 kWh
Home Consumption: 8.7 kWh
Zappi: 4.7 kWh

Home Assistant:
sensor.myenergi_my_house_generated_today: 9.46 kWh
sensor.myenergi_my_house_green_energy_today: 3.19 kWh(??)
sensor.myenergi_my_house_grid_export_today: 3.1 kWh
sensor.myenergi_my_house_grid_import_today: 3.16 kWh

I tried to start adding and subtracting numbers to see if I could make sense of this but I really can't...

(My smart meter's import measurement so far today is 3.65kW, which doesn't really tally with either of those..)

While it's worrying they're all slightly wrong, I'm mostly concerned that the PV generation is massively off. I've just realised that maybe my panels were far more efficient than I thought.

Note, this only seems to affect the totals - the live numbers seem to be spot on.

Any idea what's going on here?

AC Battery CT clamp on Eddi not added

I've installed ha-myenergi intergration and it has located all my 3 devices and created 31 enteries.
I have a Eddi, Harvi and a Hub

The Eddi has a CT clamp attached to ectt3 and configured as "AC Battery", however it's not being found by the intergration.
Using acurl I am able to retrieve the data for this CT clamp fine

I have redownloaded the intergration and restarted HA but nothing has updated. both the System Options for myenergi are venabled.
const.py lists the version as VERSION = "0.0.16", which is the same as on the latest version on github.

Data retrieved from Eddi using curl:

"eddi": [
    {
        "sno": 14467978,
        "dat": "21-12-2021",
        "tim": "18:42:43",
        "ectp2": 582,
        "ectp3": -14,
        "ectt1": "Internal Load",
        "ectt2": "Grid",
        "ectt3": "AC Battery",
        "bsm": 0,
        "bst": 0,
        "cmt": 254,
        "dst": 1,
        "div": 0,
        "frq": 50.02,
        "fwv": "3200S3.051",
        "gen": -4,
        "grd": 578,
        "pha": 1,
        "pri": 1,
        "sta": 1,
        "tz": 0,
        "vol": 2402,
        "hpri": 1,
        "hno": 1,
        "ht1": "Tank 1",
        "ht2": "Tank 2",
        "r1a": 0,
        "r2a": 0,
        "rbc": 0,
        "rbt": 1,
        "tp1": 127,
        "tp2": 127
    }
]

Remove Harvi device

I suddenly have 2 harvi's in my setup. If I log in into my Myenergi account I can see the second harvi also, so probably they screwed up. I could remove the harvi there, but how do I remove it from my Home Assistant setup?

Resetting credentials

Hi,

After resetting my hub and other devices and repairing everything I have not been able to get this integration to work again.

The error shown on the integration page is retrying setup, I have also attempted configure and system options but neither gives an option to add or change the username or password.

The next logical step is to delete the integration and then install it again but I do not want to do this if it means losing the entities and related information.

Please advise how to reset the credentials so that I can get the integration authenticated again.

Thank you.

Zappi/Eddi/Hub firmware versions in sensors

Is your feature request related to a problem? Please describe.
There is no push notification when new Zappi/Eddi/Hub firmware versions are available.

Describe the solution you'd like
I would like a sensor (or attribute on another sensor) for each myenergi device that provides the installed firmware version, the serial number, and if possible the latest firmware version so I can setup HA alerts.

Alternatively, this could be integrated with the Home Assistant updates for devices - https://www.home-assistant.io/integrations/update/

Describe alternatives you've considered
I periodically look at either the device display or https://myaccount.myenergi.com/location#products and then compare this to the table in https://support.myenergi.com/hc/en-gb/articles/360020109017-Current-firmware-versions-updating-your-firmware

Additional context
The myenergi RESTI API detailed at https://github.com/twonk/MyEnergi-App-Api shows:
"fwv" = firmware version
"sno" = serial number

We could raise an issue on the myenergi forums to add an API to return the latest firmware versions.

All sensor values reporting Unavailable soon after configuring

Version: 0.0.20
HA Core: 2022.8.7
Supervisor: 2022.08.5
HAOS: 8.5

What happens:
I have this installed and followed the instructions to install. Immediately after configuring, all the sensors (e.g. "sensor.myenergi_my_home_power_export") shows some value (e.g. 191W, consistent with the myenergi app, so the API key is working). After a few seconds this is replaced by "Unavailable" for all sensors in the integration.

What I expected:
The value of e.g. 191W would remain a while, then be updated with a new value from the API regularly. And similarly for all other sensors in the integration.

What I tried:
Upgraded everything to latest versions after reading recent issue caused by myenergi servers being unreliable.

Logs:
2022-08-29 21:58:54.768 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration myenergi which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2022-08-29 21:59:34.416 WARNING (MainThread) [homeassistant.config_entries] Config entry 'My home' for myenergi integration not ready yet; Retrying in background

I'm a bit of a HA newbie, not sure how to enable debug logs for this component. Happy to repeat if anyone can give me a hint on that.

myenergi

Thanks.

Change configuration of sensors for live import and export data to use in Energy dashboard

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I would like to see on the Energy dashboard the actual generation, import and export of my home and PV system using the CT clamps of MyEnergi devices

Describe the solution you'd like
A clear and concise description of what you want to happen.
I'd like to use the sensors "sensor.myenergi_my_home_power_generation" and "sensor.myenergi_my_home_power_grid" in the energy hub in Home Assistant, but I can only select for import and export the sensors regarding total amount of energy imported and exported, not live data.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I am currently using the total amount, but the data is all messy.

Additional context
Add any other context or screenshots about the feature request here.
Here are the sensors I can choose from and the energy dashboard:

image

image

image

Thank you so much! I love this project!

Only one Entity shown

Hello and first of all thank you for the project, myenergy gets unfortunately no HASS API baked ;-)

I have installed it manually and I was able to log in, unfortunately only one entity is displayed and only that of the charging mode.

Am I doing something wrong?
1

Failure to start with Home Assistant 2022.7.0

After updating to Home Assistant 2022.7.0 I get the following error and no myenergi sensors work anymore. I suspect this to be related to the upgrade to python 3.10 in Home Assistant 2022.7.0.

Setup failed for custom integration myenergi: Unable to import component: No module named 'pymyenergi'

I am happy to provide more information if needed.

Default update interval

Hi,

Loving the work you've done here - so useful to be able to integrate my new Zappi / hub just by pointing at your repo! One question: I note that the default update interval is 60 seconds. Is this the minimum value that I should use? Is it related to the refresh rate of the Zappi / hub to the cloud? Or is it in respect of API rate limiting as requested by MyEnergi?

It would be nice to have the sensors update a bit more frequently, but I wanted to check whether it was a good / bad idea first.

Might be worth a mention in the readme.

Thanks,

Nick

Added an Eddi and now my "house" metrics are odd

Version of the custom_component

0.0.20

Configuration

Eddi v2 - connected to immersion
Harvi - 1 CT for grid, 1 CT for generation
Zappi v2
Hub - connected via ethernet

Describe the bug

I added an Eddi to my system today, and the stats look good in the app.
I reloaded the integration and the Eddi popped up. The Eddi stats themselves look good (e.g. green energy today incrementing, power CT internal shows current draw).

However, the stats at the "house" level are a bit off - there doesn't seem to be any live power number for the Eddi, instead my previously existing sensor.myenergi_house_power_charging that I was using for the Zappi is now showing the Eddi load.

Is this intentional or a bug? (given it's called "charging" I'm guessing a bug?)

Energy sensor for home usage?

As far as I can tell, there's only one sensor available for Home power usage: sensor.myenergi_hub_home_consumption. Is there a way to get the matching energy sensor, for energy used by home directly? Or is adding your own integration sensor in HA the recommended way to go?

Setting last_reset is deprecated and will be unsupported from Home Assistant Core 2021.11

Hi,
I found the following in the logs and want to bring it to your attention :)

Version of the custom_component

0.0.11

Configuration

Installed from HACS

Describe the bug

I saw the following coming in my logs and want to give you a heads up so you can give it a look before November otherwise it ill break the integration.

Debug log


Entity sensor.myenergi_home_grid_import_today_cost (<class 'homeassistant.components.energy.sensor.EnergyCostSensor'>) with state_class measurement has set last_reset. Setting last_reset is deprecated and will be unsupported from Home Assistant Core 2021.11. Please update your configuration if state_class is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+energy%22

Manual Installation error - "No module named pyenergi"

Version of the custom_component

Latest from here.

Configuration

Freshly installed Home Assistant container via Docker using the linuxserver.io version of HA.

Linuxserver.io version:- 2021.12.6-ls52 Build-date:- 2021-12-28T00:16:46+01:00

Describe the bug

I am following the manual install procedure given in the readme.md file:

  • Created a custom_components directory via SSH
  • Used wget to get a zipped version of this repo and expanded it
  • Recursively moved the custom_components/myenergi diretory from the unzipped files into /home/user/appdata/homeassistant/config/custom_components/myenergi

Debug log



ERROR (MainThread) [homeassistant.config_entries] Error occurred loading configuration flow for integration myenergi: No module named 'pymyenergi'

Zappi energy used/green energy used not set in HA

My Zappi energy used values aren't being populated at the moment. (sensor.myeneri_zappi_$id_energy_used_today) is always 0 regardless of charge added. And the sensor.myenergi_zappi_$id_green_energy_used_today) sensor doesn't exist.

The latter is likely related to the error I get in HA logs:

Platform myenergi does not generate unique IDs. ID 9bb47c9313ab29d3a636879a282f2079-$zappiId-energy_green already exists - ignoring sensor.myenergi_my_home_green_energy_today 

Which I think is suggesting that the Hubs green energy used today sensor is somehow conflicting with the zappis one?

Not entirely sure if this is a bug with the integration or just a oddity of the fact that I have had 3 Zappis in quick succession (I had 2 replaced with faults) and the latest one is the V2 with built in vHub

DEBUG log for pymyenergi & custom_component.myenergi:

2022-08-30 19:29:11.611 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration myenergi which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-08-30 19:29:16.476 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'sonos', 'hildebrandglow_dcc', 'mqtt', 'search', 'hue', 'brother', 'input_boolean', 'zone', 'analytics', 'system_health', 'person', 'myenergi', 'dlna_dms', 'template', 'hacs', 'timer', 'radio_browser', 'config', 'tag', 'trace', 'input_text', 'input_select', 'scene', 'application_credentials', 'blueprint', 'input_datetime', 'sun', 'homeassistant_alerts', 'forecast_solar', 'influxdb', 'input_number', 'media_source', 'auth', 'lovelace', 'co2signal', 'persistent_notification', 'diagnostics', 'growatt_server', 'repairs', 'mobile_app', 'sensor', 'logbook', 'tts', 'counter', 'history', 'upnp', 'image', 'met', 'energy', 'device_automation', 'dlna_dmr', 'onboarding', 'map', 'default_config', 'script', 'automation', 'input_button', 'nest_protect', 'ipp', 'kia_uvo', 'my'}
2022-08-30 19:29:18.212 INFO (MainThread) [homeassistant.setup] Setting up myenergi
2022-08-30 19:29:18.213 INFO (MainThread) [homeassistant.setup] Setup of domain myenergi took 0.0 seconds
2022-08-30 19:29:18.343 INFO (MainThread) [custom_components.myenergi] 
myenergi
https://github.com/cjne/myenergi/issues
2022-08-30 19:29:18.344 DEBUG (MainThread) [pymyenergi.connection] New connection created
2022-08-30 19:29:18.344 DEBUG (MainThread) [pymyenergi.client] Refreshing data for all myenergi devices
2022-08-30 19:29:18.350 DEBUG (MainThread) [pymyenergi.connection] Get Myenergi base url from director
2022-08-30 19:29:19.984 INFO (MainThread) [pymyenergi.connection] Updated myenergi active server to https://s18.myenergi.net
2022-08-30 19:29:19.984 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-get-app-key- https://s18.myenergi.net/cgi-get-app-key-
2022-08-30 19:29:20.326 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:29:20.337 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jstatus-* https://s18.myenergi.net/cgi-jstatus-*
2022-08-30 19:29:20.543 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:29:20.544 DEBUG (MainThread) [pymyenergi.client] Adding eddi eddi-$eddiId
2022-08-30 19:29:20.544 DEBUG (MainThread) [pymyenergi.client] Adding zappi zappi-$zappiId
2022-08-30 19:29:20.544 DEBUG (MainThread) [pymyenergi.client] Adding harvi harvi-$harviId
2022-08-30 19:29:20.544 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for eddi
2022-08-30 19:29:20.550 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-E$eddiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-E$eddiId-2022-8-29-23-24
2022-08-30 19:29:20.802 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:29:20.803 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for zappi
2022-08-30 19:29:20.809 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-Z$zappiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-Z$zappiId-2022-8-29-23-24
2022-08-30 19:29:20.932 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:29:20.934 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.myenergi
2022-08-30 19:29:20.934 INFO (MainThread) [homeassistant.components.select] Setting up select.myenergi
2022-08-30 19:29:20.935 INFO (MainThread) [homeassistant.components.number] Setting up number.myenergi
2022-08-30 19:29:20.943 ERROR (MainThread) [homeassistant.components.sensor] Platform myenergi does not generate unique IDs. ID 9bb47c9313ab29d3a636879a282f2079-$zappiId-energy_green already exists - ignoring sensor.myenergi_my_home_green_energy_today
2022-08-30 19:30:20.001 DEBUG (MainThread) [pymyenergi.client] Refreshing data for all myenergi devices
2022-08-30 19:30:20.008 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jstatus-* https://s18.myenergi.net/cgi-jstatus-*
2022-08-30 19:30:20.375 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:30:20.375 DEBUG (MainThread) [pymyenergi.client] Updating eddi eddi-$eddiId
2022-08-30 19:30:20.375 DEBUG (MainThread) [pymyenergi.client] Updating zappi zappi-$zappiId
2022-08-30 19:30:20.375 DEBUG (MainThread) [pymyenergi.client] Updating harvi harvi-$harviId
2022-08-30 19:30:20.375 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for eddi
2022-08-30 19:30:20.381 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-E$eddiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-E$eddiId-2022-8-29-23-24
2022-08-30 19:30:20.503 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:30:20.504 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for zappi
2022-08-30 19:30:20.509 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-Z$zappiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-Z$zappiId-2022-8-29-23-24
2022-08-30 19:30:20.633 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:31:20.005 DEBUG (MainThread) [pymyenergi.client] Refreshing data for all myenergi devices
2022-08-30 19:31:20.012 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jstatus-* https://s18.myenergi.net/cgi-jstatus-*
2022-08-30 19:31:20.173 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:31:20.174 DEBUG (MainThread) [pymyenergi.client] Updating eddi eddi-$eddiId
2022-08-30 19:31:20.174 DEBUG (MainThread) [pymyenergi.client] Updating zappi zappi-$zappiId
2022-08-30 19:31:20.174 DEBUG (MainThread) [pymyenergi.client] Updating harvi harvi-$harviId
2022-08-30 19:31:20.174 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for eddi
2022-08-30 19:31:20.180 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-E$eddiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-E$eddiId-2022-8-29-23-24
2022-08-30 19:31:20.330 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:31:20.331 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for zappi
2022-08-30 19:31:20.337 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-Z$zappiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-Z$zappiId-2022-8-29-23-24
2022-08-30 19:31:20.463 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:32:20.001 DEBUG (MainThread) [pymyenergi.client] Refreshing data for all myenergi devices
2022-08-30 19:32:20.007 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jstatus-* https://s18.myenergi.net/cgi-jstatus-*
2022-08-30 19:32:20.231 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:32:20.233 DEBUG (MainThread) [pymyenergi.client] Updating eddi eddi-$eddiId
2022-08-30 19:32:20.233 DEBUG (MainThread) [pymyenergi.client] Updating zappi zappi-$zappiId
2022-08-30 19:32:20.233 DEBUG (MainThread) [pymyenergi.client] Updating harvi harvi-$harviId
2022-08-30 19:32:20.233 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for eddi
2022-08-30 19:32:20.239 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-E$eddiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-E$eddiId-2022-8-29-23-24
2022-08-30 19:32:20.378 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:32:20.379 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for zappi
2022-08-30 19:32:20.385 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-Z$zappiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-Z$zappiId-2022-8-29-23-24
2022-08-30 19:32:20.511 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:33:20.001 DEBUG (MainThread) [pymyenergi.client] Refreshing data for all myenergi devices
2022-08-30 19:33:20.007 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jstatus-* https://s18.myenergi.net/cgi-jstatus-*
2022-08-30 19:33:20.169 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:33:20.170 DEBUG (MainThread) [pymyenergi.client] Updating eddi eddi-$eddiId
2022-08-30 19:33:20.170 DEBUG (MainThread) [pymyenergi.client] Updating zappi zappi-$zappiId
2022-08-30 19:33:20.170 DEBUG (MainThread) [pymyenergi.client] Updating harvi harvi-$harviId
2022-08-30 19:33:20.171 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for eddi
2022-08-30 19:33:20.177 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-E$eddiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-E$eddiId-2022-8-29-23-24
2022-08-30 19:33:20.319 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:33:20.320 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for zappi
2022-08-30 19:33:20.326 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-Z$zappiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-Z$zappiId-2022-8-29-23-24
2022-08-30 19:33:20.466 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:34:20.000 DEBUG (MainThread) [pymyenergi.client] Refreshing data for all myenergi devices
2022-08-30 19:34:20.007 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jstatus-* https://s18.myenergi.net/cgi-jstatus-*
2022-08-30 19:34:20.378 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:34:20.378 DEBUG (MainThread) [pymyenergi.client] Updating eddi eddi-$eddiId
2022-08-30 19:34:20.378 DEBUG (MainThread) [pymyenergi.client] Updating zappi zappi-$zappiId
2022-08-30 19:34:20.378 DEBUG (MainThread) [pymyenergi.client] Updating harvi harvi-$harviId
2022-08-30 19:34:20.378 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for eddi
2022-08-30 19:34:20.384 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-E$eddiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-E$eddiId-2022-8-29-23-24
2022-08-30 19:34:20.526 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:34:20.527 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for zappi
2022-08-30 19:34:20.536 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-Z$zappiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-Z$zappiId-2022-8-29-23-24
2022-08-30 19:34:20.668 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:35:20.003 DEBUG (MainThread) [pymyenergi.client] Refreshing data for all myenergi devices
2022-08-30 19:35:20.009 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jstatus-* https://s18.myenergi.net/cgi-jstatus-*
2022-08-30 19:35:20.172 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:35:20.173 DEBUG (MainThread) [pymyenergi.client] Updating eddi eddi-$eddiId
2022-08-30 19:35:20.173 DEBUG (MainThread) [pymyenergi.client] Updating zappi zappi-$zappiId
2022-08-30 19:35:20.173 DEBUG (MainThread) [pymyenergi.client] Updating harvi harvi-$harviId
2022-08-30 19:35:20.173 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for eddi
2022-08-30 19:35:20.179 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-E$eddiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-E$eddiId-2022-8-29-23-24
2022-08-30 19:35:20.318 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:35:20.318 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for zappi
2022-08-30 19:35:20.324 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-Z$zappiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-Z$zappiId-2022-8-29-23-24
2022-08-30 19:35:20.520 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:36:20.000 DEBUG (MainThread) [pymyenergi.client] Refreshing data for all myenergi devices
2022-08-30 19:36:20.006 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jstatus-* https://s18.myenergi.net/cgi-jstatus-*
2022-08-30 19:36:20.173 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:36:20.174 DEBUG (MainThread) [pymyenergi.client] Updating eddi eddi-$eddiId
2022-08-30 19:36:20.174 DEBUG (MainThread) [pymyenergi.client] Updating zappi zappi-$zappiId
2022-08-30 19:36:20.174 DEBUG (MainThread) [pymyenergi.client] Updating harvi harvi-$harviId
2022-08-30 19:36:20.174 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for eddi
2022-08-30 19:36:20.180 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-E$eddiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-E$eddiId-2022-8-29-23-24
2022-08-30 19:36:20.305 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:36:20.306 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for zappi
2022-08-30 19:36:20.312 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-Z$zappiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-Z$zappiId-2022-8-29-23-24
2022-08-30 19:36:20.653 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:37:20.004 DEBUG (MainThread) [pymyenergi.client] Refreshing data for all myenergi devices
2022-08-30 19:37:20.011 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jstatus-* https://s18.myenergi.net/cgi-jstatus-*
2022-08-30 19:37:20.198 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:37:20.199 DEBUG (MainThread) [pymyenergi.client] Updating eddi eddi-$eddiId
2022-08-30 19:37:20.199 DEBUG (MainThread) [pymyenergi.client] Updating zappi zappi-$zappiId
2022-08-30 19:37:20.199 DEBUG (MainThread) [pymyenergi.client] Updating harvi harvi-$harviId
2022-08-30 19:37:20.199 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for eddi
2022-08-30 19:37:20.205 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-E$eddiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-E$eddiId-2022-8-29-23-24
2022-08-30 19:37:20.336 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:37:20.337 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for zappi
2022-08-30 19:37:20.343 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-Z$zappiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-Z$zappiId-2022-8-29-23-24
2022-08-30 19:37:20.546 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:38:22.317 DEBUG (MainThread) [pymyenergi.client] Refreshing data for all myenergi devices
2022-08-30 19:38:22.324 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jstatus-* https://s18.myenergi.net/cgi-jstatus-*
2022-08-30 19:38:22.978 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:38:22.978 DEBUG (MainThread) [pymyenergi.client] Updating eddi eddi-$eddiId
2022-08-30 19:38:22.978 DEBUG (MainThread) [pymyenergi.client] Updating zappi zappi-$zappiId
2022-08-30 19:38:22.978 DEBUG (MainThread) [pymyenergi.client] Updating harvi harvi-$harviId
2022-08-30 19:38:22.978 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for eddi
2022-08-30 19:38:22.985 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-E$eddiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-E$eddiId-2022-8-29-23-24
2022-08-30 19:38:23.112 DEBUG (MainThread) [pymyenergi.connection] GET status 200
2022-08-30 19:38:23.113 DEBUG (MainThread) [pymyenergi.base_device] Fetching hour history data for zappi
2022-08-30 19:38:23.118 DEBUG (MainThread) [pymyenergi.connection] GET /cgi-jdayhour-Z$zappiId-2022-8-29-23-24 https://s18.myenergi.net/cgi-jdayhour-Z$zappiId-2022-8-29-23-24
2022-08-30 19:38:23.323 DEBUG (MainThread) [pymyenergi.connection] GET status 200

But there isn't really anything there

Happy to provide more info as needed

Cant login

Hello, It seems I cant log in with this it throws an error say I don't have an account.

Not able to control Zappi

Component Version 0.0.20

HA version
image

Logg file
Zappi bug

Bug description
This stopped working some days ago. I ran component version 0.0.18 when it stopped work. Now I upgraded to 0.0.20 but there is no difference.

I was able to control zappi. Now it seems like I set (every 60s) the status but nothing happens at zappi. Then a few seconds later the actual zappi status is read back into HA and changes the value I set.

Bottom line: I can read the status correctly but my set procedure does not take effect. Can this relate to HA 2022.8.7?

myenergi Home Grid import today no longer reporting

Since updating to Home Assistant OS 9.0 and updating to 2022.9.7

the sensor myenergi Home Grid import today no longer capture any reading. I can see myenergi Home Home consumption showing energy consumption.

Version of the custom_component

I have this linked to HAC and it's downloaded the latest version which state Version 0.0.20 (same as your manifest.json), yet your const.py file says 0.0.18
-->

Configuration

it's an device integration with no Yaml config

Describe the bug

the sensor myenergi Home Grid import today no longer reports any usage, yet
myenergi Home Power import
myenergi Home Power grid
myenergi Home Home consumption
does report usage

Debug log

2022-10-04 08:25:05.966 INFO (MainThread) [custom_components.myenergi] 
-------------------------------------------------------------------
myenergi
Version: 0.0.18
This is a custom integration!
If you have any issues with this you need to open an issue here:
https://github.com/cjne/myenergi/issues
-------------------------------------------------------------------

2022-10-04 08:25:05.967 DEBUG (MainThread) [custom_components.myenergi] Refresh histoy local start of day in UTC 2022-10-03 23:00:00+00:00 UTC
2022-10-04 08:25:10.647 DEBUG (MainThread) [custom_components.myenergi] Finished fetching myenergi data in 4.680 seconds (success: True)
2022-10-04 08:25:10.709 ERROR (MainThread) [homeassistant.components.sensor] Platform myenergi does not generate unique IDs. ID 14c644f843ac4705ac8d235918cfe1b8-20171371-energy_green already exists - ignoring sensor.myenergi_home_green_energy_today
2022-10-04 08:26:10.002 DEBUG (MainThread) [custom_components.myenergi] Refresh histoy local start of day in UTC 2022-10-03 23:00:00+00:00 UTC
2022-10-04 08:26:10.397 DEBUG (MainThread) [custom_components.myenergi] Finished fetching myenergi data in 0.396 seconds (success: True)
2022-10-04 08:27:10.002 DEBUG (MainThread) [custom_components.myenergi] Refresh histoy local start of day in UTC 2022-10-03 23:00:00+00:00 UTC
2022-10-04 08:27:10.446 DEBUG (MainThread) [custom_components.myenergi] Finished fetching myenergi data in 0.444 seconds (success: True)
2022-10-04 08:28:10.001 DEBUG (MainThread) [custom_components.myenergi] Refresh histoy local start of day in UTC 2022-10-03 23:00:00+00:00 UTC
2022-10-04 08:28:10.374 DEBUG (MainThread) [custom_components.myenergi] Finished fetching myenergi data in 0.374 seconds (success: True)

I do this this error, but I'm not using green so wasn't to bothered.

Platform myenergi does not generate unique IDs. ID #######-energy_green already exists - ignoring sensor.myenergi_home_green_energy_today

Zappi charged today

Hi

I’m not getting any data for the Zappi_charged_today. The charge per session sensor is working, but this resets when the charger is unplugged, so if I had two charges in a day they do not aggregate.
Also, what is the green energy today sensor meant to show as this appears to be less than the total charge added via the Zappi, I’ve checked and it isn’t the amount of charge added via solar.

Error occurred loading configuration flow

I have a new installation running in HomeAssistant Core Docker on OMV (on a raspberry PI 4). Previously had it working fine with a similar installation on Unraid (though with x64).

Got integration installed via HAC and checked the custom_components directory - its correct.

On enabling it with HA I get:

Logger: homeassistant.config_entries
Source: config_entries.py:796
First occurred: 11:04:51 AM (2 occurrences)
Last logged: 11:05:15 AM

Error occurred loading configuration flow for integration myenergi: No module named 'pymyenergi'

Is there a compatibility issue with the installation/architecture, or is it something else?

Add Harvi to the Energy UI screen

Is your feature request related to a problem? Please describe.
Harvi CT Clamps don't appear as selectable Entities in Energy UI screen, even when available in the HASS

Describe the solution you'd like
For all attached Zappi Devices to be available to select in the Energy UI

Describe alternatives you've considered
I couldn't think of another way to show this.

Additional context
Add any other context or screenshots about the feature request here.

Authentication rejected

I have just installed via HACS, however, using the following combinations, I can't get past the authentication screen.

I have seen on the myenergi forum similar threads. But I 100% have my correct hub id (copy and pasted it from the myenergi website, as well as typing it in directly), and I have tried several generations of API key, but every time I get "Hub serial or API key is wrong."

Happy to try to help debug!

Re-enter API code - where?!

I'm sorry to ask such a simple question, but I cannot find the answer.

I'e had to re-issue the API code on the myenergi website. I'm struggling to find where I can update Home assistant with the correct code. Any help appreciated. I'd rather not have to remove and reinstall Myenergi.

green_energy_today entity wrong value

Entity name : sensor.myenergi_Home_green_energy_today

Home is my logical name

Is the value of the Eddi energy consumed, not the Eddi + Zappi.

I’m using the latest versions of both distributions.

Entity is the sum of Eddi energy only and not the expected Eddi + Zappi

Sensor for Zappi Locked/Unlocked

Is your feature request related to a problem? Please describe.
I have my zappi in my condo underground car park, so I had to pin lock it. Often, when I come back home, I only plug the charger but I forgot to unlock it. Since I only charge overnight with cheap electricity, I wake up with a non-charged car.

Describe the solution you'd like
Expose a sensor with the Zappi Status of Locked/Unlocked charging so I can create an automation that reminds me to unlock the charger if the vehicle is plugged in and the status is locked charging for more than 1 hour.
Please note that there is a display lock and charging lock. In my scenario, when my car is connected, the display is always locked but the charge is unlocked.

Describe alternatives you've considered
Send a notification every time I plug the vehicle, but then it will get it even if I remember to unlock it.

Additional context
Add any other context or screenshots about the feature request here.

Green energy values - only shows hot water total

Entity summation error summary:

sensor.myenergi_home_green_energy_today = 0.71kWh (should be 1.79kWh)

sensor.myenergi_hot_water_green_energy_today = 0.71kWh

sensor.myenergi_zappi__green_energy_today = 1.08kWh

So the issue is, the individual device entity values are correct but the daily summary omits the Zappi value.

Hole in the data

Version of the custom_component

Latest from HACS

Describe the bug

The various entities don't show any data for a few hours this morning, and did not backfill.
My understanding was that sometimes the hub might disconnect, or the API might be down, but data would then automatically be backfilled. I checked the myenergi app and I do have data for these hours, so the hub must have sent the data out at one point or another, but the HA integration isn't backfilling it.

See below screenshot from the energi hub grid import today entity, that flat line between 1:20am and 9:17am has no data.
image

Is there a way to force a backfill, maybe a service I could call to have the integration re-fetch that time slice ?
Thanks

0.0.11 New Error

New error with the 0.0.11 setup -

Logger: homeassistant.setup
Source: setup.py:311
First occurred: 7:26:53 pm (1 occurrences)
Last logged: 7:26:53 pm

Unable to prepare setup for platform myenergi.sensor: Platform not found (cannot import name 'STATE_CLASS_TOTAL_INCREASING' from 'homeassistant.components.sensor' (/snap/home-assistant-snap/365/lib/python3.8/site-packages/homeassistant/components/sensor/__init__.py)).

I think this'll make sence to you ;).

Sensor showing good graph info in "History" but not available to add to "Energy" panel

Version of the custom_component

Configuration

Add your logs here.

Describe the bug

Thanks to CJNE for helping me find and install this.
It's pulling the info we need from the Myenergi system, and showing it on the graphs in "History".
However we would like to see the data in the "Energy" tab.
We have successfully added to that the "myenergi accountname Grid Import Today" and "myenergy accountname Generated Today" entries, and the Energy panel shows sensible results from that source data.
In similar vein we have added "myenergi zappi Charge added session" and it is showing power sent to the car.

We have an additional CT on the Harvi - it actually monitors the power sent to our ASHP home heating system. Myenergi don't have a way to describe that to the system so we've picked "Battery".

The "History" graph picks up "Myenergi accountname Power Battery" and the graphed data - whilst showing negative, is showing a credible curve, based on the times the heating comes on, what it does, etc.

So the final piece in our puzzle is to add this object to the Energy config. But it does not appear on the list of things we can choose to add!

The sensor name, from the main config, appears to be "sensor.myenergy_accountname_power_battery"

I'm unclear what logs or config files you are asking to be appended to this note.

Debug log


Add your logs here.

Deprecated methods NumberEntity

This Error Popped up In the HA Log.

custom_components.myenergi.number::HeaterPriorityNumber is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom component author.

custom_components.myenergi.number::DevicePriorityNumber is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom component author.

custom_components.myenergi.number::MinimumGreenLevelNumber is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom component author.

Zappi Turn off Boost Service

Loving this HA Addon, so thank you. I am using it to manage my two Zappi’s charging and boosting when needed based on car battery level, solar energy, weather forecast, and electricity time of use tarrif. I use the boost service and it works well.

However, there is a scenario where the time of use tariff changes before boosting is completed and I want to stop boosting. So far I have been calling the boost service again, with a 1 kw boost, which sort of works, but isn’t ideal. Calling it with 0 kw doesn’t work.

it looks like there is a myenergi API call that turns off boost, and I can get this to work in a browser, but can’t seem to make it work in node red. I always get a gateway timeout there. This is likely ‘cause I don’t know what I’m doing :-].

So for this use case, it would be awesome if there was a service call to stop boosting, or if calling the boost one with 0kw could send the turn off boost myenergi api call.

thanks for the great addon - it helps me a lot.

tas.

Can't find configuration section/popup/login

Home Assistant Core 2022.5.3
Home Assistant Supervisor 2022.05.0
Home Assistant OS 7.6
Kernel version 5.10.108
Agent version 1.2.1
Path to configuration.yaml: /config

HACS - 1.24.5
ha-myenergi - 0.0.18

After installing myenergi through HACS there is no configuration option to be found.

Where exactly does the configuration take place and how are the user/api key configured?

green_energy_today increasing instead of energy_used_today

Version of the custom_component

Latest from HACS

Configuration

Used the UI

Describe the bug

I've just plugged the hub in and added the integration.
The green_energy_today is increasing, even though I do not have any generation and it shows 0 in the android app.
The energy_used_today is staying at 0, even though it's increasing in the android app.

Any chance these are reversed, somehow ? Surely green should be 0 and used today should correlate with the grid CT readouts.

Debug log

No logs from this integration.

'Eddi' object has no attribute 'status'

Home Assistant: Home Assistant OS 6.3
Home Assistant Core: core-2021.9.3
Home Assistant Supervisor: supervisor-2021.09.0

Error log:
Error doing job: Task exception was never retrieved

Logger: homeassistant
Source: custom_components/myenergi/sensor.py:278
Integration: myenergi (documentation, issues)
First occurred: 4 September 2021, 17:21:31 (1052 occurrences)
Last logged: 10:55:57

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 134, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 265, in _async_refresh
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 325, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 464, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 498, in _async_write_ha_state
state = self._stringify_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in _stringify_state
state = self.state
File "/config/custom_components/myenergi/sensor.py", line 278, in state
return operator.attrgetter(self.meta["prop_name"])(self.device)
AttributeError: 'Eddi' object has no attribute 'status'

If the device field for 'status' is "sta" then that has a value of 1

Energy exported and consumed are the same

[Not sure where this is coming from, maybe from myenergi itself?]
My energy company does not "net phases" and calculates both consumed and exported power at the same time, if phases are out of balance.. For example, if I am:

  1. exporting 2kW on phase 1
  2. exporting 1kW on phase 2
  3. importing 4kW on phase 3
    My energy meter will treat this as 3kW exporting and 4kW importing at the same time.
    When I set "net phases" to NO I expect the same behavior.

However I am getting identical negative values for importing and exporting power, even though there is a huge disbalance among phases (solar inverter is running on 3 phases and boiler running on one phase). See picture.

Missing myenergi in integrations

The installation in HACS was successful.
But the next step failed.

Myenergi can't be find in (=) integrations.
Do I something wrong?

0.0.8 only showing Zappi

0.0.7 showed the Zappi, Harvi, Hub but only the Zappi is now showing in 0.0.8

I have just removed a custom setup and re-installed and setup via HACS.

Incorrect Units detected

Does not affect operation, but worth noting the mismatched units.

Home Assistant: Home Assistant OS 6.3
Home Assistant Core: core-2021.9.3
Home Assistant Supervisor: supervisor-2021.09.0

Error log:

Logger: homeassistant.components.sensor.recorder
Source: components/sensor/recorder.py:349
Integration: Sensor (documentation, issues)
First occurred: 15:12:12 (1 occurrences)
Last logged: 15:12:12

The unit of sensor.home_power_grid_2 (W) does not match the unit of already compiled statistics (kWh). Generation of long term statistics will be suppressed unless the unit changes back to kWh

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.