Juffle
July 27, 2024, 7:45pm
1
The Environment Canada integration summary sensor is truncated when it exceeds the 255-character limit; therefore, it should be set as an attribute.
Additionally, the URL of warnings should be an attribute of the warnings sensor. Right now, it is not handled.
<warnings url="https://meteo.gc.ca/warnings/report_f.html?qcrm4">
<event type="statement" priority="low" description="BULLETIN MÉTÉOROLOGIQUE SPÉCIAL" expiryTime="20240728075814" url="https://meteo.gc.ca/warnings/report_f.html?qcrm4#1552010311393739907202407260504">
tom_l
July 28, 2024, 12:59am
2
This seems more like an issue than a feature request. Please open an issue here:
Deach
May 1, 2025, 8:10pm
3
An attempt to add this as a feature request results in a reply is that it’s an issue.
Whatever it is, truncating weather descriptions especially alerts of any kind makes the integration fairly useless.
I understand that the core “Weather” moved away from using attributes but it was obviously not thought out well and didn’t take into consideration the 255 character limitation of sensors.
So….
What do I/We have to do to get this fixed?
tom_l
May 1, 2025, 9:52pm
4
This issue was fixed in 2025.3.
opened 08:29PM - 30 Mar 25 UTC
closed 08:56PM - 30 Mar 25 UTC
integration: environment_canada
### The problem
The `summary` entity, e.g. `port_perry_summary` is currently li… mited to 256 characters. Longer forecasts are cut off mid sentence.
As one example, here is a part of the [xml file](https://dd.weather.gc.ca/citypage_weather/xml/ON/s0000630_e.xml) for Port Perry, Ontario which has a forecast that is more than 256 characters long:
```xml
<forecast>
<period textForecastName="Tonight">Sunday night</period>
<textSummary>
Cloudy with 60 percent chance of showers or drizzle this evening. Showers beginning late this evening. Risk of a thunderstorm late this evening and after midnight. Wind becoming southeast 20 km/h gusting to 40 early this evening then southwest 30 gusting to 50 after midnight. Low 6.
</textSummary>
```
### What version of Home Assistant Core has the issue?
core-2025.3.4
### What was the last working version of Home Assistant Core?
_No response_
### What type of installation are you running?
Home Assistant Container
### Integration causing the issue
environment_canada
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/environment_canada
### Diagnostics information
[history.csv](https://github.com/user-attachments/files/19527416/history.csv)
### Example YAML snippet
```yaml
```
### Anything in the logs that might be useful for us?
```txt
```
### Additional information
_No response_
You should use the attribute method as states for all integrations are limited to 255 characters.