My Garden Irrigation

Yes, you explained well.
First of all, raining_now should be under “binary_sensor:” not “sensor:”

try to change it and se if it works, otherwise we’ll try something different.

Hi @klogg and all!
I’m succesfully using the great irrigation system, but still have some minor issues. Let me explain the first one, to start with.
On the GENERAL tab I’ve a problem with output I cannot understand which variable is not initialized correctly. The page error is:

tap_action:
  action: toggle
type: custom:button-card
group_expand: false
hold_action:
  action: None
double_tap_action:
  action: None
layout: vertical
size: 50%
color_type: icon
show_name: true
show_state: false
show_icon: true
show_units: true
show_label: false
show_entity_picture: false
show_live_stream: false
card_size: 3
entity: input_boolean.logging_irrigation
name: Logging
icon: null
lock:
  enabled: false
  duration: 5
  unlock: tap
styles:
  grid:
    - grid-template-areas: '"i n check_box"'
    - grid-template-columns: |
        [[[
          var columns = '2';
          if (columns == '1')
            {
              var icon_size = '10%';
              var check_box_size = '8%';
            }
          else
            {  
              var icon_size = '20%';
              var check_box_size = '16%';
            }
          return icon_size + ' auto ' + check_box_size;
        ]]]
    - grid-template-rows: 1fr
  img_cell:
    - padding: 0em
  card:
    - font-family: |
        [[[
          return states['input_text.irrigation_ui_font_family'].state
        ]]]
    - padding: 0em
    - padding-right: |
        [[[
          var columns = '2';
          if (columns == '1')
            return '1em';
        ]]]
    - padding-left: |
        [[[
          var columns = '2';
          if (columns == '1')
            return '1em';
        ]]]
    - height: 2.5em
    - font-size: 14px
    - border-radius: 5px
  name:
    - justify-self: start
  custom_fields:
    check_box:
      - padding: 0.4em
      - justify-self: null
custom_fields:
  check_box: |
    [[[
      if (entity.state == 'on')
          return '<ha-icon icon="mdi:checkbox-marked"></ha-icon>';
      else
          return '<ha-icon icon="mdi:checkbox-blank-outline"></ha-icon>';
    ]]] 
state:
  - value: 'on'
    name: null
    icon: mdi:notebook-check
    styles:
      card:
        - background-color: var(--primary-background-color)
        - border: 1px solid var(--accent-color)
  - value: 'off'
    name: null
    icon: mdi:notebook-remove-outline
    styles:
      card:
        - color: var(--secondary-text-color)
        - box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.19)
      icon:
        - color: var(--secondary-text-color)
default_color: var(--primary-text-color)
color_off: var(--paper-item-icon-color)
color_on: var(--paper-item-icon-active-color)

And a screen as well:

Ideas why?

Same for “Rainfall today” (SOLVED - IT WAS CAUSED BY THE “Using SmartWeather (show stations)” ENABLED. DIABLING IT, THE PROBLEM WENT AWAY. MAYBE I NEED TO CHECK THOSE SETTINGS):

In this case I have the variable defined:

Second issue:

If I enable the “Adjust for temperature” it never starts. Is there a way to debug? I.e. as soon it starts, it shows in the logs what it’s happening and why it starts or not?
Forecast is showing me always ZERO so set to highest instead:

Thanks!

Simon

Hello,
Nothing works for me, I have reinstalled several times and I have all the integrations

Ideas

Steph

Hi,
i’ve this situation about history temperature data:

Where could i check to know why the same temperature shows in all days?

This is my recorder:

Thank you so much.
Regards,

Alessandro

Hi everyone,
I have installed the latest version (november 2022).
I have one thing strange. The NEXT RUNE line is displaying nothing.
Could someone help me to solve this issue ?

Capture d’écran 2023-05-04 221308

Thanks.!

Any help please.

Have you tried to change theme? starting with the default, just try to se if the problem is the same.

