MickMake / HomeAssistantAddons

MIT License
49 stars 28 forks source link

What am I missing? #53

Closed devonuto closed 2 months ago

devonuto commented 2 months ago

Have added the repo, set all the config with my sungrow account, then i hit start. It seems to start, but I cannot see any devices. Then it seems to stop all by itself a few minutes later, no obvious errors.

Not sure what the mqtt user is all about? Is there another step that I am supposed to be doing?

image image image

Is this required to set up the unit, what are the ps_id and ps_key? Feels like there is a step or two missing explaining the relationships of these things? image

devonuto commented 2 months ago
s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started [09:08:51] INFO: Setting up GoSungrow config ... [09:08:52] INFO: Writing GoSungrow config ... Using config file '/data/.GoSungrow/config.json' [09:08:52] INFO: Login to iSolarCloud using gateway https://augateway.isolarcloud.com/ ... New config: +-------------------+------------+---------------------------+--------------------------------+-----------------------------------+ FLAG SHORT FLAG ENVIRONMENT DESCRIPTION VALUE (* = DEFAULT) +-------------------+------------+---------------------------+--------------------------------+-----------------------------------+ --config GOSUNGROW_CONFIG GoSungrow: config file. /data/.GoSungrow/config.json --debug GOSUNGROW_DEBUG GoSungrow: Debug mode. false * --quiet GOSUNGROW_QUIET GoSungrow: Silence all false * messages. --timeout GOSUNGROW_TIMEOUT Web timeout. 1m0s --user -u GOSUNGROW_USER SunGrow: api username. XXXXXXX@gmail.com --password -p GOSUNGROW_PASSWORD SunGrow: api password. XXXXXXXXXX --appkey GOSUNGROW_APPKEY SunGrow: api application key. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX * --host GOSUNGROW_HOST SunGrow: Provider API URL. https://augateway.isolarcloud.com/ * --token-expiry GOSUNGROW_TOKEN_EXPIRY SunGrow: last login. * --save -s GOSUNGROW_SAVE Save output as a file. false * --dir GOSUNGROW_DIR Save output base directory. * --mqtt-user GOSUNGROW_MQTT_USER HASSIO: mqtt username. mqtt --mqtt-password GOSUNGROW_MQTT_PASSWORD HASSIO: mqtt password. XXXXXXXXX --mqtt-host GOSUNGROW_MQTT_HOST HASSIO: mqtt host. core-mosquitto --mqtt-port GOSUNGROW_MQTT_PORT HASSIO: mqtt port. 1883 --modbus-user GOSUNGROW_MODBUS_USER Modbus username. * --modbus-password GOSUNGROW_MODBUS_PASSWORD Modbus password. * --modbus-host GOSUNGROW_MODBUS_HOST Modbus host. * --modbus-port GOSUNGROW_MODBUS_PORT Modbus port. 502 * +-------------------+------------+---------------------------+--------------------------------+-----------------------------------+ Error: appkey is incorrect 'er_invalid_appkey' Usage: GoSungrow api login [flags] �

GoSungrow api login Flags: Use "GoSungrow help flags" for more info. Additional help topics: ERROR: appkey is incorrect 'er_invalid_appkey' 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

Found these errors in the docker container it spun up. I didn't modify the appkey, am I supposed to?

devonuto commented 2 months ago

Tried the Android app key, seems to work.

devonuto commented 2 months ago

NOpe, spoke too soon GoSungrow mqtt run
Flags: Use "GoSungrow help flags" for more info. Additional help topics: ERROR: Post "https://augateway.isolarcloud.com/v1/devService/getDeviceList": unexpected EOF 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

devonuto commented 2 months ago

Will close as it looks like duplicate https://github.com/MickMake/GoSunGrow/issues/101