Code Monkey home page Code Monkey logo

hoymiles's Introduction

  • 👋 Hi, I’m @dmslabsbr
  • 👀 I’m interested in iot, 3d printing, IA, Big Data....
  • 🌱 I’m currently learning Flutter and FlutterFlow
  • 💞️ I’m looking to collaborate on ...
  • 📫 How to reach me @ www.neoage.com.br

hoymiles's People

Contributors

cosik avatar davidw250 avatar dmslabsbr avatar dyegoaurelio avatar dziobson avatar focabr avatar maakuth avatar maickelr 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

Watchers

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

hoymiles's Issues

HoyMiles Solar Data no visible as data source for the new Energy dashboard (HA 2021.8.1)

Hi,
As Home Assistant 2021.8.1 just released their support for Energy management I am trying to use the Hoymiles solar data gateway as source for the "Return to Grid" part of the setup. However, there are "No matching statistics" found message.

Is it possible to use this Add-On as an Integration to allow to be used with Energy dashboard?

Regards,
Pawel

Add on question / request?

I am not sure how the data is being scraped from hoymiles portal would it be possible to also scrap the alarm data?

stop working after last update

SSL MQTT stop working
2022-02-28 16:21:10,937 - HoymilesAdd-on.hoymilesapi.Hoymiles - INFO - last_data_time 2022-02-28T16:16:24+01:00
Traceback (most recent call last):
File "/data/../hoymiles.py", line 249, in
sys.exit(main()) # next section explains the use of sys.exit
File "/data/../hoymiles.py", line 209, in main
mqtt.start()
File "/mqttapi.py", line 57, in start
port = self._config['MQTT_TLSPORT']
KeyError: 'MQTT_TLSPORT'
[cmd] /run.sh exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
without also
2022-02-28 16:18:56,937 - HoymilesAdd-on - INFO - Solar data publication...2022-02-28 16:18:56.937428
2022-02-28 16:18:56,938 - HoymilesAdd-on - INFO - Main loop start!

UTF-8 character encoding is missing

Hey,
UTF-8 character encoding is missing.

