Giter VIP home page Giter VIP logo

cowboy-ha's Introduction

Hi there πŸ‘‹

πŸ‘· Check out what I'm currently working on

🌱 My latest projects

πŸ”­ Latest releases I've contributed to

πŸ”¨ My recent Pull Requests

⭐ Recent Stars

cowboy-ha's People

Contributors

dependabot[bot] avatar elsbrock avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

bruedigam

cowboy-ha's Issues

Update bike always on?

System Health details

System Information

version core-2024.1.2
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.6
os_name Linux
os_version 6.1.70-haos
arch aarch64
timezone Europe/Brussels
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.33.0
Stage running
Available Repositories 1387
Downloaded Repositories 63
HACS Data ok
Home Assistant Cloud
logged_in true
subscription_expiration 1 september 2024 om 02:00
relayer_connected true
relayer_region eu-central-1
remote_enabled true
remote_connected true
alexa_enabled false
google_enabled true
remote_server eu-central-1-2.ui.nabu.casa
certificate_status ready
instance_id b1faf5fe25294683b133fceb8d454eea
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 11.3
update_channel stable
supervisor_version supervisor-2023.12.0
agent_version 1.6.0
docker_version 24.0.7
disk_total 113.9 GB
disk_used 66.2 GB
healthy true
supported true
board odroid-n2
supervisor_api ok
version_api ok
installed_addons Samba share (12.2.0), AirSonos (4.1.0), Check Home Assistant configuration (3.11.0), File editor (5.7.0), Mosquitto broker (6.4.0), Z-Wave JS UI (3.1.0), Home Assistant Google Drive Backup (0.112.1), Advanced SSH & Web Terminal (17.0.2), Zigbee2MQTT (1.35.1-1), Cloudflared (5.0.0), ESPHome (2023.12.5), Silicon Labs Multiprotocol (2.4.2), motionEye (0.20.0), deCONZ (6.22.0), HiSense Air Conditioners (0.3.17)
Dashboards
dashboards 6
resources 42
views 19
mode storage
Recorder
oldest_recorder_run 30 december 2023 om 09:25
current_recorder_run 8 januari 2024 om 14:27
estimated_db_size 1578.10 MiB
database_engine sqlite
database_version 3.41.2

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

update_available always seems to be active, even after applying the battery update of today

Reproduction steps

  1. Update available activated
  2. Checking the bike & performing battery update
  3. No changes visible in component
  4. Reload component manually: all good
  5. One hour later: update available again
  6. Checking the bike: no updates at all
    ...

Debug logs

Nothing visible in the logs

Diagnostics dump

No response

No issue, just confirmation it's working!

No issue, I just accidentally found this repo, which only exists since a few hours, while doing my research to find out what exists for Home Assistant for Cowboy bikes. Tried it out and it just works! Awesome work, reaaaaaally appreciate that you're sharing this!

Login failed with Unknown error occurred

System Health details

System Information

version core-2024.5.3
installation_type Home Assistant Container
dev false
hassio false
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 5.4.0-169-generic
arch x86_64
timezone Europe/Berlin
config_dir /config
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Dashboards
dashboards 2
resources 0
views 0
mode storage
Recorder
oldest_recorder_run 11. Mai 2024 um 11:55
current_recorder_run 11. Mai 2024 um 14:01
estimated_db_size 0.23 MiB
database_engine sqlite
database_version 3.44.2

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

This issue happens in my main instance and in this test instance. HA runs in a docker container. The integration was copied into the config/custom_components/ path. When I fill in my credentials and hit send the error "Unknown error occurred" appears. When I use wrong credetials the correct error "Invalid authentication" appears.

Reproduction steps

  1. Search integration on the integration site
  2. Enter username + password
  3. Hit send

Debug logs

