-
Notifications
You must be signed in to change notification settings - Fork 0
[WIP] Updates to the WAQI component #1
base: dev
Are you sure you want to change the base?
Conversation
@andrey-git, are you still actively maintaining this component? I would love to help maintain it, as well as as its dependent Python library (see: https://github.com/sbach/waqi-client-async, for a proposal). My initial goal for these updates was to provide support for configuration from the UI. |
The config_flow needs some headers, these can be added via the file |
Question: what is the reason that you backend code cannot find my city? |
I've turned your code into a custom_component, see here: https://github.com/bouwew/waqi-test I will try to extend the config_flow, add a choice between:
|
Thanks @bouwew for having a look at my experiments, the suggestions, and iterating over my work! I had started coding this as I was in the same position as you, where the in-tree integration stopped working reliably. While I am still using it for my own needs, I did originally intend to further the work and attempt to mainline my changes. I later noticed this custom component and figured out they may be more complete that my work. I will take a look at the state of things, just like you seem to be doing. I think it would be worth it to start discussing with everyone and get some updates mainline. I would certainly love to participate! |
Provided we end-up furthering my work, I will be sure to test and cover this case. |
Thanks for getting back to me! FYI, I have the config_flow with choices between searching and entering the feed-id working :) |
Looks like this is working: https://github.com/bouwew/waqi-test I can add my local feed with this: https://api.waqi.info/feed/A113074/?token=xxxxxxxxx I still need to see if the added local feed and the single added station (added via keyword search) update properly every 900 secs. The error-handling is still TODO. |
Is there anything I could do to assist with moving this along? I'm not much of a programmer but could help test at least. |
A couple of minor suggestions/requests:
|
@xrxca I've added the option to enter the station number/id directly (via the config flow). |
Thanks, worked perfectly, the here option picked a station miles away,
but I was able to use the @- station id to get the local sensor.
…On 2023-05-27 01:26, Bouwe Westerdijk wrote:
Please try my updated version: https://github.com/bouwew/waqi-test.
|
Draft changes checklist
SensorEntity
are defined.Breaking change
Proposed change
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: