Monitor Taiwan's flood water levels in real-time with Home Assistant
This integration provides real-time flood water level monitoring across Taiwan. Data is sourced from the Water Resources Dataset of Civil IoT Taiwan.
Note
No API Key Required: This integration uses public data and does not require an API key.
Tip
Finding Sensors: Visit TW-FloodMap to find sensor codes and names for your area.
Debugging: If you encounter any issues, enable debug mode in the integration settings, reproduce the problem, then open an issue with the log file.
- Monitor flood water levels from sensors deployed across Taiwan
- Access data from the Civil IoT Taiwan water resources network
- Automatic updates every 5 minutes
FloodSense Sensors provide:
- Water Level: Flood depth in centimeters (cm)
- Location: GPS coordinates (latitude/longitude)
- Station Information: Station name, code, and ID
- Authority Type: Managing authority information
- Update Time: Last data update timestamp
- Open HACS in your Home Assistant instance
- Search for "Taiwan FloodSense"
- Click "Download"
- Restart Home Assistant
- Download the
tw_floodsensefolder from this repository - Copy it to your
custom_componentsdirectory - Restart Home Assistant
Before adding sensors, you need to find the sensor code and name:
- Visit TW-FloodMap
- Browse or search for sensors in your area
- Note down the Station Code and Station Name
- Navigate to Settings → Devices & Services
- Click Add Integration
- Search for Taiwan FloodSense
- Enter the Station Code and Station Name you found
- Click Submit
The sensor entities will be automatically created!
After initial setup, you can add more flood sensors:
- Go to your Taiwan FloodSense integration
- Click Add FloodSense Sensor
- Enter the Station Code and Station Name
- Click Submit
- Wait a few seconds for the automatic reload to complete
- Check Home Assistant logs for any errors
- Try manually reloading the integration
- Verify the Station Code is correct
- Double-check the Station Code at TW-FloodMap
- Ensure you're entering the exact code (case-sensitive)
- The sensor may be temporarily offline or removed
Enable debug logging by adding to your configuration.yaml:
logger:
default: info
logs:
custom_components.tw_floodsense: debugContributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
- Data provided by Water Resources Dataset of Civil IoT Taiwan
If you encounter any issues or have questions:
- Check the Issues page
- Enable debug mode and collect logs
- Open a new issue with detailed information