Replies: 2 comments 4 replies
-
I did a quick parse of councils that look to be special case. Edit: Ignore this. My method for finding special case councils was flawed. There are plenty of special case councils that take the UPRN field. |
Beta Was this translation helpful? Give feedback.
-
I've been thinking about this some more and, contrary to what I said in the original post, I think the three input fields should remain
House number should just take house number or house name. I'd love a common function that reliably found a house name or number in an address - I'll see if one exists. For the URL substitution councils, I'd prefer to see a solution like Melton that simply pulls the information with
Although there maybe some work to ensure that users existing configurations work with that system. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In a previous post, I mentioned that I felt the onboarding process could be smoother. An area I think could be improved is the standardisation of input fields, such that council scripts expect them in the same format. At the moment, there are a number of special cases which I think could be removed.
To be clear, I'm not suggesting adding or removing input fields, just standardising the format. Inputs remain:
The Home Assistant dialog box only asks for those that are needed, as I believe is the way it works currently.
My motivation is that I believe onboarding of the addon would be smoother, particularly if input fields could be auto-populated using API calls to endpoints such as Postcodes.io although I'll leave that topic for another thread.
Of the 316 councils, 203 use
UPRN
, which is already in a standardised format. 134 of them usepostcode
, which is also already in a standardised format. It's the other input fields that I think could be improved.Examples
Islington - URL Subtitution
This is a fairly common format where a URL needs to be substituted with the UPRN, but the script could simply append the UPRN to the URL itself. It only requires UPRN.
Charnwood - URL Substitution
A variation on the URL substitution, where the UPRN could be inserted in the URL in the script.
Bromley - Custom URL
This is a special case that I don't think needs to be. You can just navigate to their website and enter your postcode, e.g. BR1 1RY.
Castlepoint - Four Digit Code
This would work by using an address, albeit by switching to Selenium.
Midlothian - House Number
In this example, a house number is expected in the house number field.
Richmond - Street Name
In this example, a road name is expected in the house number field.
Brighton - Carefully Formatted Street Name
In this example, a carefully formatted address is required in the house number field. In all three examples, if
address
was used instead ofhouse_number
then there would be consistency and scripts could fuzzy-search to the correct entry on the council website.Google Calendar (Public) - iCal Lookup
Interesting! This presumably could be standardised by having an entry per council, ignoring all inputs, then the script using the appropriate URL.
Considerations
Standardisation
By standardising the format of input fields and avoiding special cases, I think it lays a path for a smoother onboarding and simplification of documentation.
Happy to do some legwork in modifying council scripts to work with a standard formatting.
Beta Was this translation helpful? Give feedback.
All reactions