File "/usr/local/lib/python3.9/http/client.py", line 168, in _encode
raise UnicodeEncodeError(
UnicodeEncodeError: 'latin-1' codec can't encode character '\u0144' in position 199: Body ('ń') is not valid Latin-1. Use body.encode('utf-8') if you want to send it encoded in UTF-8.
[cmd] /run.sh exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.

Data loss, or untrusted? Abnormal computing behaviour

Hi,
Energy data comparison functionality appeared in 2022.6 Core version. However, when trying to compare year-to-year energy production data, or displaying a yearly production only, I see a NEGATIVE value:

image

Please advise what to do to get the correct data. How to reset all the data and start gathering them from scratch?

Units of measurement issue

Hi, @dmslabsbr ,

After the last add-on update I noticed the following unit measurement discrepancies (please compare both dashboards):
solar-ha
image
On the HA dashboard, I see 3,509.0 kWh (by default this value [three thousand five hundred and nine] has been wrongly multiplied by 1000. It should be 3.509 kWh) while the original hoymiles dashboard displays this value with the correct unit (3.51kWh). The same applies to the total energy: on the HA dashboard I see 8.73 kWh, while the original dashboard displays 8.73 MWh, So the value has to be multiplied by 1000, but it is not. I don't use any unit recalculations. Could you please resolve this issue?

Erro ao acessar - I can’t connect - 400 Bad request

Hi,
when trying to access my hoymiles plant, the Home Assistant addon (running in Hassio) is running in an error.
After getting the Token (according to the log) it tries to connect to the actual data api and fails with a 400 bad request.

Login data is correct, alas I am not shure about the „Plant ID“. I’ve tried 00 and 01 and various combinations of my device IDs and serials.
Do you know how I can find the correct plant ID?
And is the Bad Request error related to the ID or another problem?

I’ve attached part of the log below.
Thanks for looking into it and best regards,
Janis

Erro ao acessar: https://global.hoymiles.com/platform/api/gateway/pvm-data/data_count_station_real_data
status_code: 400 Bad Request
I can't connect!
dados_solar: False
Traceback (most recent call last):
File "/data/../hoymiles.py", line 653, in
pegaDadosSolar()
File "/data/../hoymiles.py", line 548, in pegaDadosSolar
gDadosSolar = dados_solar['data']
TypeError: 'bool' object is not subscriptable
[cmd] /run.sh exited 1

Continuous errors in Home Assistant Core log 'dict object' has no attribute

Hi,
When checking the log entries for HA (Core) - I see a lot of lines with something similar to:

2021-11-23 11:38:47 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'reset_real_power_measurement' when rendering '{{ value_json.reset_real_power_measurement }}'
2021-11-23 11:38:47 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'reset_real_power_total_increasing' when rendering '{{ value_json.reset_real_power_total_increasing }}'
2021-11-23 11:38:47 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'reset_today_eq_Wh' when rendering '{{ value_json.reset_today_eq_Wh }}'
2021-11-23 11:38:47 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'reset_total_eq' when rendering '{{ value_json.reset_total_eq }}'
2021-11-23 11:38:48 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'reset_real_power_measurement' when rendering '{{ value_json.reset_real_power_measurement }}'
2021-11-23 11:38:48 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'reset_real_power_total_increasing' when rendering '{{ value_json.reset_real_power_total_increasing }}'
2021-11-23 11:38:48 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'reset_today_eq_Wh' when rendering '{{ value_json.reset_today_eq_Wh }}'
2021-11-23 11:38:48 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'reset_total_eq' when rendering '{{ value_json.reset_total_eq }}'

Could we get rid of this WARNING?

502: Bad Gateway

Hi, I have the problem that "502: Bad Gateway" is displayed in the UI, I don't see the data in the dashboard. No errors appear in the log.

Thanks in advance

502: Bad Gateway

This could just be me as I'm very new to Home Assistant and MQTT but the Dashboard link on the left has never worked for me. It constantly gives an error 502:Bad Gateway. What is this supposed to look like? I can get data out and display it in LoveLace, but that sidebar menu doesn't do anything. Also - what is the 'simple web interface' all about? I'd be happy to help with the documentation about how to install if I knew myself how to do so. I've provided a bunch of screenshots to show my settings.

solar1

solar2

Sensor unavailable

Hi.

Sensors often appear as unavailable, but when accessing via the "OPEN WEB UI" the information is ok.
I need to press rebuild or restart, but it doesn't always work.

Thanks for the add-on
HoyMiles_2
HoyMiles_1

Warnings in Log

Just a warning, but I thought I'd post this here in case it is related to something else.

image

Data unavailable

Sometimes the data from Hoymiles is Unavailable, is need to restart the the plugin to back work.
But when you sse in the left menu the information is correct.

Old Stable version uninstalling issue

Dear @dmslabsbr ,

To install a brand new add-on version I tried to uninstall the obsolete old version. However, after executing this process I'm still able to see this add-on on a HASSIO dashboard:

image

When clicking this add-on it reports as UNINSTALLED (INSTALL prompt appears):

image

...but it still remains visible on a dashboard, even if it is not yet installed back.
Before installing a new version I need to completely remove the obsolete one, right?
Please kindly advise how to do it?

External MQTT - problem

I have an external MQTT broker and after recent changes the add-on stopped working. I can't set IP address of MQTT server.

Starting add-on container...
Mon Oct 11 17:06:08 CEST 2021
Exporting config data...
Getting mqqt data...
[17:06:09] ERROR: Got unexpected response from the API: Service not enabled
...

Installation on Hassio fails

image
This message appeared after clicking the install button after an attempt to reinstall the plugin from the Add On Store.

502 Bad Gateway

hi guys... I'm getting 502, also none entities were created.

exploring mqtt:
homeassistant/binary_sensors/dmslab/solarH_[id from device list] are all created:
i.e:
{"stat_t": "home/solar/json_2878710", "name": "solarH_2878710_connect", "uniq_id": "solarH_2878710_connect", "val_tpl": "{{ value_json.connect }}", "icon": "mdi:solar-panel", "device_class": "connectivity", "device": {"name": "Hoymiles Gateway", "manufacturer": "Hoymiles", "model": "None", "sw_version": "", "via_device": "2878710", "identifiers": ["solarH_2878710"]}}

same for sensors:
i.e.:
{"stat_t": "home/solar/json_631960", "name": "solarH_631960_today_eq", "uniq_id": "solarH_631960_today_eq", "val_tpl": "{{ value_json.today_eq }}", "device_class": "energy", "state_class": "total_increasing", "unit_of_measurement": "kWh", "expire_after": "720", "device": {"name": "Hoymiles Gateway", "manufacturer": "dmslabs", "model": "Hoymiles add-on", "sw_version": "1.0.7", "via_device": "631960", "identifiers": ["solarH_631960"]}}

/home/solar/json_631960 [ I'm assunig this is my dtu id]:
{"today_eq": "42.25", "month_eq": "160.48", "year_eq": "160.48", "total_eq": "160.48", "real_power": "11000.0", "co2_emission_reduction": "0.16", "plant_tree": "8.744", "data_time": "2022-10-27 11:49:17", "last_data_time": "2022-10-27T11:49:17-03:00", "capacitor": "14400.0", "is_balance": 0, "is_reflux": 0, "reflux_station_data": null, "real_power_measurement": "11000.0", "real_power_total_increasing": "11000.0", "power_ratio": "76.4", "capacitor_kW": "14.4", "today_eq_Wh": "42251.0"}

attached log
hoymiles.log

valeu!

Adding device_class & state_class for power sensors

Could you add:

   device_class: power
   state_class: measurement

for power measurement sensors?

  • sensor.solarh _ #### _ real_power
  • sensor.solarh _ #### _ real_power_measuremen
  • sensor.solarh _ #### _ real_power_total_increasing

They could be automatically registered by the "statistics" module and used in the "Statistics Graph Card".
Could you add:

   device_class: power
   state_class: measurement

for power measurement sensors?

  • sensor.solarh _ #### _ real_power
  • sensor.solarh _ #### _ real_power_measuremen
  • sensor.solarh _ #### _ real_power_total_increasing

They could be automatically registered by the "statistics" module and used in the "Statistics Graph Card".

Thank you for this great plugin 👍👍👍.
Janusz

Error: user login times limited per day

We need to investigate it.
Maybe, we need to increase the download data time.

Anyone getting user login times limited per day error when trying to login via web or app after using HA integration?

Anyone else having this error?

image

Originally posted by @gralin in #65 (comment)

Data AVAILABLE on add-on's UI but NOT AVAILABLE on the dashboards

Hi again, @dmslabsbr

Currently, the add-on is not able to display data on the Lovelace dashboad and the entities are not available for the Energy Dashboard, however, the same data is being clearly visible on the add-on's UI:

HA dashboard (niedostępny = unavailable):
image

Add-on UI:
image

HA Energy configuration dashboard (regardless of the concrete entity: total_eq, month_eq or today_eq) no entities are available:
image

Frankly speaking, I'm stuck... will you please, advise?

Energy dashboard value HA

First of all thanks for this addon. Which entity can I use for the solar panel yield in the energy dashboard? I can't find the right one because the values are very different every time I try a value.

502: Bad Gateway

I cannot get this integration to work. I have entered my Hoymiles user id and password, and plant id (I guess that is plant name?), but when I start the addon and try to go to web UI, I just get "502: Bad Gateway" to upper left corner.

Also this addon seems to close itself often and then I need to start it again.

I got these errors on log:

Failed to to call /addons/44349f66_hoymiles_solardata/stats - Container addon_44349f66_hoymiles_solardata is not running
Failed to to call /addons/44349f66_hoymiles_solardata/stats - Can't read stats from addon_44349f66_hoymiles_solardata: Expecting value: line 1 column 1 (char 0)

Problem with install

Hello, I am getting the following error when trying to installing it:

21-07-02 10:06:00 INFO (SyncWorker_3) [supervisor.docker.addon] Starting build for 44349f66/amd64-addon-hoymiles_solardata:0.19
21-07-02 10:06:03 ERROR (SyncWorker_3) [supervisor.docker.addon] Can't build 44349f66/amd64-addon-hoymiles_solardata:0.19: manifest for homeassistant/amd64-base-python:3.9-alpine3.122 not found: manifest unknown: manifest unknown
21-07-02 10:06:03 ERROR (SyncWorker_3) [supervisor.docker.addon] Build log:
Step 1/21 : ARG BUILD_FROM=homeassistant/amd64-base-python:3.7-alpine3.12
Step 2/21 : FROM $BUILD_FROM

Stop working after update core-2022.3.5

Starting add-on container...
Tue Mar 15 12:38:57 CET 2022
Exporting config data...
Getting mqqt data...
[12:38:58] ERROR: Got unexpected response from the API: Service not enabled
total 16
d--------- 2 root root 4096 Mar 15 12:39 .
d--------- 4 root root 4096 Mar 15 12:38 ..
---------- 1 root root 718 Mar 15 12:39 base.html
---------- 1 root root 221 Mar 15 12:39 index.html
[12:39:00] INFO: secrets.ini exists!
[12:39:00] INFO: /data/secrets.ini exists!
[12:39:01] INFO: null
[12:39:01] INFO: {"supervisor":"2022.03.4","homeassistant":"2022.3.5","hassos":null,"docker":"20.10.3","hostname":null,"operating_system":null,"features":[],"machine":"qemux86-64","arch":"amd64","state":"running","supported_arch":["amd64","i386"],"supported":false,"channel":"stable","logging":"info","timezone":"Europe/Warsaw"}
[12:39:01] INFO: {"supervisor":"2022.03.4","homeassistant":"2022.3.5","hassos":null,"docker":"20.10.3","hostname":null,"operating_system":null,"features":[],"machine":"qemux86-64","arch":"amd64","state":"running","supported_arch":["amd64","i386"],"supported":false,"channel":"stable","logging":"info","timezone":"Europe/Warsaw"}
dmslabs - Home Assistant HoyMiles Solar Data Gateway Add-on
2022-03-15 12:39:02,045 - HoymilesAdd-on - INFO - ********** dmslabs&Cosik Hoymiles Gateway v.0.24.2d
2022-03-15 12:39:02,045 - HoymilesAdd-on - INFO - Starting up... 2022-03-15 12:39:02
2022-03-15 12:39:02,046 - HoymilesAdd-on - INFO - Using Internal MQTT Server:
2022-03-15 12:39:02,046 - HoymilesAdd-on - INFO - Using Internal MQTT User:
2022-03-15 12:39:02,046 - HoymilesAdd-on.hoymilesapi.Hoymiles - INFO - Loading: https://global.hoymiles.com/platform/api/gateway/iam/auth_login
2022-03-15 12:39:02,989 - HoymilesAdd-on.hoymilesapi.Hoymiles - INFO - I got the token!! :-)
2022-03-15 12:39:02,990 - HoymilesAdd-on.hoymilesapi.Hoymiles - INFO - Loading: https://global.hoymiles.com/platform/api/gateway/pvm-data/data_count_station_real_data
2022-03-15 12:39:03,354 - HoymilesAdd-on.hoymilesapi.Hoymiles - INFO - last_data_time 2022-03-15T12:31:06+01:00
2022-03-15 12:39:03,357 - HoymilesAdd-on.mqttapi.Mqtt - INFO - Starting MQTT

Add on not starting

It looks like an add on not starting.
In log there is one line:
s6-overlay-suexec: fatal: can only run as pid 1

I have the same error in edge and stable version.

unable to start add-on on hassio : TypeError: strptime() -- tried all 3 versions.

hi.. I'm keeping getting this error message and add-on shutdowns.
looks like add-on isn't properly hadling zero value or DTU is offline
thanks.

[ that's expected because DTU could be off line
2022-10-13 11:46:24,466 - HoymilesAdd-on.hoymilesapi.Hoymiles - WARNING - real_power = 0
Traceback (most recent call last):
File "/hoymiles.py", line 385, in
sys.exit(main()) # next section explains the use of sys.exit
File "/hoymiles.py", line 350, in main
publicate_data(plant_list[id], mqtt_list[id])
File "/hoymiles.py", line 203, in publicate_data
hoymiles_h.get_solar_data()
File "/hoymilesapi.py", line 237, in get_solar_data
self.solar_data = self.adjust_solar_data(self.solar_data)
File "/hoymilesapi.py", line 278, in adjust_solar_data
last_data_time = datetime.strptime(last_data_time, '%Y-%m-%d %H:%M:%S')
TypeError: strptime() argument 1 must be str, not None
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

--- additional info regarding my HASSIO

{"supervisor":"2022.10.0","homeassistant":"2022.10.3","hassos":"9.2","docker":"20.10.17","hostname":"homeassistant","operating_system":"Home Assistant OS 9.2","features":["reboot","shutdown","services","network","hostname","timedate","os_agent","haos","resolved"],"machine":"qemux86-64","arch":"amd64","state":"running","supported_arch":["amd64","i386"],"supported":true,"channel":"stable","logging":"info","timezone":"America/Sao_Paulo"}

Update readme

Readme has to be updated due to changes, and should contain full instruction of install and config.

Internal Api

I have a internet issue and sometimes my data was not send to website(global).
Does have any path to get data directly on hoymiles ? By api ou another way ?

MQQT host does not work

Hi, first of all - great thank you for releasing that add on. Would be good to check MQQT host option, even if I put my own, seems that default ones are forced.

2021-03-21 10:27:52,761 - root - INFO - Starting MQTT 192.168.50.20
2021-03-21 10:27:52,761 - root - DEBUG - mqttStart MQTT_PASSWORD: sen.... [I keep it hidden - presume that's your own password]
MQTT Start / Error! Code: timeout, Message, timed out
2021-03-21 10:28:52,822 - root - WARNING - MQTT Start / Error! Code: timeout, Message, timed out

Thanks

After upgrade to 0.22a7 cannot start Add-on

The 0.22a7 version causes the add-on to fail to start.
Error only says: expected int

FAILED TO START ADD-ON - CONFIGURATION VALIDATION FAILED

Supervisor entry:
22-01-19 07:23:37 ERROR (MainThread) [supervisor.addons.addon] Add-on 44349f66_hoymiles_solardata has invalid options: expected int. Got {'HOYMILES_USER': 'xxx', 'HOYMILES_PASSWORD': 'Xxx', 'HOYMILES_PLANT_ID': 'xxx', 'DEVELOPERS_MODE': False, 'External_MQTT_Server': False, 'External_MQTT_Host': '127.0.0.1', 'External_MQTT_User': 'nda', 'External_MQTT_Pass': 'nda', 'External_MQTT_TLS': False, 'External_MQTT_TLS_PORT': 'nda'}

Any chance to make this a HACS integration?

Hi there,

First of all, thanks for all your hard work on this add-on!!!

Is there any chance to make this add-on a HACS integration? For the ones, that like me, runs Home Assistant on a docker, it is impossible to use this add-on as we don't have the supervisor.

Thanks and sorry if this is not the right place to ask for it.

Problem with default mqtt authorisation after update to 0.24

There is some issue with mqtt deafult authorization after update from 0.23a to 0.24 (HA 2022.2.9).
0.23a used to work fine with built in mosquito broker (log below). I suppose "nda" is not an expected user. How can I make it use internal HA addon mqtt user out of the box?

2022-02-27 09:52:34,359 - HoymilesAdd-on.hoymilesapi.Hoymiles - INFO - last_data_time 2022-02-27T09:46:12+01:00
2022-02-27 09:52:34,360 - HoymilesAdd-on.mqttapi.Mqtt - INFO - Starting MQTT 127.0.0.1
2022-02-27 09:52:34,360 - HoymilesAdd-on.mqttapi.Mqtt - DEBUG - SSL: OpenSSL 1.1.1l 24 Aug 2021
2022-02-27 09:52:34,360 - HoymilesAdd-on.mqttapi.Mqtt - DEBUG - mqttStart TLS: False
2022-02-27 09:52:34,360 - HoymilesAdd-on.mqttapi.Mqtt - DEBUG - mqttStart MQTT_USERNAME: nda
2022-02-27 09:52:34,361 - HoymilesAdd-on.mqttapi.Mqtt - DEBUG - mqttStart MQTT_PASSWORD: nda
2022-02-27 09:52:34,361 - HoymilesAdd-on.mqttapi.Mqtt - DEBUG - mqttStart MQTT_PORT: 1883
2022-02-27 09:52:34,363 - HoymilesAdd-on.mqttapi.Mqtt - ERROR - MQTT connected with result code 5
2022-02-27 09:52:34,364 - HoymilesAdd-on.mqttapi.Mqtt - ERROR - 5Connection refused – not authorised
2022-02-27 09:52:34,364 - HoymilesAdd-on.mqttapi.Mqtt - ERROR - APP EXIT 5

Missing timezone information - core-2021.12.8

2022-01-05 13:28:54 ERROR (MainThread) [homeassistant.util.logging] Exception in message_received when handling msg on 'home/solar/json': '{"today_eq": "1.36", "month_eq": "16.97", "year_eq": "16972", "total_eq": "7124.51", "real_power": "113", "co2_emission_reduction": "7.1", "plant_tree": "3946", "last_data_time": "2022-01-05 13:16:23", "capacitor": "6900", "is_balance": 0, "is_reflux": 0, "reflux_station_data": null, "real_power_measurement": "113", "real_power_total_increasing": "113", "power_ratio": "1.6", "capacitor_kW": "16.9", "today_eq_Wh": "1357.0", "reset_today_eq": "2022-01-05T00:00:00+00:00", "reset_month_eq": "2022-01-01T00:00:00+00:00"}'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/mqtt/debug_info.py", line 37, in wrapper
msg_callback(msg)
File "/usr/src/homeassistant/homeassistant/components/mqtt/sensor.py", line 249, in message_received
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 505, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 538, in _async_write_ha_state
state = self._stringify_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 511, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 411, in state
raise ValueError(
ValueError: Invalid datetime: sensor.solarh_31140_last_data_time provides state '2022-01-05 13:16:23', which is missing timezone information

Problem with install add-on

HI. muito obrigado @dmslabsbr
I done all steps and install git clone https://github.com/dmslabsbr/hoymiles.git using commands
cd hoymiles
python3 -m venv ./hoymiles/
source ./bin/activate
pip3 install paho-mqtt
pip3 install requests

After that I add path do add-on repository i try to install your add-on
And nothing happens. Add-on not install and there isn't a configuration menu. What do I do wrong?

Version 1.0 error during install add-on

Hi,

I have an error during try to install version 1.0

"The command '/bin/bash -o pipefail -c pip3 install paho-mqtt' returned a non-zero code: 1"

before I execute source ./bin/activate I have to change the path to ./hoymiles/hoymiles.
I'm not sure maybe it was wrong but without this command "source ./bin/activate" didn't work
Also, I must use --user option with all "pip3 install ...." commands

What have I done wrong?

Stop working after back to 0.23a

dmslabs - Home Assistant HoyMiles Solar Data Gateway Add-on
2022-03-08 13:31:55,949 - HoymilesAdd-on - INFO - ********** dmslabs&Cosik Hoymiles Gateway v.0.24.2d
2022-03-08 13:31:55,949 - HoymilesAdd-on - INFO - Starting up... 2022-03-08 13:31:55
2022-03-08 13:31:55,952 - HoymilesAdd-on - INFO - Using Internal MQTT Server: core-mosquitto
2022-03-08 13:31:55,953 - HoymilesAdd-on - INFO - Using Internal MQTT User: addons
2022-03-08 13:31:55,953 - HoymilesAdd-on.hoymilesapi.Hoymiles - INFO - Loading: https://global.hoymiles.com/platform/api/gateway/iam/auth_login
2022-03-08 13:31:56,306 - HoymilesAdd-on.hoymilesapi.Hoymiles - INFO - I got the token!! :-)
2022-03-08 13:31:56,309 - HoymilesAdd-on.hoymilesapi.Hoymiles - INFO - Loading: https://global.hoymiles.com/platform/api/gateway/pvm-data/data_count_station_real_data
2022-03-08 13:31:56,708 - HoymilesAdd-on.hoymilesapi.Hoymiles - INFO - last_data_time 2022-03-08T13:31:19+01:00
Traceback (most recent call last):
File "/data/../hoymiles.py", line 268, in
sys.exit(main()) # next section explains the use of sys.exit
File "/data/../hoymiles.py", line 228, in main
mqtt.start()
File "/mqttapi.py", line 56, in start
if self._config['MQTT_TLS']:
KeyError: 'MQTT_TLS'
[cmd] /run.sh exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

HOYMILES_USER: xxxx
HOYMILES_PASSWORD:xxxxx
HOYMILES_PLANT_ID: 'xxxx'
DEVELOPERS_MODE: false
External_MQTT_Server: false
External_MQTT_Host: 127.0.0.1
External_MQTT_User: xxxt
External_MQTT_Pass: xxxx
External_MQTT_TLS: false
External_MQTT_TLS_PORT: '8883'
MQTT_Host: 127.0.0.1
MQTT_User: xxxx
MQTT_Pass: xxxx
MQTT_TLS: false
MQTT_TLS_PORT: '8883'

UI problem and crash after few seconds

Hello,
I installed this addon. In config I write my hoymiles account (I tried Installer account and end user account) and MQTT host, login and password. Addon is starting but when I click on UI i have error: 502: Bad Gateway and after few second addon is dead. In log I have:

on red:
MQTT Server: core-mosquitto

last entry:
2022-01-27 20:34:34,241 - urllib3.connectionpool - DEBUG - https://global.hoymiles.com:443 "POST /platform/api/gateway/pvm-data/data_count_station_real_data HTTP/1.1" 200 283

Any idea what i'm going wrong?

Missing default value for External_MQTT_TLS

Addon fails to start after update (causing also an supervisor error on update) - the configuration fails to check. "int expected" error appears in HA ui.
Solution is quite simple - it lacks default value for External_MQTT_TLS port - putting any value there solves the issue.
It's nothing major, but it would be nice to get that fixed,

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.