Home assistant support for TaiWater Fee
The method was provided by Jason Lee.
User the integration by your own risk
You can install component with HACS custom repo: HACS > Integrations > 3 dots (upper top corner) > Custom repositories > URL: tsunglung/TaiWaterFee
> Category: Integration
Or manually copy taiwater_fee
folder to custom_components
folder in your config folder.
Then restart HA.
You need to grab a cookie and three tokens.
1. Basic steps for grabbing
- Open the development tools (use Google chrome/Microsoft Edge) [Crtl+Shift+I / F12]
- Open the Network tab
- Open the TaiWater Fee Web site, Enter the Water ID and input Verification code.
- Search for "fee" (for me only three itemes shows up, choose the first one)
- Go to "headers" -> "request headers"
- copy the all characters in the field Cookie (mark with the mouse and copy to clipboard)
- Go to "headers" -> "from data"
- copy the 36 characters like "5e8e1218-59e1-42f0-bd5d-bde8be4ae30e" in the field "model.Index" (mark with the mouse and copy to clipboard)
- copy the 108 characters like "XXXXXXXXXXXXX....." in the field "__RequestVerificationToken" (mark with the mouse and copy to clipboard)
- Copy the 5 characters in the field "VerificationCode" (mark with the mouse and copy to clipboard)
2. Please use the config flow of Home Assistant
- With GUI. Configuration > Integration > Add Integration > TaiWater Fee
- If the integration didn't show up in the list please REFRESH the page
- If the integration is still not in the list, you need to clear the browser cache.
- Enter Water ID without dash.
- Paste the cookie and three tokens into the indicated field, all fields are Required.
The cookie and tokens will expired after hours. If you saw the https_result is 403, you need get the new cookie and tokens again. Then got to Configuration > Integration > TaiWater Fee > Options, enter the info of cookie and tokens.