martinville / solarsynkv2

Addon to integrate your Sunsynk account with home assistant.
MIT License
18 stars 10 forks source link

/run.sh: line 401: [: ==: unary operator expected #18

Closed tarranjones closed 3 months ago

tarranjones commented 3 months ago

Hi

not sure what i did wrong but i'm getting the following error /run.sh: line 401: [: ==: unary operator expected https://github.com/martinville/solarsynkv2/blob/6b7b7e456fe15706300a4f1a6c67e73f2f4e67c2/run.sh#L401

------------------------------------------------------------------------------
Attempting to update the following sensor entities
Sending to http://http://homeassistant.local:8123/:8123
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Reading settings entity -> solarsynk_*****_inverter_settings
------------------------------------------------------------------------------
/run.sh: line 401: [: ==: unary operator expected
Helper entity input_text.solarsynk_*****_inverter_settings has no value. Therefore no inverter setting will be sent for change.
Clearing previously set temporary settings.
Fetch complete for inverter: *****
All Done! Waiting  300  sesonds to rinse and repeat.

also just noticed "sesonds" is a typo,

tarranjones commented 3 months ago

spotted the issue

Sending to http://http://homeassistant.local:8123/:8123 i had filled out the host with the full url.

Still not sure why it caused a bash error.

martinville commented 3 months ago

There isn't any proper error checks. So sometimes it will behave illogically.

Glad you came right. Cheers