Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after updating. KeyError: 'Model_1' #52

Open
gazm2k5 opened this issue Aug 18, 2024 · 3 comments
Open

Error after updating. KeyError: 'Model_1' #52

gazm2k5 opened this issue Aug 18, 2024 · 3 comments

Comments

@gazm2k5
Copy link

gazm2k5 commented Aug 18, 2024

My instance of watchtower automatically updated some containers overnight, and now GivTCP won't find my inverter.

2024-08-18T09:45:51.181994218Z 2024-08-18 10:45:51,181 - startup - [INFO] - ========================== STARTING GivTCP================================

2024-08-18T09:45:53.183548847Z 2024-08-18 10:45:53,183 - startup - [INFO] - Searching for Inverters

2024-08-18T09:45:53.183611228Z 2024-08-18 10:45:53,183 - startup - [INFO] - Scanning network for GivEnergy Devices...

2024-08-18T09:46:19.850718273Z 2024-08-18 10:46:19,850 - startup - [INFO] - No inverters found...

2024-08-18T09:46:19.859795964Z 2024-08-18 10:46:19,859 - startup - [INFO] - Setting up invertor: 1

2024-08-18T09:46:19.875438945Z Traceback (most recent call last):

2024-08-18T09:46:19.875484450Z   File "/app/startup.py", line 556, in <module>

2024-08-18T09:46:19.875861437Z     createsettingsjson(inv)

2024-08-18T09:46:19.875874394Z   File "/app/startup.py", line 174, in createsettingsjson

2024-08-18T09:46:19.876016222Z     outp.write("    inverter_type=\""+str(setts["Model_"+str(inv)])+"\"\n")

2024-08-18T09:46:19.876065959Z                                           ~~~~~^^^^^^^^^^^^^^^^^^^

2024-08-18T09:46:19.876077198Z KeyError: 'Model_1'

2024-08-18T09:46:21.933319804Z 2024-08-18 10:46:21,933 - startup - [INFO] - ========================== STARTING GivTCP================================

2024-08-18T09:46:23.935024631Z 2024-08-18 10:46:23,934 - startup - [INFO] - Searching for Inverters

2024-08-18T09:46:23.935111677Z 2024-08-18 10:46:23,934 - startup - [INFO] - Scanning network for GivEnergy Devices...

2024-08-18T09:46:51.258789828Z 2024-08-18 10:46:51,258 - startup - [INFO] - No inverters found...

2024-08-18T09:46:51.265682420Z 2024-08-18 10:46:51,265 - startup - [INFO] - Setting up invertor: 1

Reverted back to the old version for now, which has solved the issue.

givtcp:
    container_name: givtcp
    image: britkat/giv_tcp-ma:2.4.2
    restart: unless-stopped
    ports:
      - "6345:6345"                   # REST (add increments for each inverter)
      - "3005:3005"                   # This should match the WEB_DASH_PORT ENV below
    environment:
      - TZ=Europe/London
      - NUMINVERTORS=1
      - INVERTOR_IP_1=192.168.[redacted]
      - INVERTOR_AIO_1=True
      - INVERTOR_AC_1=False
      - NUMBATTERIES_1=0              # Number of battery modules installed and connected to the above inverter
      - MQTT_OUTPUT=True              # "True" if you want to publish your data to MQTT, "False" otherwise
      - MQTT_ADDRESS=mosquitto
      - MQTT_USERNAME=[redacted]
      - MQTT_PASSWORD=[redacted]
      - MQTT_TOPIC=GivEnergy/Data     # Root topic to publish data to. If left blank it will default to GivEnergy/<invertor_serial_number>
      - MQTT_PORT=1883                # Port of your existing broker, leave as "1883" for internal broker
      - HA_AUTO_D=True
      - LOG_LEVEL=Error
      - HOSTIP=192.168.[redacted]
      - WEB_DASH=True                 # Enable the wed dashboard
      - WEB_DASH_PORT=3005            # Port to serve the web dashboard on
    volumes:
      - /docker-volumes/givenergy/config:/config/GivTCP
    privileged: true
@G6EJD
Copy link

G6EJD commented Aug 18, 2024

What setting did you make for inverter type ?

@G6EJD
Copy link

G6EJD commented Aug 18, 2024

Did you use the givtcp configurator? check your log file

@gazm2k5
Copy link
Author

gazm2k5 commented Aug 19, 2024

What setting did you make for inverter type ?

All my settings are above. I've deployed as a container, and have not used a Home Assistant addon as I don't run HA OS. I don't know what the configurator is, I'm assuming that's the front end configuration page you get in Home Assistant?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants