liangleslie / nea_sg_weather

Home Assistant integration for NEA Weather forecasts
MIT License
27 stars 8 forks source link

Feature request #3

Closed MoonshineSG closed 2 years ago

MoonshineSG commented 2 years ago

Few features that would be usfefull.

liangleslie commented 2 years ago

These features are low priority for now.

1) rain sensors from data.gov are not very well named (a lot of sensors are given a sensor ID for their names and it is not clear where they are sited unless the user is able to decode the lat/lon) so it is not very usable except for advanced users who know which sensors they want to reference. Have not prioritized this, though advanced users could build a simple json sensor to poll for this and extract relevant locations using template sensors using existing platforms in HA.

2) this is a UI change and you will need to make a feature request to the maintainer of the weather card. The last updated info is already stored as an attribute in most sensors.

3) there is a update_entity core service in HA that should update the sensors and a custom service for this is not needed.

MoonshineSG commented 2 years ago
  1. There is a map that displays the location of each sensor, even if it has a code as name. But no worries, a RestSensor in HA has solved my need to have the rain info.
  2. good to know
  3. will give this a try.

thanks!

liangleslie commented 2 years ago

@MoonshineSG - have added rainfall sensors into v1.4. not too sure how best to display this via the existing frontend, so it doesn't feel the most useful at the moment.

MoonshineSG commented 2 years ago

maybe can be used as sensor for automation

liangleslie commented 2 years ago

sure that is possible, but just note that the poll frequency is set to 15 min by default so it might not be sensitive enough to detect passing showers for automation. you could increase the frequency but i'm not sure if there are limits to the data.gov.sg API calls...