wlcrs / huawei_solar

Home Assistant integration for Huawei Solar inverters via Modbus
GNU Affero General Public License v3.0
506 stars 81 forks source link

[Bug]: Error occurred loading configuration flow for integration huawei_solar #17

Closed gieljnssns closed 2 years ago

gieljnssns commented 2 years ago

System Health details

System Health

version core-2021.12.10
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.10.88
arch x86_64
timezone Europe/Brussels
Home Assistant Community Store GitHub API | ok -- | -- Github API Calls Remaining | 5000 Installed Version | 1.19.3 Stage | running Available Repositories | 1017 Downloaded Repositories | 36
Home Assistant Supervisor host_os | Home Assistant OS 7.1 -- | -- update_channel | beta supervisor_version | supervisor-2021.12.2 docker_version | 20.10.9 disk_total | 457.7 GB disk_used | 113.9 GB healthy | true supported | true board | generic-x86-64 supervisor_api | ok version_api | ok installed_addons | Samba share (9.5.1), AdGuard Home (4.4.2), AppDaemon 4 (0.8.1), Caddy (1.6), Check Home Assistant configuration (3.9.0), Duck DNS (1.14.0), ESPHome (2022.1.1), Mosquitto broker (6.0.1), Studio Code Server (4.1.0), WireGuard (0.6.0), MariaDB (2.4.0), Samba Backup (5.0.0), InfluxDB (4.3.0), Grafana (7.4.1), Frigate NVR (2.3), SSH & Web Terminal (10.0.2), Glances (0.14.1), phpMyAdmin (0.7.0), Mealie (0.5.4), Arpspoof (1.0.0), Guacamole (1.3.0), Caddy 2 (1.0.9), Firefly iii (5.6.10-7)
Lovelace dashboards | 3 -- | -- resources | 17 views | 18 mode | storage
Spotify api_endpoint_reachable | ok -- | --

Describe the issue

Error occurred loading configuration flow for integration huawei_solar

Reproduction steps

  1. Try to setup Huawei_solar
  2. ...

Relevant debug logs

Logger: homeassistant.config_entries
Source: config_entries.py:720
First occurred: 14:33:11 (1 occurrences)
Last logged: 14:33:11

Error occurred loading configuration flow for integration huawei_solar: cannot import name 'is_installed' from 'pymodbus.compat' (/usr/local/lib/python3.9/site-packages/pymodbus/compat.py)
gieljnssns commented 2 years ago
image
wlcrs commented 2 years ago

What is the output of pip freeze in the HA docker container ? Do you have any other integrations that also use modbus?

How did you add the plugin to your HA? I recently tested the integration on a fresh install, and wrote down the exact steps I followed here: https://github.com/wlcrs/huawei_solar/issues/11#issuecomment-1002671977

gieljnssns commented 2 years ago

pip freeze

