Skip to content

Commit

Permalink
clarified docu even more
Browse files Browse the repository at this point in the history
  • Loading branch information
marq24 committed Oct 18, 2023
1 parent 9a16892 commit afc9353
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,12 @@ configured WiFi and should work as before (submit the data to Tibber) - the LED

### 5. Final testing [do not continue if you did not completed this final step]

After you have successfully reset the Tibber bridge, and you have set the `webserver_force_enable` to `true` the web
frontend should now be accessible via <http://tibber_bridge/>. If this is not going to work for you, you might like to
check the IP-Address of your Tibber Pulse Bridge in your Router - The IP __is not__ the `10.133.70.1` any longer!
After you have successfully reset the Tibber bridge (AP mode is OFF and you are back in normal operation mode). Since you
have set the `webserver_force_enable` to `true` the web frontend should now be still accessible via the following URL:
<http://tibber_bridge/>.

If the hostname 'tibber-bridge' is not going to work for you in your LAN, you might like to check the IP-Address of your
Tibber Pulse Bridge in your Router. __The IP *is not* the `10.133.70.1` any longer!__

Personally I have configured my router in a way, that the Pulse Bridge gets allways the same IP assigned. I just can
recommend to do the same.
Expand Down
1 change: 0 additions & 1 deletion custom_components/tibber_local/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import asyncio
import logging
import json

import voluptuous as vol

Expand Down
10 changes: 4 additions & 6 deletions custom_components/tibber_local/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import asyncio
import logging
import time

import voluptuous as vol

Expand Down Expand Up @@ -38,7 +37,6 @@ class TibberLocalConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):

def __init__(self):
self._errors = {}
self._data_available = False

def _host_in_configuration_exists(self, host) -> bool:
if host in tibber_local_entries(self.hass):
Expand All @@ -51,16 +49,16 @@ async def _test_connection_tibber_local(self, host, pwd):
try:
bridge = TibberLocalBridge(host=host, pwd=pwd, websession=websession)
await bridge.update()
self._data_available = len(bridge._obis_values.keys()) > 0
if self._data_available:
_data_available = len(bridge._obis_values.keys()) > 0
if _data_available:
self._serial = bridge.serial
_LOGGER.info("Successfully connect to local Tibber Pulse Bridge at %s", host)
return True
else:
await asyncio.sleep(2)
await bridge.update()
self._data_available = len(bridge._obis_values.keys()) > 0
if self._data_available:
_data_available = len(bridge._obis_values.keys()) > 0
if _data_available:
self._serial = bridge.serial
_LOGGER.info("Successfully connect to local Tibber Pulse Bridge at %s", host)
return True
Expand Down

0 comments on commit afc9353

Please sign in to comment.