Smart irrigation

Поділитися
Вставка
  • Опубліковано 27 лип 2024
  • Spring is the best time to build an irrigation. I built mine from Sonoff 4ch Pro and some Gardena components - it was easy, cheap and works great! It is controlled from Home Assistant, so I can irrigate based on the weather forecast, I can run it remotely and have the statistics. But at the same time, it runs fully autonomously, so if there is a problem with HA, it will stop automatically based on the schedule. And as with all my automation, I want to be also able to easily control it manually, so I added small touch screen to the Sonoff so I know how long it will still irrigate on and can control it easily.
    Links:
    Full documentation with ESPHome & HMI display config: github.com/bruxy70/Irrigation...
    Gardena sprinklers & connectors I use: www.gardena.com/int/products/...
    Display: www.itead.cc/display/nextion-...
    Rain sensor: popp.eu/z-rain/
    and Sonoff 4ch Pro
    About me: / vaclavcha. .
    #HomeAssistant #DIY #Irrigation #Gardena #Sonoff
  • Наука та технологія

КОМЕНТАРІ • 58

  • @Bigpoohcz
    @Bigpoohcz 4 роки тому +1

    Děkuji za vaše videa, poznal jsem nove věcí, v tuto chvíli take stavim na baraku homeassistant, žijeme blízko vás ( :) ), možná se někdy potkáme v pivovarskem dvore :) na pivo :)

  • @jollyroger1982
    @jollyroger1982 4 роки тому

    Nice video. I am in the middle of planning my own diy irrigation system and wanted to make use of the 4Ch Pro already, this approach with the screen takes it to another level. Thank you for sharing. Very cool setup!

  • @vegaswayne247
    @vegaswayne247 3 роки тому +2

    I made one using an ESP32 and a board with 8 relays. Where I live we have watering restrictions based on the season. I used the automation in ESPHome to set the schedule instead of using Google calendar. It is actually much simpler. It consists of three on_time calls with different month and day parameters that run a script to cycle the sprinklers. I also interlocked the relays so that turning one on will turn off the one that was already running.

    • @GrimSpec
      @GrimSpec 3 роки тому

      Hello can you share your solution ? :) Do you have it on github by any chance ?

  • @CristiCojita
    @CristiCojita 4 роки тому +1

    Nice job! I'm waiting for display video :)

  • @cooljey86
    @cooljey86 3 роки тому

    By far the coolest sonoff DIY mod I ever seen. Very cool 👍 , Unfortunately, I wouldn't be building one because I have a 12ch Orbit Byhve purchased recently.

  • @romankrcek6609
    @romankrcek6609 4 роки тому

    Very interesting video. Im going to order the Sonoff 4CH for my garden irregation too. Thank you for the tutorial. Looking forward to the Nextion video. :)

  • @charlesarbuthnot8098
    @charlesarbuthnot8098 3 роки тому

    I just started using ESPHome on my Home Assistant setup, and found your irrigation write up. I have been fighting with my old system so I decided to try one like you made. I already had all of the hardware, but had done much with them. One thing that I did find was that the Nextion basic display seem to work fine on 3.3 vdc and I already had the header pins installed to flash Tasmota several years ago. The display only pulls 90 milli-amps at 100% brightness. Thanks

  • @ungeekenmunich
    @ungeekenmunich 3 роки тому

    Amazing video! Was exactly looking for something like that for my future garden. Thanks!

  • @matejfoltyn
    @matejfoltyn 4 роки тому +3

    No teda já zírám. Máme našeho českého doktora Zzs :) mě teda tohle všechno ještě čeká v budoucnu, ale už teď trénuju na bytě s malými okruhy.

  • @StePhanMckillen
    @StePhanMckillen 4 роки тому

    10 out 10 bro Nice one Like how you added the screen :)

  • @nguyenlam6785
    @nguyenlam6785 2 роки тому

    Awesome bro, love this

  • @earlsark
    @earlsark 2 роки тому

    Amazing project.. i have to try at home and tks

  • @robertfreund7525
    @robertfreund7525 4 роки тому

    Great job. Thank you

  • @robertq91
    @robertq91 4 роки тому

    Great Video!

  • @davepeachey2712
    @davepeachey2712 4 роки тому

    Man that was clever thanks

  • @geogmz8277
    @geogmz8277 4 роки тому +5

    Dude the intro audio almost caused me a heart attack.. Try to turn the volume down a notch or two. 😅

  • @RedaReda-uk9lm
    @RedaReda-uk9lm 4 роки тому +1

    Thanks a lot.

  • @RedaReda-uk9lm
    @RedaReda-uk9lm 4 роки тому +1

    May be good idea to think about air purifier and human comfort especially the covid19 has changed everything.

  • @xainisheikh
    @xainisheikh 4 роки тому

    Excellent stuff like always.
    Just a suggestion, please turn down the volume of your intro, it blasts my speakers :D

  • @painy3248
    @painy3248 4 роки тому

    Nice, going to do something like this in the future. Thanks!
    Maybe also add soil humidity sensors so you don't over waste water?

    • @bruxy70
      @bruxy70  4 роки тому +1

      Good idea. I read somewhere they do not last too long, though. And the rain sensor works quite well.

  • @georgegreer9260
    @georgegreer9260 Рік тому

    I just ran across your video, lots of great information, great job, I'm just starting out with HA but have 2 sonoff pro4's is there a way to program a light sensor to turn off the display when the cabinet door is closed?

  • @mindracing
    @mindracing 4 роки тому

    Excellent video. It's inspired me to do something similar for a heating controller. I'm curious why you didn't chose to run it from the mains supply and use the Sonoffs on board 5V to power the Nextion?

  • @jerome-9732
    @jerome-9732 2 роки тому

    Great video. Thank you. I found two models of sonoff 4CHPRO. The 4CHPROR2 and the 4CHPROR3. Which one do you use? The 4CHPROR3 is compatible with your code?

  • @patrickjacunski5306
    @patrickjacunski5306 2 роки тому

    This was a great video. I would love to also see a video on your pool automation.

    • @bruxy70
      @bruxy70  2 роки тому

      The only thing I do is, I control the circulation pump, and I vary the start and stop time, based on the water temperature (increasing the time with increasing temperature). And I control the lights. But that's it. It is desjoyaux pool that has a textile filter. So no sophisticated control of filtering or chemicals. I thought I'd add a Ph sensor, but from what I've read, it has to be calibrated all the time, so I gave up and do that manually once a week or so. But would definitely welcome any ideas and suggestions....

  • @DanStasiak
    @DanStasiak 4 роки тому

    Good job. How did you connect the Sonoff and the Nextion physically, i.e., which pin to which pin? And how did you set up the Tasmota Module parameters, i.e., GPIO1 to Serial TX (148)?

    • @bruxy70
      @bruxy70  4 роки тому +2

      I connect 5V to 5V, GND to GND, RX to TX and TX to RX. I am sorry if I forgot to mention that. I do not use Tasmota but Esphome. Check the last video on displays.

  • @ignaciotorrecillas1787
    @ignaciotorrecillas1787 2 роки тому

    Thanks for share your work!!!
    I am ordering parts to make somethig similar, but I have doubts what FTDI to buy.
    Vaclav, can you please recommend me one?

    • @bruxy70
      @bruxy70  2 роки тому

      I did not really do any reseach here, I use a generic FTDI card. Mine has both 3.3 and 5V, so the only think I have to do is to make sure I use the right voltage. Not sure what else is there to decide upon? Perhaps some auto-switch to programming mode function?

  • @kamilh25
    @kamilh25 2 роки тому

    Diky za inspiraci, zrovna resim pripojeni nextion displeje k ovladani bazenu na zahrade (sonoff duo pro cerpadlo fitrace a cerpadlo solarniho ohrevu + 3 teplotni cidla). Netusil jsem, ze bych mohl displej pripojit rovnou na desku s rele(a vypnout logger a zapnout uart). Ale teploty bych pak musel resit jeste treba pres wemos, ze.

    • @bruxy70
      @bruxy70  2 роки тому

      Asi bych pak koupil relé. Vše řešil přes Wemos, nebo něco takového.

  • @cawolfspirit
    @cawolfspirit 3 роки тому

    Just curious, how do you stop your 'auto script' while it is running in the middle. I have to to add a 'stop button' to terminate my running program.

  • @nodinosaur
    @nodinosaur 4 роки тому

    Nice and technical videos 👍
    How do you create your in video animations? (Home Assistant, etc)

    • @bruxy70
      @bruxy70  4 роки тому +1

      I use DaVinci Resolve - the animations are done in Fusion. I did the explanation in Inkscape, imported to Fusion as SVG, and animated there. The HA subtitle is the same - except I made it a Fusion title so that I can easily re-use that.

  • @ungeekenmunich
    @ungeekenmunich 3 роки тому

    One question: did you use special power supply for 5V, with IP rating? Something to protect from humidity and frost?

    • @bruxy70
      @bruxy70  3 роки тому +1

      No. It is inside the enclosure, so I hope humidity is not an issue. Not sure about the temperature rating (but I do not often irigate the garden when it is freezing, in fact, I flush the system in autumn) ;)

  • @xbmcnut
    @xbmcnut 3 роки тому

    Great video, thanks! Parts ordered! Can you share your HA code for the scripts and automations?

    • @bruxy70
      @bruxy70  3 роки тому +1

      Great. The automations are nothing special, really. I basically trigger them from the Google Calendar. And I have number of simple conditions from rain sensor - today, last 3 days, and the rain forecast.
      Before turning it of, I set the ESPHome timer, that should turn it off. And to doubke-secure that, I do that also from the calendar event. Just to make sure the water does not keep running. And it never did.
      - alias: Zavlazovani kalendar1 on
      trigger:
      platform: state
      entity_id: calendar.zavlazovani1
      to: 'on'
      condition:
      - condition: state
      entity_id: input_boolean.automation_zavlazovani
      state: 'on'
      - condition: numeric_state
      entity_id: sensor.uhrn_srazek_3_dny
      below: 10
      - condition: numeric_state
      entity_id: input_number.srazky1
      below: 5
      - condition: numeric_state
      entity_id: sensor.uhrn_srazek_dnes
      below: 5
      - condition: numeric_state
      entity_id: sensor.today_srazky
      below: 5
      - condition: state
      entity_id: input_boolean.zavlazovani_zapnuto_last_24h
      state: 'off'
      action:
      - service: esphome.zavlazovani_set_time_1
      data_template:
      time: "{{ (as_timestamp(state_attr('calendar.zavlazovani1','end_time')) - as_timestamp(now())) | int }}"
      - service: switch.turn_on
      entity_id: switch.zavlazovani_rele_1
      - alias: Zavlazovani kalendar1 off # just to make sure - it should be turned off by the timer
      trigger:
      platform: state
      entity_id: calendar.zavlazovani1
      to: 'off'
      action:
      - service: switch.turn_off
      entity_id: switch.zavlazovani_rele_1

    • @xbmcnut
      @xbmcnut 3 роки тому

      @@bruxy70 awesome, thank you! What about the script you fire from the ESPHome code?

  • @michalbarton1572
    @michalbarton1572 3 роки тому

    Dobry den, ty ventily jsou take od gardeny? Kolik sprinkleru utahne jedna vetev?

    • @bruxy70
      @bruxy70  3 роки тому +1

      Ano. A to asi zalezi na typu sprinkleru a privodu vody, to ma Gardena na strankach asi. Ja mam na jedne vetvi 2-3 sprinklery (ale jsou to velke T-200 myslim, mensich sprinkleru by tam urcite mohlo byt vic). Gardena na to mela nejaky webovy nastroj, kde si to clovek mohl naklikat, a ono mu to reklo kolik jakych sprinkleru muze kde mit a jak je muze kombinovat (ne kazdy jde kombinovat s libovolnym jinym)

  • @michalbarton1572
    @michalbarton1572 3 роки тому

    Muzu se jeste zeptat, jak funguje ten widget s prackou a susickou? Hadam, ze mate asi nejakou smart verzi, ktera to podporuje. Mam 2 roky starou pracku a susicku, mobilni aplikaci nemaji, ale presto bych rad ziskal info o tom ze je prani hotove nebo dosuseno. Mame je toriz v jinem patre a neustale na to zapominame. Dekuji za tip.

    • @bruxy70
      @bruxy70  3 роки тому +1

      Pripojeno do chyre zasuvky, ktere meri spotrebu. Susicka byla jednoducha. U pracky spotreba moc neodpovidala rezimu, to jsem chvili ladil a kombinowal power a power factor. Mam to stejne, kdyz je vyprano nebo ususeno, oznami mi to Google Home v obyvaku.

    • @michalbarton1572
      @michalbarton1572 3 роки тому

      @@bruxy70 Super napad. Rikal jsem zene neco podobneho, ale tohle je super jednoduche. Dekuju za inspiraci.

  • @pavelhlavka2568
    @pavelhlavka2568 2 роки тому

    Zdravím,
    umí Z-rain poslat rychlou notifikaci, jakmile začne pršet? Díky za info.

    • @bruxy70
      @bruxy70  2 роки тому

      Nevidim to tam. V minulosti tam byl binarni sensor, ted ho tam ale nevidim. Kazdopadne muzu udelat automatizaci kdyz se zmeni intenzita srazek z 0...

  • @zp3727
    @zp3727 4 роки тому

    does sonoff have to be a pro? can it be 4cz normal?

    • @bruxy70
      @bruxy70  4 роки тому

      Nop. Normal sonoff would send the phase to the valves (240/110V AC), I do not think there are any valves that would use that. Sonoff 4ch Pro has 4 relays with galvanically isolated contacts, so they connect the middle Common contact with the NO contact. But it does not have to be Sonoff, you could use an Arduino circuitry with 4 relays.

  • @PayamJianTV
    @PayamJianTV 4 місяці тому

    Are valves working with DC power or AC? If they work with AC is it ok to use DC power instead?

    • @bruxy70
      @bruxy70  4 місяці тому +1

      DC. But the Pro has galvanically isolated relays. So does not matter.

    • @PayamJianTV
      @PayamJianTV 3 місяці тому

      @@bruxy70 Thanks for your reply. How to connect the 4CHPRO3 to install the YAML file. I assume I missed that part. By the way, the chipset of my Sonoff switch is ESP8285.

    • @bruxy70
      @bruxy70  3 місяці тому +1

      @@PayamJianTV FTDI adapter

    • @PayamJianTV
      @PayamJianTV 3 місяці тому

      @@bruxy70 in order to connect Sonoff to the computer via USB? what about the chipset? is it considered the same as ESP8266?

    • @bruxy70
      @bruxy70  3 місяці тому +1

      @PayamJianTV Yes This one uses ESP8266 devices.esphome.io/devices/Sonoff-4CH-Pro-R2