atomicwrites==1.4.0
attrs==21.2.0
audio-metadata==0.11.1
auroranoaa==0.0.2
aurorapy==0.2.6
Authlib==0.15.5
awesomeversion==21.11.0
axis==44
azure-common==1.1.27
azure-core==1.21.1
azure-eventhub==5.5.0
azure-servicebus==0.50.3
Babel==2.9.1
backoff==1.11.1
baidu-aip==1.6.6.0
base36==0.1.1
batinfo==0.4.2
bcrypt==3.1.7
beautifulsoup4==4.10.0
bellows==0.29.0
bidict==0.21.4
bimmer-connected==0.8.10
bitarray==2.3.5
bitstring==3.1.9
bitstruct==8.12.1
bizkaibus==0.1.1
bleak==0.14.1
blebox-uniapi==1.3.3
blinkpy==0.17.0
BlinkStick==1.2.0
blockchain==1.4.4
blurhash==1.1.4
bond-api==0.1.15
boschshcpy==0.2.19
boto3==1.20.38
botocore==1.23.38
bravia-tv==1.0.11
broadlink==0.18.0
brother==1.1.0
brotlipy==0.7.0
brottsplatskartan==0.0.1
brunt==1.1.0
bs4==0.0.1
bsblan==0.4.0
bt-proximity==0.2.1
bthomehub5-devicelist==0.1.1
btlewrap==0.1.0
btsmarthub-devicelist==0.2.0
buienradar==1.0.5
cached-property==1.5.2
cachetools==5.0.0
caldav==0.7.1
casttube==0.2.1
cattrs==1.10.0
cbor2==5.4.2
cchardet==2.1.7
certifi==2021.10.8
cffi==1.14.6
cfgv==3.3.1
charset-normalizer==2.0.10
circuit-webhook==1.0.1
ciscomobilityexpress==0.3.9
ciso8601==2.2.0
clearpasspy==1.0.2
click==8.0.3
click-log==0.3.2
click-plugins==1.1.1
clx-sdk-xms==1.0.0
CO2Signal==0.4.2
coinbase==2.1.0
colorama==0.4.4
coloredlogs==15.0.1
colorlog==6.6.0
colorthief==0.2.1
colorzero==2.0
commentjson==0.9.0
commonmark==0.9.1
concord232==0.15
config==0.5.1
ConfigArgParse==1.5.3
configparser==5.2.0
connect-box==0.2.8
construct==2.10.56
convertdate==2.3.2
coronavirus==1.1.1
coverage==6.2
crc16==0.1.1
crccheck==1.1
crcmod==1.7
croniter==1.0.6
crownstone-cloud==1.4.9
crownstone-core==3.1.0
crownstone-sse==2.0.3
crownstone-uart==2.1.0
cryptography==35.0.0
cssselect==1.1.0
cx-Oracle==8.2.1
cycler==0.11.0
Cython==0.29.26
dacite==1.6.0
dataclasses-json==0.5.3
datadog==0.15.0
datapoint==0.9.8
dateparser==1.1.0
DateTime==4.3
dbus-next==0.2.3
debugpy==1.5.1
decorator==5.1.1
deepmerge==1.0.1
defusedxml==0.7.1
deluge-client==1.7.1
demjson3==3.0.5
denonavr==0.10.9
Deprecated==1.2.13
devolo-home-control-api==0.17.4
devolo-plc-api==0.6.3
dicttoxml==1.7.4
directv==0.4.0
discogs-client==2.3.0
discord.py==1.7.3
distlib==0.3.4
dlipower==0.7.165
dnspython==2.1.0
docopt==0.6.2
docutils==0.17.1
DoorBirdPy==2.1.0
dovado==0.4.1
dsmr-parser==0.30
DTLSSocket==0.1.12
dwdwfsapi==1.0.4
dweepy==0.3.0
dynalite-devices==0.1.46
ebusdpy==0.0.17
ecdsa==0.17.0
ecoaliface==0.4.0
elgato==2.2.0
eliqonline==1.2.2
elkm1-lib==1.0.0
emoji==1.5.0
emulated-roku==0.2.1
enocean==0.50.0
enturclient==0.2.2
enum-compat==0.0.3
env-canada==0.5.20
envoy-reader==0.20.1
envoy-utils==0.0.1
envs==1.4
ephem==3.7.7.0
epson-projector==0.4.2
epsonprinter==0.0.9
esprima==4.0.1
eternalegypt==0.0.12
evohome-async==0.3.15
faadelays==0.0.7
fake-useragent==0.1.11
fastdotcom==0.0.3
feedparser==6.0.2
fiblary3==0.1.7
filelock==3.4.2
fints==1.0.1
fitbit==0.3.1
fixerio==1.0.0a0
fjaraskupan==1.0.2
Flask==2.0.2
flipr-api==1.4.1
flux-led==0.28.4
fnvhash==0.1.0
fonttools==4.28.5
foobot-async==1.0.0
forecast-solar==2.1.0
fortiosapi==1.0.5
freebox-api==0.0.10
freesms==0.2.0
fritzconnection==1.7.2
frozenlist==1.2.0
future==0.18.2
garages-amsterdam==2.1.1
gcloud==0.18.3
geniushub-client==0.6.30
geographiclib==1.52
geojson==2.5.0
geojson-client==0.6
geopy==2.1.0
georss-client==0.14
georss-generic-client==0.6
georss-ign-sismologia-client==0.3
georss-qld-bushfire-alert-client==0.5
get-mac==0.8.3
getmac==0.8.2
gios==2.1.0
gitterpy==0.1.7
glances-api==0.2.0
gntp==1.0.3
goalzero==0.2.1
google-api-core==1.31.2
google-api-python-client==1.6.4
google-auth==1.35.0
google-auth-oauthlib==0.4.6
google-cloud-pubsub==2.1.0
google-cloud-texttospeech==0.4.0
google-nest-sdm==0.4.9
googleapis-common-protos==1.54.0
googlemaps==2.5.1
goslide-api==0.5.1
gpiozero==1.5.1
gps3==0.33.3
graphql-subscription-manager==0.4.3
graphviz==0.19.1
greeclimate==1.0.1
greeneye-monitor==2.1
greenlet==1.1.2
greenwavereality==0.5.1
growattServer==1.1.0
grpc-google-iam-v1==0.12.3
grpcio==1.31.0
gstreamer-player==1.1.2
gTTS==2.2.3
guppy3==3.1.0
h11==0.12.0
h2==2.6.2
ha-av==8.0.4rc1
ha-ffmpeg==3.0.2
ha-philipsjs==2.7.6
habitipy==0.2.0
hangups==0.4.14
HAP-python==4.4.0
hass-nabucasa==0.51.0
hass-splunk==0.1.1
HATasmota==0.3.1
haversine==2.5.1
hbmqtt==0.9.6
hdate==0.10.4
heatmiserV3==1.1.18
herepy==2.0.0
hijri-converter==2.2.2
hikvision==0.4
hkavr==0.0.5
hlk-sw16==0.0.9
hole==0.7.0
holidays==0.11.3.1
home-assistant-frontend==20211229.1
# Editable install with no version control (homeassistant==2021.12.10)
-e /usr/src/homeassistant
homeassistant-pyozw==0.1.10
homeconnect==0.6.3
homematicip==1.0.1
homepluscontrol==0.0.5
horimote==0.4.1
hpack==3.0.0
html-table-parser-python3==0.1.5
httmock==1.4.0
http-ece==1.1.0
httpcore==0.14.4
httplib2==0.20.2
httpsig==1.3.0
httpx==0.21.0
huawei-lte-api==1.4.18
huawei-solar==1.2.0
huisbaasje-client==0.1.0
humanfriendly==10.0
Hydrawiser==0.2
hyper==0.7.0
hyperframe==3.2.0
hyperion-py==0.7.4
iammeter==0.1.7
iaqualink==0.3.90
ibm-cloud-sdk-core==3.14.0
ibm-watson==5.2.2
ibmiotf==0.3.4
icalendar==4.0.9
icalevents==0.1.25
icmplib==3.0
ics==0.7
identify==2.4.4
idna==3.3
ifaddr==0.1.7
iglo==1.2.7
ihcsdk==2.7.0
imageio==2.13.5
imagesize==1.3.0
importlib-metadata==4.10.1
incomfort-client==0.4.4
inflection==0.5.1
influxdb==5.2.3
influxdb-client==1.14.0
iniconfig==1.1.1
intelhex==2.3.0
iotawattpy==0.1.0
iperf3==0.1.11
ismartgate==4.0.4
iso4217==1.7.20211001
iso8601==1.0.2
isodate==0.6.1
itsdangerous==2.0.1
jeepney==0.7.1
jellyfin-apiclient-python==1.7.2
Jinja2==3.0.3
jmespath==0.10.0
josepy==1.12.0
Js2Py==0.71
jsonpatch==1.32
jsonpath==0.82
jsonpickle==2.1.0
jsonpointer==2.2
jsonrpc-async==2.1.0
jsonrpc-base==2.1.0
jsonrpc-websocket==3.1.1
jsonschema==4.4.0
justbackoff==0.6.0
jwcrypto==1.0
kafka-python==2.0.2
kaiterra-async-client==0.0.2
keba-kecontact==1.1.0
keyring==9.3.1
keyrings.alt==3.2.0
kiwiki-client==0.1.1
kiwisolver==1.3.2
konnected==1.2.0
korean-lunar-calendar==0.2.1
kostal-plenticore==0.2.0
krakenex==2.1.0
lakeside==0.12
lark-parser==0.7.8
libcst==0.3.23
libpyfoscam==1.0
libpyvivotek==0.4.0
librouteros==3.2.0
libsoundtouch==0.8.0
life360==4.1.1
lightify==1.0.7.3
lightwave==0.19
limitlessled==1.1.3
linode-api==4.1.9b1
lmnotify==0.0.4
locationsharinglib==4.1.5
logi-circle==0.2.2
loguru==0.5.3
lomond==0.3.3
london-tube-status==0.2
luftdaten==0.7.1
lupupy==0.0.24
lw12==0.9.2
lxml==4.7.1
mac-vendor-lookup==0.1.11
magicseaweed==1.0.3
Markdown==3.3.6
MarkupSafe==2.0.1
marshmallow==3.14.1
marshmallow-dataclass==8.5.3
marshmallow-enum==1.5.1
Mastodon.py==1.5.1
matplotlib==3.5.1
matrix-client==0.4.0
maxcube-api==0.4.3
mbddns==0.1.2
mcstatus==6.0.0
MechanicalSoup==0.12.0
messagebird==1.2.0
metar==1.9.0
meteoalertapi==0.2.0
meteofrance-api==1.0.2
mficlient==0.3.0
micloud==0.5
miflora==0.7.0
mill-local==0.1.0
millheater==0.9.0
miniaudio==1.46
minio==5.0.10
mitemp-bt==0.0.5
mock==4.0.3
more-itertools==8.12.0
motionblinds==0.5.8
motioneye-client==0.3.12
ms-cv==0.1.1
msgpack==1.0.3
msrest==0.6.21
msrestazure==0.6.4
mt-940==4.23.0
mullvad-api==1.0.0
multidict==5.2.0
mutagen==1.45.1
mutesync==0.0.1
mycroftapi==2.0
mypy-extensions==0.4.3
mysqlclient==2.0.3
nad-receiver==0.3.0
natsort==8.0.2
nclib==1.0.1
ndms2-client==0.1.1
nessclient==0.9.15
netaddr==0.8.0
netdata==1.0.1
netdisco==3.0.0
netifaces==0.11.0
netmap==0.7.0.2
nettigo-air-monitor==1.2.1
neurio==0.3.1
nexia==0.9.13
nextcloudmonitor==1.1.0
niko-home-control==0.2.1
niluclient==0.1.2
noaa-coops==0.1.8
nodeenv==1.6.0
noiseprotocol==0.3.1
notifications-android-tv==0.1.3
notify-events==1.0.4
nsapi==3.0.5
nsw-fuel-api-client==1.1.0
nuheat==0.3.0
numato-gpio==0.10.0
numpy==1.21.4
oasatelematics==0.3
oauth2client==4.0.0
oauthlib==3.1.1
objgraph==3.4.1
oemthermostat==1.1.1
omnilogic==0.4.5
ondilo==0.2.0
onkyo-eiscp==1.2.7
onvif-zeep-async==1.2.0
open-garage==0.2.0
openerz-api==0.1.0
openevsewifi==1.1.0
openhomedevice==2.0.1
opensensemap-api==0.1.5
openwebifpy==3.2.7
openwrt-luci-rpc==1.1.11
openwrt-ubus-rpc==0.0.2
OPi.GPIO==0.5.2
oru==0.1.11
orvibo==1.1.1
ovoenergy==1.1.12
oyaml==1.0
p1monitor==1.0.0
packaging==21.3
paho-mqtt==1.6.1
panacotta==0.1
panasonic-viera==0.3.6
pandas==1.3.0
paramiko==2.9.2
passlib==1.7.4
pbr==5.8.0
pcal9535a==0.7
pdunehd==1.3.2
pencompy==0.0.3
pendulum==2.1.2
pexpect==4.6.0
phone-modem==0.1.1
pi1wire==0.1.0
pi4ioe5v9xxxx==0.0.2
pifacecommon==4.2.2
pifacedigitalio==3.0.5
piglow==1.2.4
pigpio==1.78
pilight==0.1.1
Pillow==8.2.0
pizzapi==0.0.3
pkce==1.0.3
platformdirs==2.4.1
PlexAPI==4.7.1
plexauth==0.0.6
plexwebsocket==0.0.13
pluggy==1.0.0
plugwise==0.8.5
plumbum==1.7.2
plumlightpad==0.0.11
ply==3.11
pmsensor==0.4
poolsense==0.0.8
pprintpp==0.4.0
praw==7.4.0
prawcore==2.3.0
prayer-times-calculator==0.0.5
pre-commit==2.16.0
prettytable==3.0.0
ProgettiHWSW==0.1.1
proliphix==0.4.1
prometheus-client==0.7.1
proto-plus==1.19.8
protobuf==3.19.3
proxmoxer==1.1.1
psutil==5.8.0
psycopg2==2.9.1
ptyprocess==0.7.0
pubnub==6.0.0
pulsectl==20.2.4
pure-pcapy3==1.0.1
pure-python-adb==0.3.0.dev0
pushbullet.py==0.11.0
pushover-complete==1.1.1
pwmled==1.6.7
py==1.11.0
py-canary==0.5.1
py-cpuinfo==8.0.0
py-melissa-climate==2.1.4
py-nextbusnext==0.1.5
py-nightscout==1.2.2
py-schluter==0.1.7
py-synologydsm-api==1.0.4
py-vapid==1.8.2
py-zabbix==1.1.7
py17track==2021.12.2
pyads==3.2.2
pyaehw4a1==0.3.9
pyaes==1.6.1
pyaftership==0.1.2
pyairnow==1.1.0
pyairvisual==5.0.9
pyalmond==0.0.2
pyarlo==0.2.4
pyasn1==0.4.8
pyasn1-modules==0.2.8
pyatag==0.3.5.3
pyatmo==6.2.2
pyAtome==0.1.1
pyatv==0.8.2
pybalboa==0.13
pybbox==0.0.5a0
pyblackbird==0.5
pybotvac==0.0.22
pybuienalarm==0.1.1
pycares==4.1.2
pycarwings2==2.12
pyCEC==0.5.1
pycfdns==1.2.2
pychannels==1.0.0
PyChromecast==10.2.3
pycketcasts==1.0.0
pyclimacell==0.18.2
pycmus==0.1.1
pycocotools==2.0.1
pycognito==2022.1.0
pycomfoconnect==0.4
pyControl4==0.0.6
pycoolmasternet-async==0.1.2
pycountry==22.1.10
pycountry-convert==0.7.2
pycparser==2.20
pycryptodome==3.12.0
pycryptodomex==3.12.0
pycsspeechtts==1.0.4
pydaikin==2.6.0
pydanfossair==0.1.0
pydantic==1.9.0
pydeconz==85
pydelijn==0.6.1
pydexcom==0.2.2
PyDispatcher==2.0.5
pydoods==1.0.2
pydroid-ipcam==0.8
pyebox==1.1.4
pyeconet==0.1.14
pyedimax==0.2.1
pyefergy==0.1.5
pyEight==0.1.9
pyEmby==1.8
pyenvisalink==4.0
pyephember==0.3.1
pyeverlights==0.1.0
pyevilgenius==1.0.0
pyezviz==0.2.0.5
pyfido==2.1.1
pyfireservicerota==0.0.43
pyflic==2.0.3
PyFlick==0.0.2
PyFlume==0.6.5
pyflunearyou==2.0.2
pyfnip==0.2
pyforked-daapd==0.1.11
pyfreedompro==1.1.0
pyfritzhome==0.6.2
PyFronius==0.7.1
pyftdi==0.53.3
pyfttt==0.3
pygatt==4.0.5
Pygments==2.11.2
pygtfs==0.1.6
pygti==0.9.2
pyhaversion==21.11.1
pyheos==0.7.2
pyHik==0.3.0
pyhiveapi==0.4.2
pyhomematic==0.1.76
pyhomeworks==0.0.6
pyhumps==3.5.0
pyialarm==1.9.0
pyicloud==0.10.2
pyinsteon==1.0.13
pyintesishome==1.7.6
pyipma==2.0.5
pyipp==0.11.0
pyiqvia==2021.11.0
pyirishrail==0.0.2
pyiss==1.0.1
pyisy==3.0.0
pyitachip2ir==0.0.7
pyjsparser==2.7.1
PyJWT==2.1.0
pykira==0.1.1
pykmtronic==0.3.0
pykodi==0.2.7
pykrakenapi==0.1.8
pykulersky==0.5.2
pykwb==0.0.8
pylacrosse==0.4
pylast==4.2.1
pylaunches==1.2.0
pylgnetcast==0.3.5
pylibrespot-java==0.1.0
pylitejet==0.3.0
pylitterbot==2021.11.0
pylutron==0.2.8
pylutron-caseta==0.11.0
pymailgunner==1.4
PyMata==2.20
pymata-express==1.19
pymazda==0.2.2
pymediaroom==0.6.4.1
PyMeeus==0.5.11
pymelcloud==2.5.6
PyMetEireann==2021.8.0
pymeteoclimatic==0.0.6
PyMetno==0.9.0
pymfy==0.11.0
pymitv==1.4.3
pymochad==0.2.0
pymodbus==2.5.3
pymonoprice==0.3
pymsteams==0.1.12
PyMVGLive==1.1.4
pymyq==3.1.4
pymysensors==0.22.1
PyNaCl==1.4.0
pynetgear==0.8.0
pynetio==0.1.9.1
pynuki==1.4.1
pynut2==2.1.2
pynws==1.3.2
pynx584==0.5
pynzbgetapi==0.2.0
pyobihai==1.3.1
pyoctoprintapi==0.1.6
pyodbc==4.0.32
pyombi==0.1.10
pyOpenSSL==21.0.0
pyopenuv==2021.11.0
pyopnsense==0.2.0
pyoppleio==1.0.5
pyotgw==1.1b1
pyotp==2.6.0
pyoverkiz==1.0.0
pyowm==3.2.0
pyownet==0.10.0.post1
pyparsing==3.0.6
pypca==0.0.7
pypck==0.7.10
pypjlink2==1.2.1
pyplaato==0.0.15
pypoint==2.2.1
pyprof2calltree==1.4.5
pyprosegur==0.0.5
pyps4-2ndscreen==1.2.0
Pypubsub==4.0.3
PyQRCode==1.2.1
pyquery==1.4.3
pyqvrpro==0.52
pyqwikswitch==0.93
pyrail==0.0.3
pyrainbird==0.4.3
Pyrebase4==4.5.0
pyrecswitch==1.0.2
pyrepetierng==0.1.0
pyRFC3339==1.1
pyRFXtrx==0.27.0
pyrisco==0.3.1
pyrituals==0.0.6
PyRMVtransport==0.3.3
pyroute2==0.6.5
pyroute2.core==0.6.5
pyroute2.ethtool==0.6.5
pyroute2.ipdb==0.6.5
pyroute2.ipset==0.6.5
pyroute2.ndb==0.6.5
pyroute2.nftables==0.6.5
pyroute2.nslink==0.6.5
pyrsistent==0.18.1
pyruckus==0.12
pysabnzbd==1.1.0
pysaj==0.0.16
pySDCP==1
pysensibo==1.0.3
pyserial==3.5
pyserial-asyncio==0.5
pysesame2==1.0.1
Pysher==1.0.1
pysiaalarm==3.0.2
pysignalclirestapi==0.3.4
pyskyqhub==0.1.3
pysma==0.6.9
pysmappee==0.2.29
pysmartapp==0.3.3
pysmartthings==0.7.6
pysmarty==0.8
pysmb==1.2.7
pysmi==0.3.4
pysml==0.0.5
pysnmp==4.4.12
PySocks==1.7.1
pysoma==0.0.10
pyspcwebgw==0.4.0
pysqueezebox==0.5.5
pystiebeleltron==0.0.1.dev2
pysuez==0.1.19
PySyncThru==0.7.10
pytankerkoenig==0.0.6
pytautulli==21.11.0
pytest==6.2.5
pytest-cov==2.12.1
pytest-mock==3.6.1
pytest-rerunfailures==10.2
pytest-runner==5.3.1
pytfiac==0.4
pythinkingcleaner==0.0.3
python-awair==0.2.1
python-blockchain-api==0.0.2
python-clementine-remote==1.0.1
python-dateutil==2.8.2
python-didl-lite==1.3.2
python-digitalocean==1.13.2
python-ecobee-api==0.2.14
python-engineio==4.3.1
python-etherscan-api==0.0.3
python-family-hub-local==0.0.2
python-forecastio==1.4.0
python-gc100==1.0.3a0
python-gitlab==1.6.0
python-hpilo==4.3
python-http-client==3.3.5
python-izone==1.2.3
python-join-api==0.0.6
python-jose==3.3.0
python-jose-cryptodome==1.3.2
python-juicenet==1.0.2
python-jwt==3.3.2
python-kasa==0.4.0
python-magic==0.4.24
python-miio==0.5.9.2
python-mpd2==3.0.4
python-mystrom==1.1.2
python-nest==4.1.0
python-opendata-transport==0.2.1
python-openzwave-mqtt==1.4.0
python-picnic-api==1.1.0
python-qbittorrent==0.4.2
python-ripple-api==0.0.3
python-singleton==0.1.2
python-slugify==4.0.1
python-smarttub==0.0.29
python-sochain-api==0.0.2
python-socketio==5.5.1
python-songpal==0.12
python-tado==0.12.0
python-telegram-bot==13.1
python-twitch-client==0.6.0
python-vlc==1.1.2
python-whois==0.7.3
pythonegardia==1.0.40
pyTibber==0.21.1
pytile==2021.12.0
pytouchline==0.7
pytraccar==0.10.0
pytradfri==7.2.1
pytrafikverket==0.1.6.2
PyTransportNSW==0.1.1
PyTurboJPEG==1.6.3
pytz==2021.3
pytz-deprecation-shim==0.1.0.post0
pytzdata==2020.1
pyudev==0.22.0
pyuptimerobot==21.11.0
pyusb==1.2.1
pyvera==0.3.13
pyversasense==0.0.6
pyvesync==1.4.1
PyViCare==2.13.1
pyvizio==0.1.57
pyvlx==0.2.19
pyvolumio==0.1.3
pyW215==0.7.0
pyW800rf32==0.1
pyweatherbitdata==1.0.9
pywebpush==1.9.2
pywemo==0.7.0
pywilight==0.0.70
pywinusb==0.4.2
pyxeoma==1.4.1
PyXiaomiGateway==0.13.4
PyYAML==6.0
pyzbar==0.1.7
pyzerproc==0.4.8
qnapstats==0.4.0
quantum-gateway==0.0.6
RachioPy==1.0.3
radiotherm==2.1.0
raincloudy==0.0.7
raspyrfm-client==1.2.8
ratelimit==2.2.1
readlike==0.1.3
recurring-ical-events==0.2.4b0
regenmaschine==2021.10.0
regex==2021.8.28
renault-api==0.1.4
ReParser==1.4.3
repoze.lru==0.7
requests==2.26.0
requests-file==1.5.1
requests-futures==1.0.0
requests-oauth==0.4.1
requests-oauthlib==1.3.0
requests-toolbelt==0.9.1
responses==0.17.0
RestrictedPython==5.2
rfc3986==1.5.0
rfk101py==0.0.1
rflink==0.0.58
rich==10.16.2
ring-doorbell==0.7.2
ritassist==0.9.2
rjpl==0.3.6
rocketchat-API==0.6.1
rokuecp==0.8.4
roombapy==1.6.5
roonapi==0.0.38
rova==0.2.1
rpi-bad-power==0.1.0
rsa==4.8
RtmAPI==0.7.2
russound==0.1.9
russound-rio==0.1.7
Rx==3.2.0
rxv==0.7.0
s3transfer==0.5.0
samsungctl==0.7.1
samsungtvws==1.6.0
satel-integra==0.3.4
scapy==2.4.5
schedule==1.1.0
schiene==0.23
screenlogicpy==0.5.4
scsgate==0.1.0
SecretStorage==3.3.1
semver==2.13.0
sendgrid==6.8.2
sense-energy==0.9.3
sense-hat==2.2.0
sentry-sdk==1.5.0
sepaxml==2.0.0
sgmllib3k==1.0.0
sharkiqpy==0.1.8
sharp-aquos-rc==0.3.2
shodan==1.25.0
simplehound==0.3
simplejson==3.17.6
simplepush==1.1.4
simplisafe-python==2021.12.2
sisyphus-control==3.0
six==1.16.0
skybellpy==0.6.3
slackclient==2.5.0
sleekxmppfs==1.3.4
sleepyq==0.8.1
slixmpp==1.7.1
smart-meter-texas==0.4.7
SmartHab==0.21
smbus-cffi==0.5.1
smbus2==0.4.1
smhi-pkg==1.0.15
sn3218==1.2.7
snapcast==2.1.3
sniffio==1.2.0
snitun==0.30.0
snowballstemmer==2.2.0
soco==0.25.3
solaredge==0.0.2
solaredge-local==0.2.0
solax==0.2.8
somecomfort==0.8.0
somfy-mylink-synergy==1.0.6
sonarr==0.3.0
soupsieve==2.3.1
speak2mary==1.4.0
speedtest-cli==2.1.3
Sphinx==4.4.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
spiderpy==1.6.1
spidev==3.5
spotipy==2.19.0
SQLAlchemy==1.4.27
sqlitedict==1.7.0
srpenergy==1.3.2
srptools==1.0.1
sseclient-py==1.7.2
starkbank-ecdsa==2.0.3
starline==0.1.5
starlingbank==3.2
statsd==3.2.1
stdiomask==0.0.6
steamodd==4.21
stevedore==3.5.0
stookalert==0.1.4
streamlabswater==1.0.1
stringcase==1.2.0
subarulink==0.3.12
sucks==0.9.4
sunwatcher==0.2.1
surepy==0.7.2
swisshydrodata==0.1.0
synology-srm==0.2.0
systembridge==2.2.3
tabulate==0.8.9
tahoma-api==0.0.16
tailer==0.4.1
tailscale==0.1.6
tank-utility==1.4.0
tapsaff==0.2.1
TatSu==5.6.1
tbm-utils==2.6.0
tellcore-net==0.4
tellcore-py==1.1.2
tellduslive==0.10.11
tellsticknet==0.1.2
temescal==0.3
temperusb==1.5.3
tenacity==8.0.1
tesla-powerwall==0.3.12
tesla-wall-connector==1.0.1
text-unidecode==1.3
thermoworks-smoke==0.1.8
thingspeak==1.0.0
tikteck==0.4
titlecase==2.3
tmb==0.0.4
todoist-python==8.0.0
tololib==0.1.0b3
toml==0.10.2
toonapi==0.2.1
tornado==6.1
total-connect-client==2021.12
tp-connected==0.0.4
tqdm==4.62.3
transitions==0.8.10
transmissionrpc==0.11
TravisPy==0.3.5
tuya-iot-py-sdk==0.6.6
twentemilieu==0.5.0
twilio==6.32.0
twinkly-client==0.0.2
TwitterAPI==2.7.5
typing-extensions==4.0.1
typing-inspect==0.7.1
tzdata==2021.5
tzlocal==4.1
uamqp==1.5.1
uEagle==0.0.2
ujson==4.3.0
unasync==0.5.0
unifiled==0.11
untangle==1.1.1
upb-lib==0.4.12
upcloud-api==2.0.0
update-checker==0.18.0
uplink==0.9.5
uplink-protobuf==0.1.0
uritemplate==3.0.1
url-normalize==1.4.1
urllib3==1.26.8
urwid==2.1.2
uscisstatus==0.1.1
uvcclient==0.11.0
vallox-websocket-api==2.8.1
vehicle==0.2.2
velbus-aio==2021.11.7
venstarcolortouch==0.15
vilfo-api-client==0.3.2
vincenty==0.1.4
virtualenv==20.13.0
vobject==0.9.6.1
vol==0.1.1
volkszaehler==0.2.1
voluptuous==0.12.2
voluptuous-serialize==2.5.0
volvooncall==0.9.1
vsure==1.7.3
vtjp==0.1.14
vultr==0.1.2
wakeonlan==2.0.1
wallbox==0.4.4
waqiasync==1.0.0
warrant==0.6.1
watchdog==2.1.6
waterfurnace==1.1.0
WazeRouteCalculator==0.14
wcwidth==0.2.5
webcolors==1.11.1
webexteamssdk==1.1.1
websocket-client==1.2.3
websockets==9.1
Werkzeug==2.0.2
whirlpool-sixth-sense==0.15.1
wiffi==1.1.0
wirelesstagpy==0.8.1
withings-api==2.3.2
wled==0.10.1
wolf-smartset==0.1.11
wrapt==1.13.3
WSDiscovery==2.0.0
XBee==2.3.2
xbee-helper==0.0.7
xbox-webapi==2.0.11
xboxapi==2.0.1
xknx==0.18.15
XlsxWriter==3.0.2
xmltodict==0.12.0
xs1-api-client==3.0.0
yalesmartalarmclient==0.3.4
yalexs==1.1.19
yarl==1.6.3
yeelight==0.7.8
yeelightsunflower==0.0.10
youless-api==0.16
youtube-dl==2021.6.6
zeep==4.1.0
zengge==0.2
zeroconf==0.38.1
zha-quirks==0.0.65
zhong-hong-hvac==1.0.9
ziggo-mediabox-xl==1.1.0
zigpy==0.42.0
zigpy-deconz==0.14.0
zigpy-xbee==0.14.0
zigpy-zigate==0.7.3
zigpy-znp==0.6.4
zipp==3.7.0
zm-py==0.5.2
zope.interface==5.4.0
zwave-js-server-python==0.33.0
gieljnssns commented 2 years ago

