johanwilliams / org.openhab.binding.fibaro

Fibaro Binding for Openhab
6 stars 8 forks source link

Call Fibaro api during bridge initialize #3

Closed johanwilliams closed 7 years ago

johanwilliams commented 7 years ago

To verify connectivity to Fibaro (using ip, username and password) it would be good to call the Fibaro api during bridge initialize(). The /api/settings/info call for example returns some useful information which potentially could be used to populate additional properties of the bridge.

If the call is successful the bridge status could be set to ONLINE. If communication fails the bridge is OFFLINE

johanwilliams commented 7 years ago

The fibaro api now gets called during initialise.