So my Google-fu must be off because I’m sure there’s a way to do this, but I’m not finding it.
What I’m doing:
I am putting together a sprinkler controller based off an 8266 and an 8 relay board. Super simple stuff.
I’ve got a great script set up that runs through each station for a few minutes, and I have that script called from an automation.
I have a nice Lovelace card that shows the toggle buttons for each station, a button to run the script, and a button to enable / disable the scheduled runs.
What I need help with:
I need is a data field on the card that is the entry point for the length of time that each station runs without having to dive down into the script and change the time for each station.
I need a toggle button to enable or disable the particular station manually without going in and editing the script. i.e. manual override in case one zone doesn’t need water one cycle.
I need the syntax that the LovelaceUI frontend needs to add a ‘day’ (ex: ‘Tuesday’) to the condition so that the script / automation only runs on one or two days of the week (we’re limited to watering on Tues / Thurs here). I’ve gathered that the Conditions>Condition Type should be ‘Template’ but that’s as far as I’ve been able to get.
One step further down, is there a way to set up another card that has a toggle for each of the days and I simply choose the days I want it to run from there?
OK, sort of following along with most of this now; the learning curve is steep!
What I’m finding though is that I’m having to put code in a ton of different places for this to work. For example, the lovelace card information is in one place, the sensor information is in a sensors.yaml file, the input_booleans are in the config file… etc.
How does one consolidate all of this into a folder (ex: custom_components/sprinkler) so that it’s A) a bit more siloedto just this project and B) easier to implement into someone else’s HA instance?