-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Connection Failed - Not all arguments converted during string formatting #187
Comments
Hi there, I am also having possibly the same problem myself? After nearly 12 months running seamlessly and no changes to config now I have this in my log: s6-rc: info: service legacy-services successfully stopped Wondering if a recent HA update is the problem? Thanks in advance for any clues that may help Cheers Steve |
I have the same problem: Environment: docker-compose of the sungather part: sungather:
image: bohdans/sungather
restart: unless-stopped
ports:
- '18087:8080'
volumes:
- /volume2/docker/PRODUCTION/energy-monitoring/sungather/config/config.yaml:/config/config.yaml
- /volume2/docker/PRODUCTION/energy-monitoring/sungather/logs:/logs
environment:
TZ: "Europe/Berlin"
PUID: 1060
PGID: 100 This is my config.yaml: inverter:
host: 10.80.23.13 # [Required] IP Address of the Inverter or Dongle
port: 8082 # [Optional] Default for modbus is 502, for http is 8082
# timeout: 10 # [Optional] Default is 10, how long to wait for a connection
# retries: 3 # [Optional] Default is 3, how many times to retry if connection fails
# slave: 0x01 # [Optional] Default is 0x01
# scan_interval: 30 # [Optional] Default is 30
connection: http # [Required] options: modbus, sungrow, http
model: "SH8.0RT" # [Optional] This is autodetected on startup, only needed if detection issues or for testing
# See model list here: https://github.com/bohdan-s/SunGather#supported
# serial: xxxxxxxxxx # [Optional] This is autodetected on startup, only needed if detection issues or for testing, used as a unique ID
# smart_meter: True # [Optional] Default is False, Set to true if inverter supports reading grind / house consumption
# use_local_time: False # [Optional] Default False, Uses Inventer time, if true it uses PC time when updating timestamps (e.g. PVOutput)
# log_console: INFO # [Optional] Default is WARNING, Options: DEBUG, INFO, WARNING, ERROR
# log_file: DEBUG # [Optional] Default is OFF, Options: OFF, DEBUG, INFO, WARNING, ERROR
# level: 1 # [Optional] Set the amount of information to gather
# 0 = Model and Solar Generation,
# 1 (default) = Useful data, all required for exports,
# 2 everything your Inverter supports,
# 3 Everything from every register
# If you do not want to use a export, you can either remove the whole configuration block
# or set enabled: False
exports:
# Print Registers to console, good for debugging / troubleshooting
- name: console
enabled: True # [Optional] Default is False
# Runs a simple Webserver showing Config and last read registers
# Access at http://localhost:8080 or http://[serverip]:8080
- name: webserver
enabled: True # [Optional] Default is False
# port: 8080 # [Optional] Default is 8080
# Output data to InfluxDB
- name: influxdb
enabled: True # [Optional] Default is False
url: "http://10.80.22.5:18086" # [Optional] Default URL is http://localhost:8086
token: "<REDACTED>" # [Required] API Token OR Username:Password (for influxdb v1.8x comment it out and use username + password)
# username: # [Optional] Username if not using token
# password: # [Optional] Password if not using token
org: "Default" # [Required] InfluxDB Organization (for influxdb v1.8x this will be ignored)
bucket: "SunGather" # [Required] InfluxDB Bucket (for influxdb v1.8x this is the database name)
measurements: # [Required] Registers to publish to bucket
- point: "power"
register: daily_power_yields
- point: "power"
register: export_to_grid
- point: "power"
register: import_from_grid
- point: "temp"
register: internal_temperature
- point: "power"
register: daily_pv_export
- point: "power"
register: load_power_hybrid
- point: "power"
register: battery_level
- point: "power"
register: total_active_power
- point: "power"
register: export_to_grid
- point: "power"
register: import_from_grid
- point: "power"
register: daily_direct_energy_consumption
- point: "power"
register: daily_battery_charge_from_pv
- point: "status"
register: run_state
- point: "status"
register: last_reset
- point: "power"
register: total_power_yields
- point: "power"
register: phase_a_voltage
- point: "status"
register: daily_running_time
- point: "power"
register: pv_power_of_today
- point: "power"
register: daily_pv_energy_yields
- point: "power"
register: direct_power_consumption_today_pv
- point: "power"
register: direct_power_consumption_pv
- point: "power"
register: export_power_from_pv_today
- point: "power"
register: export_power_from_pv
- point: "power"
register: battery_charge_power_from_pv_today
- point: "power"
register: battery_charge_power_from_pv
- point: "power"
register: total_pv_generation
- point: "power"
register: total_pv_export
- point: "power"
register: export_power_hybrid
- point: "power"
register: total_battery_charge_from_pv
- point: "power"
register: total_direct_energy_consumption
- point: "power"
register: battery_power
- point: "power"
register: self_consumption_of_day
- point: "power"
register: daily_import_energy
- point: "power"
register: total_import_energy
- point: "power"
register: daily_export_energy
- point: "status"
register: start_stop
- point: "status"
register: timestamp
- point: "power"
register: daily_import_from_grid
- point: "power"
register: daily_export_to_grid My Firewall rule from my DMZ to the smart inverter is set to allow TCP/IP to Port 80 and 8082: My error message is as follows:
|
I have the same problem original after a firmware update of my SunGrow system today.
|
Please see for my local fix of the problem: bohdan-s/SungrowModbusWebClient#5 (comment) |
Hi,
I'm able to connect over HTTP but can't fetch actual data. Seems like an unhandled exception when parsing:
The text was updated successfully, but these errors were encountered: