tlskinneriv / awnet_local

Enables local support for Ambient Weather personal weather stations.
28 stars 5 forks source link

9 dew point last rain feels like #10

Closed tlskinneriv closed 2 years ago

tlskinneriv commented 2 years ago

Closes #9

Added

Fixed

guarddog13 commented 2 years ago

Wow... you're awesome...thank you.

guarddog13 commented 2 years ago

I assume that last rain will populate when the sensor detects rain, as it now reports as unknown and not unavailable.

tlskinneriv commented 2 years ago

Thanks! That's correct. The current logic mirrors the behavior mentioned in the API ref: last time hourlyrainin > 0. Because hourlyrainin (the sensor it depends on) is available, it reports Unknown instead of Unavailable. I suppose the previous time possibly could have been looked up, but this seemed to be the most straightforward way to do it that mirrored the API behavior. With that in mind, I did read up on restoring state after a restart, so I may incorporate that in for at least that value to make it persist through a restart of HA.

capritzl commented 1 year ago

I am probably just overlooking it but where do I perform the following actions? I dont see a place to add the name and MAC address.

**_Configuration is performed via the Home Assistant user interface. You will need the following information:

Name: a friendly name for the device to display in Home Assistant MAC: the MAC address for the device_**