ha-test  | 2024-05-11 14:07:17.803 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140668467743296] sascha from 192.168.1.122 (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0): Received {'type': 'config_entries/flow/progress', 'id': 76}
ha-test  | 2024-05-11 14:07:17.803 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140668467743296] sascha from 192.168.1.122 (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0): Sending b'{"id":76,"type":"result","success":true,"result":[]}'
ha-test  | 2024-05-11 14:07:17.805 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140668467743296] sascha from 192.168.1.122 (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0): Received {'type': 'manifest/get', 'integration': 'cowboy', 'id': 77}
ha-test  | 2024-05-11 14:07:17.805 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140668467743296] sascha from 192.168.1.122 (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0): Sending b'{"id":77,"type":"result","success":true,"result":{"domain":"cowboy","name":"Cowboy","codeowners":["@elsbrock"],"config_flow":true,"dependencies":[],"documentation":"https://github.com/elsbrock/cowboy-ha","homekit":{},"iot_class":"cloud_polling","issue_tracker":"https://github.com/elsbrock/cowboy-ha/issues","requirements":[],"ssdp":[],"version":"v1.0.1","zeroconf":[],"is_built_in":false}}'
ha-test  | 2024-05-11 14:07:17.825 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140668467743296] sascha from 192.168.1.122 (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0): Received {'type': 'frontend/get_translations', 'language': 'de', 'category': 'config', 'integration': ['cowboy'], 'id': 78}
ha-test  | 2024-05-11 14:07:17.825 DEBUG (MainThread) [homeassistant.helpers.translation] Cache miss for de: {'cowboy'}
ha-test  | 2024-05-11 14:07:17.826 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140668467743296] sascha from 192.168.1.122 (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0): Received {'type': 'frontend/get_translations', 'language': 'de', 'category': 'selector', 'integration': ['cowboy'], 'id': 79}
ha-test  | 2024-05-11 14:07:17.826 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140668467743296] sascha from 192.168.1.122 (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0): Received {'type': 'frontend/get_translations', 'language': 'de', 'category': 'title', 'integration': ['cowboy'], 'id': 80}
ha-test  | 2024-05-11 14:07:17.829 DEBUG (MainThread) [homeassistant.components.http.auth] Authenticated 192.168.1.122 for /api/config/config_entries/flow using bearer token
ha-test  | 2024-05-11 14:07:17.830 DEBUG (MainThread) [homeassistant.helpers.http] Serving /api/config/config_entries/flow to 192.168.1.122 (auth: True)
ha-test  | 2024-05-11 14:07:17.838 DEBUG (SyncWorker_1) [homeassistant.util.json] JSON file not found: /config/custom_components/cowboy/translations/de.json
ha-test  | 2024-05-11 14:07:17.841 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140668467743296] sascha from 192.168.1.122 (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0): Sending b'[{"id":78,"type":"result","success":true,"result":{"resources":{"component.cowboy.config.abort.already_configured":"Device is already configured","component.cowboy.config.error.cannot_connect":"Failed to connect","component.cowboy.config.error.invalid_auth":"Invalid authentication","component.cowboy.config.error.unknown":"Unexpected error","component.cowboy.config.step.user.data.password":"Password","component.cowboy.config.step.user.data.username":"Username"}}},{"id":79,"type":"result","success":true,"result":{"resources":{}}}]'
ha-test  | 2024-05-11 14:07:17.842 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140668467743296] sascha from 192.168.1.122 (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0): Sending b'{"id":80,"type":"result","success":true,"result":{"resources":{"component.cowboy.title":"Cowboy"}}}'
ha-test  | 2024-05-11 14:07:17.845 DEBUG (MainThread) [homeassistant.loader] Importing platforms for cowboy executor=['config_flow'] loop=[] took 0.01s
ha-test  | 2024-05-11 14:07:36.786 DEBUG (MainThread) [homeassistant.components.http.auth] Authenticated 192.168.1.122 for /api/config/config_entries/flow/012c5fec2b17a208b448ee8a6f79e712 using bearer token
ha-test  | 2024-05-11 14:07:36.786 DEBUG (MainThread) [homeassistant.helpers.http] Serving /api/config/config_entries/flow/012c5fec2b17a208b448ee8a6f79e712 to 192.168.1.122 (auth: True)
ha-test  | 2024-05-11 14:07:37.353 ERROR (MainThread) [aiohttp.server] Error handling request
ha-test  | Traceback (most recent call last):
ha-test  |   File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request
ha-test  |     resp = await request_handler(request)
ha-test  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ha-test  |   File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 543, in _handle
ha-test  |     resp = await handler(request)
ha-test  |            ^^^^^^^^^^^^^^^^^^^^^^
ha-test  |   File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 114, in impl
ha-test  |     return await handler(request)
ha-test  |            ^^^^^^^^^^^^^^^^^^^^^^
ha-test  |   File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
ha-test  |     return await handler(request)
ha-test  |            ^^^^^^^^^^^^^^^^^^^^^^
ha-test  |   File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
ha-test  |     return await handler(request)
ha-test  |            ^^^^^^^^^^^^^^^^^^^^^^
ha-test  |   File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
ha-test  |     return await handler(request)
ha-test  |            ^^^^^^^^^^^^^^^^^^^^^^
ha-test  |   File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 88, in ban_middleware
ha-test  |     return await handler(request)
ha-test  |            ^^^^^^^^^^^^^^^^^^^^^^
ha-test  |   File "/usr/local/lib/python3.12/site-packages/aiohttp_session/__init__.py", line 199, in factory
ha-test  |     response = await handler(request)
ha-test  |                ^^^^^^^^^^^^^^^^^^^^^^
ha-test  |   File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 295, in auth_middleware
ha-test  |     return await handler(request)
ha-test  |            ^^^^^^^^^^^^^^^^^^^^^^
ha-test  |   File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
ha-test  |     response = await handler(request)
ha-test  |                ^^^^^^^^^^^^^^^^^^^^^^
ha-test  |   File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
ha-test  |     result = await handler(request, **request.match_info)
ha-test  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ha-test  |   File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 71, in with_admin
ha-test  |     return await func(self, request, *args, **kwargs)
ha-test  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ha-test  |   File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 222, in post
ha-test  |     return await super().post(request, flow_id)
ha-test  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ha-test  |   File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper
ha-test  |     return await method(view, request, data, *args, **kwargs)
ha-test  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ha-test  |   File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 122, in post
ha-test  |     result = await self._flow_mgr.async_configure(flow_id, data)
ha-test  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ha-test  |   File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 368, in async_configure
ha-test  |     result = await self._async_configure(flow_id, user_input)
ha-test  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ha-test  |   File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 414, in _async_configure
ha-test  |     result = await self._async_handle_step(
ha-test  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ha-test  |   File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 573, in _async_handle_step
ha-test  |     result = await self.async_finish_flow(flow, result.copy())
ha-test  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ha-test  |   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1350, in async_finish_flow
ha-test  |     title=result["title"],
ha-test  |           ~~~~~~^^^^^^^^^
ha-test  | KeyError: 'title'

Diagnostics dump

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.