-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
input_text limited to 255 Characters so won't Hold Five alert IDs #56
Comments
Thanks for the report. The NWS changed the alert ID format at some point and made them much longer. I think I can fix it by adding a second input_text helper and splitting the alert IDs between two input_text helpers. It should only take some minor adjustments to the UI Notification automation. |
Thanks for your attention to this. We happen to have some residual/reappearing winter that is generating a flurry ;) of NWS alerts that make for good testing. Might you use an |
We could pipe in a replace() to remove Before
After
I have not see urn:oid:2.49.0.1.840.0. changed in year plus of using weatheralerts. |
I'm trying your suggestion @mjnovotny82. We should be having a full compliment of alerts over the next few days. I'd also considered using an attribute for the data instead of a state, but haven't pursued it. |
I fixed this by adding
on line 193 of sensor.py the full line looks like The URN (universal registered number) never changes for NWS and is specific to the USA. Then you don't need yaml |
Version, Current, V1.3?
(Note, I renamed entities to the 'motherlode' zone from 'weatheralerts'
** Bug **
Alert IDs are stored in an input_text helper. These are limited to 255 characters total, but the total concatenated string for five alerts is 349 Characters. For example:
Log
Input_text definition:
Input_text action from automation:
The text was updated successfully, but these errors were encountered: