Hell, it’s working. I have not configured rain and weather adj. yet or the notification
It will take some time to get all the logic and replace it with my own, as I do not have nor Darksy nor smartweather
Let me reproduce my steps for others, as it was not obvious for me and I made a lot of dummy stops :
- Read slowly and carefully https://github.com/kloggy/HA-Irrigation-Version2/blob/master/README.md
- Than start working with this https://github.com/kloggy/HA-Irrigation-Version2/blob/d04481b7a6844802ab5f61691da27755fed8a2e4/prerequisites.yaml
- I have added time sensor, weather_just_icon, also a “input_text” but not sure what is its purpose.
- Check all here https://github.com/kloggy/HA-Irrigation-Version2/blob/d04481b7a6844802ab5f61691da27755fed8a2e4/Pre-Requisites.md
- sun2
- all lovelace interface mods and check!! double check that its loaded in HACS. Totally recomended to have it here!
- notifs were skipped, time configured in step 2, recorder is in default config, fonts and theme skipped.
Here is my part in the main config file
# its neede for the irrigation
binary_sensor:
- platform: sun2
monitored_conditions:
- elevation
input_text:
notifications_user1_name:
min: 0
max: 20
notifications_user2_name:
min: 0
max: 20
browser_mod:
lovelace_gen:
homeassistant:
packages: !include_dir_named package
# End of irrigation staff
and here are some more sensors (from other include in my case)
# https://github.com/kloggy/HA-Irrigation-Version2/blob/d04481b7a6844802ab5f61691da27755fed8a2e4/prerequisites.yaml
# Those are sensors needed to run smart irrigation code
#==================
#=== Time and Date
#==================
- platform: time_date
display_options:
- 'time'
- 'date'
#=================================================================
#=== Create the icons for Weather Outlook on the Cycle Start time
#=================================================================
- platform: template
sensors:
weather_just_icon:
friendly_name: "mdi Real Weather Icon"
icon_template: >-
{% if is_state("sensor.dark_sky_current_icon","clear-day") %} mdi:weather-sunny
{% elif is_state("sensor.dark_sky_current_icon","clear-night") %} mdi:weather-night
{% elif is_state("sensor.dark_sky_current_icon","rain") %} mdi:weather-rainy
{% elif is_state("sensor.dark_sky_current_icon","snow") %} mdi:weather-snowy
{% elif is_state("sensor.dark_sky_current_icon","fog") %} mdi:weather-fog
{% elif is_state("sensor.dark_sky_current_icon","sleet") %} mdi:weather-partly-snowy-rainy
{% elif is_state("sensor.dark_sky_current_icon","wind") %} mdi:weather-windy
{% elif is_state("sensor.dark_sky_current_icon","cloudy") %} mdi:weather-cloudy
{% elif is_state("sensor.dark_sky_current_icon","partly-cloudy-day") %} mdi:weather-partly-cloudy
{% elif is_state("sensor.dark_sky_current_icon","partly-cloudy-night") %} mdi:weather-night-partly-cloudy
{% elif is_state("sensor.dark_sky_current_icon","hail") %} mdi:weather-hail
{% elif is_state("sensor.dark_sky_current_icon","lightning") %} mdi:weather-lightning
{% elif is_state("sensor.dark_sky_current_icon","thunderstorm") %} mdi:weather-lightning-rainy
{% endif %}
value_template: >-
{% if is_state("sensor.dark_sky_current_icon","clear-day") %} weather-sunny
{% elif is_state("sensor.dark_sky_current_icon","clear-night") %} weather-night
{% elif is_state("sensor.dark_sky_current_icon","rain") %} weather-rainy
{% elif is_state("sensor.dark_sky_current_icon","snow") %} weather-snowy
{% elif is_state("sensor.dark_sky_current_icon","fog") %} weather-fog
{% elif is_state("sensor.dark_sky_current_icon","sleet") %} weather-partly-snowy-rainy
{% elif is_state("sensor.dark_sky_current_icon","wind") %} weather-windy
{% elif is_state("sensor.dark_sky_current_icon","cloudy") %} weather-cloudy
{% elif is_state("sensor.dark_sky_current_icon","partly-cloudy-day") %} weather-partly-cloudy
{% elif is_state("sensor.dark_sky_current_icon","partly-cloudy-night") %} weather-night-partly-cloudy
{% elif is_state("sensor.dark_sky_current_icon","hail") %} weather-hail
{% elif is_state("sensor.dark_sky_current_icon","lightning") %} weather-lightning
{% elif is_state("sensor.dark_sky_current_icon","thunderstorm") %} weather-lightning-rainy
{% endif %}
- Create a folder for package files and move there all from the repo https://github.com/kloggy/HA-Irrigation-Version2/tree/master/package
- Include all of step 4 by some line in config like:
homeassistant:
packages: !include_dir_named package
- Move all files from https://github.com/kloggy/HA-Irrigation-Version2/tree/master/lovelace
to the root of the Config folder. Or be ready to do a lot of editing.
- In my case, I have manual include for each tab for Lovelace UI. So I included this view to my dashboard view_garden_version2.yaml
I skipped all needed reloads and config tests and tests for sensors. I think it’s clear.
Hope it will help someone.
Sounds simple, but took me 3 hours )