logo elektroda
logo elektroda
X
logo elektroda

HA, problem with adding weather station and Xiaomi BLE gateway

ja_pizgam 408 0
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20356430
    ja_pizgam
    Level 10  
    Hello, I have been playing with HA for a while, I have added grafana and influsdb and hacs, so far I only have graphs from 4 energy meters zamel MEW-01, but I wanted to add my own weather station which sends data to ecowitt.net servers unfortunately after configuring in the application in my own server according to the instructions of the plugin a message about incorrect confiirmation appears, here log:
    Quote:
    Logger: aiohttp.server
    Source: custom_components/ecowitt/config_flow.py:38
    Integration: Ecowitt Weather Station
    First occurred: 24 December 2022 19:40:28 (4 occurrences)
    Last logged: 24 December 2022 19:40:40

    Error handling request
    Traceback (most recent call last):
    File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
    File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
    File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
    File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
    File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
    File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
    File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 81, in ban_middleware
    return await handler(request)
    File "/usr/src/homeassistant/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
    File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
    result = await result
    File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 180, in post
    return await super().post(request, flow_id)
    File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper
    result = await method(view, request, data, *args, **kwargs)
    File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
    File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 281, in async_configure
    result = await self._async_handle_step(
    File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 368, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
    File "/config/custom_components/ecowitt/config_flow.py", line 74, in async_step_initial_options
    info = await validate_input(self.hass, user_input)
    File "/config/custom_components/ecowitt/config_flow.py", line 38, in validate_input
    if entry.data[CONF_PORT] == data[CONF_PORT]:
    KeyError: 'port'


    Additionally I wanted to add myself a gateway from xiaomi to which I have 11 temperature sensors connected, I want to do this due to the fact that I had to upload a custom fw to calibrate the temp and humidity because they overestimate by more than 2°C, unfortunately here also a problem arises, I do everything according to the instructions and when I try to connect to unlock the telnet I get the following error:
    Quote:
    Logger: custom_components.xiaomi_gateway3.core.mini_miio
    Source: custom_components/xiaomi_gateway3/core/mini_miio.py:345
    Integration: Xiaomi Gateway 3 (documentation, issues)
    First occurred: 24 December 2022 19:41:33 (1 occurrences)
    Last logged: 24 December 2022 19:41:33


    192.168.88.243 | Device offline


    I'll add that both devices are online all the time, I started to suspect that the problem might be that I have HA set up on Hyper-V on my PC which is on 24/7, I noticed that the addressing in HA was different from my network, it was given the address 172.30.32.1 where my home network is running 192.168.88.0. I did a bit of research into the network settings in this hyper-v and added a new virtual network adapter, this time selecting my physical one from the list (previously it was just "default" as created by the virtual machine wizard). Unfortunately this didn't solve the problem, although now I can see after calling "nestat" that ha is connecting to the local IP of my PC and not from some 172 as before...
    I was also thinking whether buying a Raspberry Pi would solve the problem, but here again there is the question of how to then transfer the current database to it, and I also see that there is a problem with availability and used hardware costs around 500PLN (we are talking about the 4B version with 1 GB RAM).
    Do you have a problem with Raspberry? Ask question. Visit our forum Raspberry.
  • ADVERTISEMENT
ADVERTISEMENT