Do you have any other integrations that also use modbus?

I use https://github.com/binsentsu/home-assistant-solaredge-modbus and for now I'm using the modus integration from HA for my Huawei inverter

How did you add the plugin to your HA?

I have followed this steps

gieljnssns commented 2 years ago

When I restart HA without the standard modes integration I have this error when trying to install huawei_solar

Logger: homeassistant.config_entries
Source: config_entries.py:720
First occurred: 11:24:52 (1 occurrences)
Last logged: 11:24:52

Error occurred loading configuration flow for integration huawei_solar: No module named 'pymodbus.client.asynchronous'
gieljnssns commented 2 years ago

Time ago I also used the custom_component Emilv2 but I had cpu issues https://github.com/Emilv2/huawei_solar/issues/15 That's why I started the integrated modes component Now I wan't to try yours because the integrated sometimes becomes unavailable and you are using the config flow.

But you and Emil both use "domain": "huawei_solar" can this be the problem?

wlcrs commented 2 years ago

Do you have any other integrations that also use modbus?

I use https://github.com/binsentsu/home-assistant-solaredge-modbus and for now I'm using the modus integration from HA for my Huawei inverter

How did you add the plugin to your HA?

I have followed this steps

Looking at https://github.com/binsentsu/home-assistant-solaredge-modbus/blob/master/custom_components/solaredge_modbus/manifest.json , I see that this integration requires a much lower version of pyModbus. This can cause the issues that you are seeing: HA installs the lower version when it loads that integration, then my integration crashes because of that. That would also explain all the strange errors about missing files, etc.

