My Garden Irrigation

I’ve same issue

Done as suggested, but the result doesn’t change … doesn’t open popups

Also to get mine to work i had to do a hard reset ie:- restart my mini pc for it to make the changes take effect.

i run proxmox with HA in a vm.

I use a raspberry pi4, I rebooted several times but it still doesn’t work … and also used different browsers … and the smartphone app

hello, this morning going to check the irrigation dashboard I found this error:

ButtonCardJSTemplateError: TypeError: Cannot read property 'state' of undefined in 'var statestr = (entity === undefined || entity.state === undefined) ? 'undefined' : entity.state; ...'
tap_action:
  action: fire-dom-event
  browser_mod:
    command: popup
  service_data:
    title: Irrigation Controller
    hide_header: true
    card:
      type: vertical-stack
      cards:
        - type: markdown
          content: >-
            Enter the name of the sensor for your irrigation controller WiFi
            signal strength.


            Leave blank to reset to default.
          style: |
            ha-card {
              font-family: {{ states('input_text.irrigation_ui_font_family') }};
              font-size: 16px;
            }
        - type: entities
          entities:
            - entity: input_text.irrigation_external_sensor_controller_wifi
              name: Sensor Name
            - entity: input_number.irrigation_controller_offline_wait
              name: Seconds To Wait When Offline
            - type: section
          style: |
            ha-card {
              font-family: {{ states('input_text.irrigation_ui_font_family') }};
            }
        - type: markdown
          content: You can disable the switches to prevent irrigation while testing.
          style: |
            ha-card {
              font-family: {{ states('input_text.irrigation_ui_font_family') }};
              font-size: 16px;
            }
        - type: entities
          entities:
            - entity: input_boolean.irrigation_disable_switches
          style: |
            ha-card {
              font-family: {{ states('input_text.irrigation_ui_font_family') }};
            }
    style:
      $: |
        .mdc-dialog {
            backdrop-filter: blur(5px);
          }
        .mdc-dialog .mdc-dialog__container .mdc-dialog__surface {
            border-radius: 1em;
            box-shadow: 0em 0em 0.5em;
          }
type: 'custom:button-card'
group_expand: false
hold_action:
  action: none
double_tap_action:
  action: none
layout: vertical
size: 30%
color_type: icon
show_name: true
show_state: true
show_icon: true
show_units: true
show_label: false
show_entity_picture: false
show_live_stream: false
card_size: 3
entity: sensor.esphome_irrigation_controller_wifi_signal
name: |
  [[[
    var statestr = (entity === undefined || entity.state === undefined) ? 'undefined' : entity.state;
    var unit_om = (statestr != 'undefined' && entity.attributes.unit_of_measurement) ? entity.attributes.unit_of_measurement : '';
    return 'Irrigation Controller' + ' (' + entity.state + ' ' + unit_om + ')'
  ]]]
icon: >-
  [[[ return (entity === undefined || entity.state == 'unavailable') ?
  'mdi:wifi-off' : 'mdi:wifi'; ]]]
state_display: '<elt><ha-icon icon=mdi:square-edit-outline></ha-icon></elt>'
styles:
  grid:
    - grid-template-areas: '"i n s"'
    - grid-template-columns: 15% auto 5%
    - grid-template-rows: 1fr
  card:
    - font-family: '[[[ return states[''input_text.irrigation_ui_font_family''].state ]]]'
    - font-size: 15px
    - padding: 0em 1.5em 0em 0em
    - background: none
    - box-shadow: none
  name:
    - justify-self: start
state:
  - value: unavailable
    styles:
      icon:
        - color: var(--accent-color)
        - animation: blink 2s ease infinite
      state:
        - color: var(--accent-color)
        - animation: blink 2s ease infinite
default_color: var(--primary-text-color)
color_off: var(--paper-item-icon-color)
color_on: var(--paper-item-icon-active-color)
lock:
  enabled: false
  duration: 5
  unlock: tap 

Same here, did all the changes popup don’t work and have this error.

Edit: setting the state of entity input_text.irrigation_external_sensor_controller_wifi to the correct sensor fixed this for me. But popup still don’t work

I have just uploaded what I think are all the remaining updates necessary to cope with all the changes in HA over the last few months while I’ve been ‘away’.

I hope I haven’t missed anything or worse still broken anything, I’m sure you’ll let me know if you find problems :upside_down_face:

I am still not able to devote much time to HA but I will do what I can.

And thanks again to everyone who is providing help to those who need it.

4 Likes

Thanks, that update fixed my popups

Hi, a little while ago I downloaded the new files modified by klogg, I reboot and I get [Errno 2] No such file or directory: ‘/config/lovelace/view_garden_v2.yaml’, I first changed the name of the file view_garden_v2.yaml in view_garden_version2 .yaml and it worked, but is it correct to do so or is something still wrong?

