My Garden Irrigation

they communicate via api.

after you install ESPHome and flash a device you have to add to to the Integrations (Settings->Integrations-ESPHome) and put the IP address of the ESP device. It’s not mandatory, but reccomended. In some cases, like mine having two different HA for prod and test and two different ESPHome, you have to.

1 Like

Hi Klogg and everyone,

I’m pretty new to HA and still learning my way around.
I’ve sucessfully integrated the package for HA-Irrigation-V1, but I’m struggling with the integrations of the ui in lovelace.

Here is what I have done:

  • set lovelace mode to yaml in configuration.yaml
  • created ui-lovelace.yaml and put some stuff in it (copy of storage-ui)
  • added !include lovelace/view_garden_version1.yaml in that file

Upon refreshing Lovelace, I get “Unknown Error” and nothing shows up.

This is what my ui-lovelace.yaml looks like:

resources:
  - type: module
    url: /hacsfiles/lovelace-card-mod/card-mod.js
  - type: module
    url: /hacsfiles/button-card/button-card.js
  - type: module
    url: /hacsfiles/lovelace-multiple-entity-row/multiple-entity-row.js
  - type: module
    url: /hacsfiles/config-template-card/config-template-card.js
  - type: module
    url: /hacsfiles/stack-in-card/stack-in-card.js
  - type: module
    url: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js
title: FliessenHome
views:
  - badges:
      - entity: binary_sensor.updater
      - entity: person.!secret
      - entity: sensor.fritz_netmonitor
      - entity: sensor.freisitz_temperature
      - entity: sensor.freisitz_humidity
      - entity: sun.sun
      - entity: person.!secret
      - entity: person.!secret
      - entity: sensor.germany_coronavirus_deaths
      - entity: sensor.germany_coronavirus_recovered
    cards:
      - entity: sensor.freisitz_temperature
        graph: line
        name: Freisitz Temperatur
        type: sensor
      - entity: weather.fliessenhome
        type: weather-forecast
      - entity: sensor.freisitz_humidity
        name: Freisitz Humidity
        type: sensor
      - entity: sensor.germany_coronavirus_confirmed
        type: sensor
      - hold_action:
          action: more-info
        show_icon: true
        show_name: true
        state_color: true
        tap_action:
          action: toggle
        type: button
      - entities:
          - entity: sensor.freisitz_temperature
        hours_to_show: 24
        refresh_interval: 0
        type: history-graph
      - entity: climate.thermostat_4
        name: Zion's room
        type: thermostat
      - entities:
          - entity: sensor.ultrasonic_sensor_brunnen
        title: Brunnenstand
        type: entities
    path: default_view
    title: Home
  - !include lovelace/view_garden_version1.yaml

Also, I noticed that there is a reference to includes/titles.yaml . I’ve read in a post that this is part of Kloggs standard setup. How do I best deal with it?

I’d really like to get this to run - I think its the best irrigation for HA I’ve come across so far.

Firstly, your resources section needs to be in your configuration.yaml. See here but you need something like this:

lovelace:
  mode: yaml
  resources:
    - url: /local/my-custom-card.js
      type: module
    - url: /local/my-webfont.css
      type: css

As for the titles.yaml, I had forgotten that I now use that in Version1 (I should update the readme on GitHub). You can get the file titles.yaml from the Version 2 repo on Github and you need to put in a folder called includes. That folder needs to be in whatever folder the view_garden_version1.yaml is in.

If I were you, for simplicity, until you are comfortable with how this all works I would create a folder lovelace in your config folder. Move the file view_garden_version1.yaml into it. Create a folder in the lovelace folder called includes and put titles.yaml in there.

This should work although ultimately you might want to create a folder structure more suitable to your specific needs.

Hi!

Your work here seams to be pretty impressive but unfortunately, I’m not able to install it.

After adding the required integrations and plugins in HACS, changing to yaml mode and adding time.date to confugration.yaml, I tried adding your repo under settings in HACS using kloggy/HA-Irrigation-Version2 (tried with integration and plugin).

It always gave me

An error occurred while processing
Exception: HacsException
Message: Repostitory structure for master is not compliant
Could not add this repository, make sure it is compliant with HACS.

One time, it loaded something and now I have a new view in lovelace named “Unnamed View”, but it’s neither in ui-lovelace.yaml, nor in configuration.yaml.

Any idea why i receive this error and why I get an empty view, called like described?