wlcrs commented 2 years ago

Time ago I also used the custom_component Emilv2 but I had cpu issues Emilv2/huawei_solar#15 That's why I started the integrated modes component Now I wan't to try yours because the integrated sometimes becomes unavailable and you are using the config flow.

But you and Emil both use "domain": "huawei_solar" can this be the problem?

Using the two integrations next to each other is impossible. Apart from the clashing domain: the inverter only allows one connection. Each integration tries to maintain it's own connection, so they would constantly steal it from each other and cause and endless series of disconnects

gieljnssns commented 2 years ago

pip freeze pymodbus==2.5.3

Using the two integrations next to each other is impossible.

I don't want to use them together... but isn't there something left over from that installation?

wlcrs commented 2 years ago

Can you please disable the solar edge component, reinstall mine and try again? Home assistant will always try to install the dependencies upon startup. This can explain the errors about missing files: they are temporarily removed between the startup of the solaredge and this component.

gieljnssns commented 2 years ago

Sorry for the late response, but I didn't find the time to test. I've disabled the solaredge component and removed the core modbus component and removed your component, restarted HA reinstalled your component, restarted HA again.

Schermafbeelding 2022-01-27 om 15 10 09

When I try to load your component

Logger: homeassistant.config_entries
Source: config_entries.py:720
First occurred: 15:07:45 (1 occurrences)
Last logged: 15:07:45

