Open javierin opened 3 years ago
Hi, Looking at the source code it seems that it is already supported to modify the wait time, however 2 seems to be the default value.
def __init__(self, host, port="502", timeout=5, wait=2, slave=0):
Try changing in sensor.py
try:
inverter = HuaweiSolar(host=config[CONF_HOST], slave=config[CONF_SLAVE])
except Exception as ex:
with
try:
inverter = HuaweiSolar(host=config[CONF_HOST], slave=config[CONF_SLAVE], wait=2)
except Exception as ex:
You can even add a configuration option in order to try different configurations
Hi Jacobo I managed to get it working changing slave to 0, even though I have the SDongle installed.
Thanks!
Hi
I need to add time.sleep(2) to huawei_solar.py right after connection to see if I can get it to fetch data from modbus. Right now I am getting the following error in HomeAssistant:
I am testing a modbus proxy which I can query from other devices within my LAN, but can't get this huaweisolar to work. I have seen the error in **/usr/local/lib/python3.9/site-packages/huawei_solar/huaweisolar.py** but, damn, I can't get to find that file anywhere. How can I reach it to put the 2 seconds sleep and try to get the whole thing working?
Thanks