Thanks!

It is not integrable using HACS. you need to copy/paste lovelace dir inside root of your config, and other inside your package folder

Hi, i’ve update my tutorial that show how to convert a commercial 2 wires rain sensor into a smart rain sensor. This time using a Shelly door sensor.
The tutorial is in italian but very simple to understand.

See it here https://www.domoticadiy.it/2020/05/sensore-pioggia-shelly-door-sensor-home-assistant-mqtt/

1 Like

That is brilliant. Thanks. I may well look into doing that myself.
That is a great use of the magnetic door sensor too. There seems to be no end to the way they can be adapted!

I think you should post that on its own. I’m sure it will be useful to a wider audience than just this thread.

Thanks again for the inspiration and of course please let me know how well it works.

1 Like

@itajackass Thanks I added the contents from includes to /lovelace directory, now having /locelace/includes and /lovelace/includes_garden.

Also, I created a packages folder and put the content there, now having /packages/irrigation.

When I check config now, I get a expected a dictionary for dictionary value @ data['packages']['notify']

Guess that’s related to the fact that you need to add notifyers?
But how? I can not find any meaningful documentation on helpers.

Thanks a lot for your help!

Look here.

And specifically in this case here.

Thanks, added

input_text:
text1:
name: notifications_user1_name
text2:
name: notifications_user2_name

But still getting the previous error.

Any idea what’s that related to?

I have just uploaded the latest copy of Version 2 to GitHub.

Amongst other very small changes, it includes a complete restructuring of the Lovelace code which should make it easier to adapt to your own use.

3 Likes

Hi at all, I put the little project of rain sensor using a magnetic door sensor here: Commercial 2 wires rain sensor converted to smart sensor with Shelly d/w

Of course italian version is better explained… :slight_smile:

Hi Klogg, sorry probably something I have done, but I cannot get it to work…

Fresh install downloaded this morning…

If have the following error…

When I click on the first cycle box…

Unable to find referenced entities input_boolean.irrigation_show_cycle1

I have looked at the code, lovelace/view_garden_version2.yaml line 54 calls for includes_garden/schedules/page_schedules.yaml

Same issue but different lines for the general, temperature and rainfall settings boxes

I don’t seem to have that… (and I can’t find it on Github).

No. It is something I have done. Or rather didn’t do.

I restructured the entire Lovelace code to make it simpler (hopefully) but I forgot to upload the new view file. Only a small oversight :roll_eyes: :blush:

I’ve put the correct version up now.
Sorry about that!


Also, see the Prerequisites, I have also just uploaded a ‘complete’ example SmartWeather config to help if you use that.

Hi Klogg,

Excellent, works now! Just needed to add hui-element…

Haven’t added the smartweather yet, but that looks amazing!! I will add that later on.

I have a weatherstation in my garden, I use weewx to take the data and publish it to online weather systems and also to publish it to mqtt, so I will, over a bit of time, look at how I can use my own data in my system. If I get anything, I will try and post it!

Excellent and many thanks.

1 Like

Good catch.
I’ve added it to the docs.

Thanks.

1 Like

Hi Klogg,

Me again, sorry to be a pain. I have updated to the newer version with the time picker card. I have changed the names of the cycles to test1 and test 2. Test 1 works fine and I can change the start time no problem. When I go to change the start time on Test2 (cycle2) it gives me in the popup the start time for cycle1 and the header says Test 1 start time.

screenshotAtUploadCC_1589192028456

Clicking on start time 10:30 on the above screen shot give me…

screenshotAtUploadCC_1589192028457

Replying to myself!!! @klogg

lovelace/templates/garden/cycles/section_cycle1_2_schedule.yaml

line 29 - 33

          #=== Start Time
          - !include
            - item_cycle_start_time.yaml
            - entity: sensor.irrigation_cycle{{ cycle }}_start_time_in_seconds
              cycle: 1

Should read

          #=== Start Time
          - !include
            - item_cycle_start_time.yaml
            - entity: sensor.irrigation_cycle{{ cycle }}_start_time_in_seconds
              cycle: {{ cycle }}

Doing this now works…

1 Like

Yes, you’re right.
I overlooked that when I simplified the Lovelace.
Thanks.

Also I saw from your screenshot that the shadows were all wrong with the default theme. This is new since I restructured the Lovelace to use hui-element.

I have changed all the files now so that it should look correct.

1 Like