Error occurred loading configuration flow for integration huawei_solar: No module named 'pymodbus.client.asynchronous'
wlcrs commented 2 years ago

Hi Giel,

Something is going wrong with the installation of the dependencies on your system. This clearly is not an issue with this library, as many other users have successfully installed it.

If the pymodbus library is correctly installed, then that module should be available.

You can test the following:

$ pip uninstall pymodbus
Found existing installation: pymodbus 2.5.3
Uninstalling pymodbus-2.5.3:
  Would remove:
    ....
Proceed (Y/n)? y
  Successfully uninstalled pymodbus-2.5.3
$ pip install --no-cache-dir pymodbus==2.5.3
Collecting pymodbus==2.5.3
  Downloading pymodbus-2.5.3-py2.py3-none-any.whl (154 kB)
     |████████████████████████████████| 154 kB 1.0 MB/s
...
Installing collected packages: pymodbus
Successfully installed pymodbus-2.5.3
$ python3
Python 3.10.2 (main, Jan 17 2022, 19:28:57) [GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pymodbus.client.asynchronous.async_io
>>> dir(pymodbus.client.asynchronous.async_io)
['AsyncModbusClientMixin', 'AsyncioModbusSerialClient', 'AsyncioModbusTcpClient', 'AsyncioModbusUdpClient', 'BaseModbusAsyncClientProtocol', 'ConnectionException', 'DGRAM_TYPE', 'FifoTransactionManager', 'ModbusClientProtocol', 'ModbusUdpClientProtocol', 'ReconnectingAsyncioModbusTcpClient', 'ReconnectingAsyncioModbusTlsClient', 'ReconnectingAsyncioModbusUdpClient', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '__warningregistry__', '_logger', 'asyncio', 'functools', 'hexlify_packets', 'init_tcp_client', 'init_tls_client', 'init_udp_client', 'logging', 'socket', 'ssl']
>>>
gieljnssns commented 2 years ago

Yesterday evening I've updated HA to the new beta while modbus(integrated) and SolarEdge_modbus was disabled. When HA came back to life I tried to install your component, then it worked.

Thanks for your help.