stephan192 / hochwasserportal Goto Github PK
View Code? Open in Web Editor NEWHome Assistant integration for Länderübergreifendes Hochwasser Portal
License: MIT License
Home Assistant integration for Länderübergreifendes Hochwasser Portal
License: MIT License
Hallo,
ich wohne in Gera und in der Liste gibt es Gera 2.
Nur über ST_576520 wird die Warnstufe mit ausgegeben. Über TH_57652.0 nicht.
Hi Stephan,
thank you for this nice sensor, this is great when livining next to the Rhine.
How are level and stage defined? -- Would you mind adding this to the README.md for clarification.
My assumption would be:
Level: depth of the shipping channel
Stage: flood warning stage?
But this is just from the icons and units, and I could not find the definition in the API.
Thank you.
I've got a warning, that the yaml config is beeing to removed, but I don't have a yaml config for this integration anymore. I also can't delete the integration, because there is still the repair to be solved.
When parsing and handling date and time, the timezone is ignored, and HA uses UTC internally, which means that a wrong value is displayed later.
For example, a value of "03.01.2024 23:45 MEZ" from the BW API gets parsed using convert_to_datetime("03.01.2024 23:45", "%d.%m.%Y%H:%M"), this then creates a python datetime object, which HA assumes to be UTC. When displayed in the UI it assumes it is UTC and converts it to CET, to become "4. Januar 2024 um 00:45:00"
The following water levels cannot currently be called up:
RP_25800506 Diez / Lahn
RP_25800608 Kalkhofen / Lahn
If you called it with the following code, it worked without any problems until 8 weeks ago:
#Level Diez Lahn
sensor:
#Level Kalkhofen Lahn
Thank you for your nice integration.
Having HW_TXT and ZEIT parameters would be nice as well.
I added the Hochwasserportal Integration and data from German rivers are shown but not for Swiss rivers.
German rivers I configured and data are correctly shown are: BY_16003003, BY_16003502, BY_16005701
Swiss rivers I configured and NO data are shown are: CH_2087, CH_2152, CH_2110, CH_2018
Any idea why the Swiss river do not work? The only difference in the configuration is the pegel-id.
Betrifft das HWRB Salzderhelden / Leine (NI_10110)
Der Sensor Durchfluss wird abgerufen,
Volumen/Füllstand und Warnstufe nicht.
Kann daran liegen, dass der json-String bei Speicherbauwerken anders aufgebaut ist.
Sehr hilfreiche Integration übrigens, vielen Dank dafür.
https://www.pegelonline.nlwkn.niedersachsen.de/Pegel/Binnenpegel/ID/325
https://m.pegelonline.wsv.de/gast/stammdaten?pegelnr=48800108
Would have added it to pegel.md myself, but don't know how the IDs are translated (Like Koldingen/Leine ID478 to NI_4887101).
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: custom_components.hochwasserportal.sensor
Source: custom_components/hochwasserportal/sensor.py:53
Integration: hochwasserportal (documentation, issues)
First occurred: 13:28:11 (33 occurrences)
Last logged: 13:28:12
Init API - RP_27100700 - Failed!
Init API - RP_26560103 - Failed!
Init API - RP_25100300 - Failed!
Init API - RP_23900200 - Failed!
Init API - RP_26200505 - Failed!
Hello,
I have installed it and added 2 sensors for the platform:
After restarting I see no sensor with "hochwasserportal". What do I have to expect?
HA 2023.6.3
Following Errors in the Logfile:
2023-07-03 17:00:14.678 ERROR (SyncWorker_0) [custom_components.hochwasserportal.sensor] Init API - SH_9610010 - Failed!
2023-07-03 17:00:14.708 ERROR (SyncWorker_24) [custom_components.hochwasserportal.sensor] Init API - BW_215 - Failed!
2023-07-03 17:00:14.717 ERROR (SyncWorker_11) [custom_components.hochwasserportal.sensor] Init API - SH_9510070 - Failed!
2023-07-03 17:00:14.789 ERROR (SyncWorker_4) [custom_components.hochwasserportal.sensor] Init API - BW_115 - Failed!
2023-07-03 17:00:14.795 ERROR (SyncWorker_3) [custom_components.hochwasserportal.sensor] Init API - SH_9530020 - Failed!
2023-07-03 17:00:14.840 ERROR (SyncWorker_14) [custom_components.hochwasserportal.sensor] Init API - MV_9650043 - Failed!
2023-07-03 17:00:14.840 ERROR (SyncWorker_19) [custom_components.hochwasserportal.sensor] Init API - SH_110006 - Failed!
2023-07-03 17:00:14.845 ERROR (SyncWorker_10) [custom_components.hochwasserportal.sensor] Init API - BW_7 - Failed!
2023-07-03 17:00:14.882 ERROR (SyncWorker_6) [custom_components.hochwasserportal.sensor] Init API - BW_116 - Failed!
2023-07-03 17:00:14.888 ERROR (SyncWorker_5) [custom_components.hochwasserportal.sensor] Init API - SH_9510095 - Failed!
2023-07-03 17:00:14.896 ERROR (SyncWorker_9) [custom_components.hochwasserportal.sensor] Init API - BW_147 - Failed!
2023-07-03 17:00:14.924 ERROR (SyncWorker_23) [custom_components.hochwasserportal.sensor] Init API - BW_9016 - Failed!
2023-07-03 17:00:14.932 ERROR (SyncWorker_20) [custom_components.hochwasserportal.sensor] Init API - BW_40 - Failed!
2023-07-03 17:00:14.938 ERROR (SyncWorker_12) [custom_components.hochwasserportal.sensor] Init API - BW_38 - Failed!
2023-07-03 17:00:14.960 ERROR (SyncWorker_13) [custom_components.hochwasserportal.sensor] Init API - BW_70 - Failed!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.