jsiegenthaler / homebridge-eosstb

A homebridge plugin for the EOS set-top box as used by Sunrise, Telenet, Ziggo, Virgin Media and maybe more in various countries on the Horizon Go (HGO) platform
https://github.com/jsiegenthaler/homebridge-eosstb
32 stars 4 forks source link

During startup/restart homebridge: no country code #25

Closed corvankruchten closed 3 years ago

corvankruchten commented 3 years ago

Describe The Bug: During restart of homebridge the countryside is not recognized in the config, although it is there.

To Reproduce: After update to version 1.1.1 it seems like the config.json is misinterpreted

Expected behavior: Earlier version the plugin worked as expected.

Logs:

[01/04/2021, 11:40:23] [HomeWizard] Automatic refresh every 1 mn
[01/04/2021, 11:40:23] [SensiboAC] Initializing SensiboAC platform...
[01/04/2021, 11:40:23] [eosstb] Initializing eosstb platform...
[01/04/2021, 11:40:23] [eosstb] homebridge-eosstb config incomplete: "country" missing. Initialization aborted.
[01/04/2021, 11:40:23] [HomeWizard] Running : homebridge-homewizard 0.1.0
[01/04/2021, 11:40:30] [HomeWizard] Successfully retrieved accessories from HomeWizard
Show the Homebridge logs here, remove any sensitive information.

Plugin Config: { "platform": "eosstb", "devices": [ { "name": "EOSSTB", "country": "NL", "username": "nxxxx@xxxxxx.com", "password": "Mypassword" } ] }

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

jimbo-l commented 3 years ago

country etc should be specified outside of devices, e.g. after platform:

{
    "platform": "eosstb",
    "country": "nl",
    "username": "xxxx",
    "password": "yyyy",
    "devices": [
        {
            ...
        }
    ]
}
corvankruchten commented 3 years ago

So stupid of me… I overlooked the config.json at least a hundred times, but I did not see it. This did the job, it is working now…..

Op 1 apr. 2021, om 12:51 heeft jimbo-l @.***> het volgende geschreven:

country etc should be specified outside of devices, e.g. after platform, e.g.:

{ "platform": "eosstb", "country": "nl", "username": "xxxx", "password": "yyyy", "devices": [ { ... } ] }

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jsiegenthaler/homebridge-eosstb/issues/25#issuecomment-811825518, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2LUGFX2TXKRSSIQ5PYKU3TGRF2JANCNFSM42GYR4SQ.

jsiegenthaler commented 3 years ago

Glad you got it sorted. Thanks @jimbo-l for helping