Yes, it works fine. There is a minor issue with rain indication from the web API in my location but I’m working to have my own accurate rain sensor and integrate it to the solution.
Due to issues with rain indication from Open Weather API I’ve installed a rain sensor with tasmota
Any user that has the same issue with API?
an up to date Wiki with local rain sensor
wiki-look for local rain sensor
Hey Hanoh et al,
Great to see this - thanks. I have a relatively simple question.
I installed a while ago (Nov?) but never got around to setting it up properly. I’m getting an odd error:
Invalid config for [wb_irrigation]: invalid latitude for dictionary value @ data['wb_irrigation']['latitude']. Got 144.892581. (See /config/configuration.yaml, line 130).
Line 130 contains my latitude:
wb_irrigation:
api_key: !secret openweather_api_key
rain_factor: 90
max_ev: 3000
min_ev: -1500.0
name: "wb_irrigation"
debug: true
longitude: !secret accurate_longitude
latitude: !secret accurate_latitude
elevation: !secret accurate_elevation
taps:
# - name: switch.back_lawn_sprinkler
# - name: switch.front_lawn_sprinkler
- name: switch.side_garden_sprinkler
You can see from the error message that my latitude is 144.892581 which I’ve checked and re-checked on google and other sites (although perhaps I have it wrong).
What am I doing wrong?
you are mixing latitude and longitude
latitude = vol.All(
vol.Coerce(float), vol.Range(min=-90, max=90), msg=“invalid latitude”
)
longitude = vol.All(
vol.Coerce(float), vol.Range(min=-180, max=180), msg=“invalid longitude”
)
see my last wiki on the openweather_api_key, the rain sensor does not work for me anymore, so I’ve added a way to add external sensor
Thank-you @hhaim. Such a stupid mistake - I just assumed the order that the example I’d copied was lat, long - didn’t even read it. Much appreciated.
Re openweather - one thing at a time for beginners like me I did see the post, luckily I have a weather station on my roof so I presume I’ll be ok on that front. I’ll just need to figure that out.
One question I do have is regarding installation. It looks like the code structure has changed completely - am I missing something. I’m looking to download from GitHub - hhaim/hass: home assistant and appdaemon scripts and configuration file, but I don’t see what I’d expect to see. The instructions Weather based irrigation · hhaim/hass Wiki · GitHub say to clone the project (which I think I did previously), but if I do that I won’t have the init.py which I need, right?
@colebatchd I’ve updated the wiki (code location was moved)
local weather station is supported so you can provide the rain sensor name
Thanks - much appreciated.
Up to the AppDaemon part now. I’m more than happy to make a write-up when I finish from a newbie’s perspective.