That is correct but note that I uploaded new files yesterday which fixed a few problems associated with breaking changes in HA and some custom cards etc.

Great … yes yes as I said I downloaded the new files a little while ago … uploaded and modified that file. now the pop-ups do not give problems and not even the programming, what still does not work at least for me is the irrigation test does not start the sprinklers and the stop button does not work to stop it … for the rest it seems to work.

Hello. Thanks for all your work and help but even with this last upload the schedulled irrigation doesn’t start, it just imediatly updates next run time.

it’s the same thing happening to me on old V1.0
are manual cycles working for you?

Manual cycles work

Please remember to also check garden_irrigation.yaml in old V1.0 please.
I just tried again to find the problem by myself, but I really can’t figure it out.

If I try to start a manual cycle, I just receive the notification that the cycle ended, cycles don’t start and I don’t receive starting notification.

I’m manually switching on and off valves at the moment…

thanks

with the update now it seems to work again, only problem is that this error always appears in the queue :

ButtonCardJSTemplateError: TypeError: Cannot read property 'state' of undefined in 'var statestr = (entity === undefined || entity.state === undefined) ? 'undefined' : entity.state; ...'
tap_action:
  action: fire-dom-event
  browser_mod:
    command: popup
    title: Irrigation Controller
    hide_header: true
    card:
      type: vertical-stack
      cards:
        - type: markdown
          content: >-
            Enter the name of the sensor for your irrigation controller WiFi
            signal strength.


            Leave blank to reset to default.
          style: |
            ha-card {
              font-family: {{ states('input_text.irrigation_ui_font_family') }};
              font-size: 16px;
            }
        - type: entities
          entities:
            - entity: input_text.irrigation_external_sensor_controller_wifi
              name: Sensor Name
            - entity: input_number.irrigation_controller_offline_wait
              name: Seconds To Wait When Offline
            - type: section
          style: |
            ha-card {
              font-family: {{ states('input_text.irrigation_ui_font_family') }};
            }
        - type: markdown
          content: You can disable the switches to prevent irrigation while testing.
          style: |
            ha-card {
              font-family: {{ states('input_text.irrigation_ui_font_family') }};
              font-size: 16px;
            }
        - type: entities
          entities:
            - entity: input_boolean.irrigation_disable_switches
          style: |
            ha-card {
              font-family: {{ states('input_text.irrigation_ui_font_family') }};
            }
type: 'custom:button-card'
group_expand: false
hold_action:
  action: none
double_tap_action:
  action: none
layout: vertical
size: 30%
color_type: icon
show_name: true
show_state: true
show_icon: true
show_units: true
show_label: false
show_entity_picture: false
show_live_stream: false
card_size: 3
entity: sensor.esphome_irrigation_controller_wifi_signal
name: |
  [[[
    var statestr = (entity === undefined || entity.state === undefined) ? 'undefined' : entity.state;
    var unit_om = (statestr != 'undefined' && entity.attributes.unit_of_measurement) ? entity.attributes.unit_of_measurement : '';
    return 'Irrigation Controller' + ' (' + entity.state + ' ' + unit_om + ')'
  ]]]
icon: >-
  [[[ return (entity === undefined || entity.state == 'unavailable') ?
  'mdi:wifi-off' : 'mdi:wifi'; ]]]
state_display: '<elt><ha-icon icon=mdi:square-edit-outline></ha-icon></elt>'
styles:
  grid:
    - grid-template-areas: '"i n s"'
    - grid-template-columns: 15% auto 5%
    - grid-template-rows: 1fr
  card:
    - font-family: '[[[ return states[''input_text.irrigation_ui_font_family''].state ]]]'
    - font-size: 15px
    - padding: 0em 1.5em 0em 0em
    - background: none
    - box-shadow: none
  name:
    - justify-self: start
state:
  - value: unavailable
    styles:
      icon:
        - color: var(--accent-color)
        - animation: blink 2s ease infinite
      state:
        - color: var(--accent-color)
        - animation: blink 2s ease infinite
default_color: var(--primary-text-color)
color_off: var(--paper-item-icon-color)
color_on: var(--paper-item-icon-active-color)
lock:
  enabled: false
  duration: 5
  unlock: tap

Hi All,
Has anyone ran into this issue and maybe knows how to resolve it? The popup for time adjustment is hidden by the box border and this happens across multiple browsers.
WaterTimeSelector

I have grabbed the latest files as well. They did fix the issue where there was no popup when clicking on the zone name (which I can modify time there too) which will work for now. The issue when just dragging the slider is still present as in pictured above though.

Yes, it’s true … for now I solve it by pressing on the name of the zone and I set the time from the popup that opens

Do any of you have display problems after yesterday’s last home assistant and core? I have this error and it doesn’t seem to resolve:

1 Like

I spent hours earlier chasing my tail. Finally found the solution, and posted it here: https://github.com/kloggy/HA-Irrigation-Version2/issues/37

1 Like