• 1 Post
  • 8 Comments
Joined 2 years ago
cake
Cake day: April 27th, 2024

help-circle






  • Oh nooo, am I that easy to clock as German 😄 Gardena really nice for the price though.

    Do you even manage to eat everything yourself of what you harvest?

    Mostly yes. We’re not throwing anything out, but giving some stuff to neighbours/family if we have too much of something. But esp. for things like peas or paprika, we also freeze a bunch for use throughout the year, pickle some cucumbers, and so on.

    Do you have a rain sensor for the disabling automation?

    No, actually - that was our initial idea as well, but they are not inexpensive, and not necessarily super accurate, from what I’ve read. Instead we’re just using the OpenWeather API. If you’re curious, here’s the HA stuff we wrote for it:

    Automation:

    alias: Deaktiviere Pumpe nach Regen
    description: ""
    triggers:
      - at: "06:30:00"
        trigger: time
      - at: "14:30:00"
        trigger: time
      - at: "22:30:00"
        trigger: time
    conditions: []
    actions:
      - if:
          - condition: or
            conditions:
              - condition: numeric_state
                entity_id: sensor.cumulative_rain_8h
                above: 4
              - condition: numeric_state
                entity_id: sensor.cumulative_rain_24h
                above: 10
        then:
          - condition: state
            entity_id: switch.steckdose_wasserpumpe_switch
            state: "on"
          - metadata: {}
            data: {}
            target:
              device_id: <redacted>
            action: switch.turn_off
        else:
          - condition: state
            entity_id: switch.steckdose_wasserpumpe_switch
            state: "off"
          - metadata: {}
            data: {}
            target:
              device_id: <redacted>
            action: switch.turn_on
    mode: single
    

    Custom sensors:

    sensor:
      - platform: statistics
        name: "Cumulative Rain 24h"
        entity_id: sensor.openweathermap_rain
        state_characteristic: sum
        max_age:
          hours: 24
      - platform: statistics
        name: "Cumulative Rain 8h"
        entity_id: sensor.openweathermap_rain
        state_characteristic: sum
        max_age:
          hours: 8
    

    (These just sum up all values over the last x hours. “We have integration at home!” Unit is watercolumn in millimeters (I think))