In that case my guess is it is something simple like spacing because it validates the config ok for me. I have changed a few things like some names but nothing really else that I think would make a difference (he says knowing that that means nothing when writing code!). I’m sorry that is probably not very helpful.
I am though very interested in this especially if anyone gets any algorithms designed that decide when to irrigate. I spent a long time working on an irrigation system when I first discovered HA a few weeks ago but it was using a Gardena Zone Distributor which has a slightly idiosyncratic way of working. The Chief Gardener here though changed her mind and now just wants separate zones so this looks like a great starting point for my system!
EDIT: I just remembered I did swap in ALL my code for the switches (I’m using a sonoff 4 channel) so your error might be in that area?
Hi Otto,
I like your esphomeyaml project. Very impressive, well done.
I do wonder if there is a market for an ESP32 based I\O board interfacing via MQTT. I based my HA system around a couple of PiFace IO cards but they have their limitations, most notably not being suitable for real world applications - fine for school or lab workbench but not production environments.
What sort of hardware do most people run your software on?
I’m planning on using Otto’s software on a couple of NodeMCU’s that I have (ESP8266 chip) to create the hardware side of my code above. The outputs are wired to a relay board to control the solenoids. That’s all there is to it other than a power supply
I have since updated the code to include separate watering day selectors for each program which gives a lot more control. I can post it tomorrow, it’s bed time here!
I don’t know too much about other people, but I use the project almost exclusively on NodeMCU (esp8266 and esp32) boards with mostly self-built relays, lights and actuators. I’m currently trying to move my entire system to use the ESP32 as they just seem a lot more stable and have awesome peripherals like RMT and LEDC.
anyone able to help with the error I am having with this? I cant get my code to pass config verification if I include the second automation “alias: Reticulation Run Program 1”. The code works fine until I include that… the error doesnt seem to relate to it which is why I dont know how to fix it
I copied your code into my dev system, uncommented the automation section and restarted HA. The config has loaded fine so I suggest that is good - as it looks. What code is at the referenced block in your configuration.yaml? Is there some name conflict maybe? Could you post the code around line 101. And did you try a full restart rather than just a ‘Check config’?
I just un-#'d the culprit automation and restarted HA. Got the following in the error log which isn’t much better than I had from the config validator.
2018-05-02 10:57:03 ERROR (MainThread) [homeassistant.components.hassio] starting version 3.2.4
Testing configuration at /config
Failed config
switch:
- Invalid config for [switch]: required key not provided @ data[‘platform’]. Got None. (See /config/configuration.yaml, line 101). Please check the docs at Switch - Home Assistant
then the log goes on to print my entire HA config…
OK, I feel like an idiot. I just checked through my code and realised that because I was #'ing out the first automation due to it not being complete yet, I was accidently #'ing out the line automation: which needed to be there for the second automation below! sorted that out and now weverything is sweet. Now to finish coding that first automation and get the hardware completed.
i wished this whole topic could somehow be origanized and put into modules or something so i can be easier adopted by others.
there’s so much information in this thread, but it’s so cluttered and for a noob hard to understand what works how and how parts interact.
any ideas how this could be done?
i copied lots of parts into my HA config and some parts seem to work, but some parts are missing, and i pull my hair out for 3 weeks now w/o a proper outcome
I plan to put my stuff up at some point in the not too distant future, not because I think it is better than anything else but just because I would like to try to help someone in return for all the help I’ve had in the past here.
great. i will check that. haven’t worked with packages yet.
btw: i’m using a nodemcu (tasmota firmware) together with a 4 relay board (all from aliexpress). i reuse the 24c ac/ac converter connected to a bridge rectifier and a dc/dc step down converter to power the nodemcu and the relais. works perfectly fine and i the most reliable and cheapest setup i could find.