Hi Simon,
i had the same error on my tablets running fully kiosk browser.
To get rid of it, i changed the include file
config\lovelace\garden_irrigation\settings\item_settings_check_box_with_entity_icon.yaml
change line 83 from:
if (entity.state == ‘on’)
to
if (‘on’ == ‘on’)
the error message is gone, only caveat is that the checkbox looks not checked.
but turning the selection on or off is working.
i’d really like to know why the original code does not work…
the entity itself seems to be ok.
the include file for the checkbox is working as it should when called from section_settings_rainfall.yaml.
Why it does not work on fully kisosk browser but does work on firefox and chrome is also a mystery for me.
Maybe kloggy can write a workaround? or button-card itself is buggy wihin its template processing?
hope this helps anyway…

Hi, thanks for your message. Same situation with the default theme.

What is the state of these?

sensor.irrigation_next_run
input_boolean.irrigation_cycle1_running
input_boolean.irrigation_cycle2_running
input_boolean.irrigation_cycle3_running
input_text.irrigation_ui_font_family
input_boolean.irrigation_master_control_switch
binary_sensor.irrigation_cycle_start_clash
input_boolean.irrigation_testing_mode

You can also try temporarily changing the tap_action on line 94 from:

tap_action:
  action: >
    [[[
      if (states['binary_sensor.irrigation_cycle_start_clash'].state == 'on')
        return 'fire-dom-event';
      else
        return 'none';
    ]]]

to:

tap_action:
  action: fire-dom-event

Do you get a mouse pointer over the ‘empty’ area and when you click it a pop up box?

Hi @klogg, thanks for your answer. i finally found the problem. It was my mistake. When I have updated the files in the “package” directory I have saved the old files in a “old” directory in the same location (package). It seems that it has impacted the solution.

Hi @klogg @ManniTom @xefil, I have the same issue but with Google Chrome browser. Did you found a final solution ?

Yeah it will have duplicated everything. You might have a load of entities now that end in _2

In case you don’t know already, if you want to keep an old package you can rename the folder like this

.garden_irrigation

The preceding fullstop will tell HA to ignore the folder.

Which issue are you talking about?

I am talking about the problem described by @xefil

This is the user names for notifications.
What do you see when you click ‘Edit user names’ on the General Settings page?

image

This is from the docs:

Seems that it has to do with the check-box.
try to change the include file
config\lovelace\garden_irrigation\settings\item_settings_check_box_with_entity_icon.yaml
change line 83 from:
if (entity.state == ‘on’)
to
if (‘on’ == ‘on’)

this disables only the display of the checkmark within checkbox, but in my case the error was gone.

klogg

ilmaino1984

Jun '21

klogg:
"view_garden_version2.yaml is just a standard Lovelace view so you can move it wherever you need to in order to fit your preference.
e.g. Put it where your other view files are and edit ui-lovelace.yaml appropriately. "

Could you please help me with this?
Irrigation works and can be started by clicking on the side bar, but my tablets normally don’t show the sidebar becuse my standard dashboard needs all th space. so i’d like to start the irrigation view by another means, maybe as an additional view of the standard dashboard, which is in storage mode. i could also use the tap action of a button card to start it, but i don’t know how.
In the config directory i have the irrigation.yaml file, containing:

views:
  - !include lovelace/view_garden_irrigation.yaml

and in config/lovelace i have the unchanged file view_garden_irrigation.yaml

i added this to configuration.yaml:

lovelace_gen:

lovelace:
  mode: storage
  dashboards:
    lovelace-irrigation:
      mode: yaml
      title: Bewaesserung2
      icon: mdi:flower
      show_in_sidebar: true
      filename: irrigation.yaml

how can i start irrigation without using the side bar?

When you say “Irrigation works and can be started” do you mean that the view is displayed? If so I am not sure why it does not show already.

This…

…is exactly what I have.

views:
  - !include lovelace/view_system_information.yaml
  - !include lovelace/view_alarm.yaml
  - !include lovelace/view_garden_irrigation.yaml

image

However I use mode: yaml and have never used or looked into storage mode so I don’t know what the implications are with that.

OK, i made 2 screenshots…

This:

is the top part of my standard dashboard. i used storage mode since i did not need yaml mode so far.
at the top row i can select different views. i cannot select irrigation.

i can turn on the menu on the left side, but this distorts my HOME view, and i think it’s not very user friednly, and then it shows this:

here i can start Bewässerung2 , which is my name for your irrigation prorgam.

it would be much nicer to be able to start irrigation with a tab of the standard dashboard, but i don’t know how…