That’s not needed, it will be discovered automatically in your case.
Not needed either.
It doesn’t seem to be the exact same template as in the error. For example, this line var number_of_zones = Number(states['input_number.irrigation_number_of_zones'].state); doesn’t have Number(... in the error reported.
after several months and due to this strange period very hard here in Italy, as well as in other countries, I’m going to try your new version 2.
I noticed in the latest posts that you’re using (evaluating) also ESPHome.
Very useful the interlock and the failsafe.
On ESPHome, I took a look also to this project that have most of the logic inside the ESP.
I’m going to try your project in a fresh new HA install on a RPi.
Really well done the V2 Wiki, easy to follow and to adapt if necessary (i.e. Smart Weather that have no station near me, sigh!).
Thanks, I think there are still some improvements to be made but it is close.
I also plan to make it some kind of option to use Smart Weather and have everything adapt if you choose not to. But that is a little way off at the moment.
Also, that other project you link to looks really good. The more I learn about ESPHome the more I like it and having all the timer logic inside the ESP makes a lot of sense.
The main reason, at least for me, to have most of the logic in the ESP is due to Wifi signal loss or HA not working, restarting or any other similar reason that may affect the irrigation and that can cause damage…
Let me know if you need any help, also regarding a translation in italian
I’ve copied the project to their respective folders and I’ve followed all the prerequisites as in here including input_text.notifications_user1_name and input_text.notifications_user2_name
I don’t know if the issue is related to smartweather that I’ve not set.
I’ve NOT used the definitions in here
I’ve seen some posts related to smartweather.
How can I help to choose during installation to use or not the smartweather stuff?
I’ve looked at your log and I have a few observations (none of which necessarily point to the problem!)
Do you have browser_mod and lovelace_gen installed because I get this in my log:
2020-04-28 10:11:33 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for lovelace_gen which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-28 10:11:33 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for browser_mod which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
TypeError: join() argument must be str or bytes, not 'list'
Which I don’t understand because I do not use ‘join’ in this package.
It must be struggling with something else becasue all the messages seem to point to a Lovelace error somewhere.
Do you get anything displayed at all on startup?
Perhaps you could narrow it down by removing parts of the main view.
There are three parts, ‘SYSTEM STATUS’, ‘SCHEDULES’ and ‘SETTINGS’
SYSTEM STATUS is itself made up of separate sections which can be removed independently.
I found that this error is caused by input_text.irrigation_previous_total_watering_time that was unknown.
I’ve manually set (from States) to any value (10 in my case) and the error message disappeared.
I’ve clicked on some part of the screen and I was able to change some values, but not on all the unknown (especially on the left side of the screen).
One strange thing is this, I have two HA tabs in the browser, one with the dashboard and one with the terminal (inside HA).
When I click on an item that is supposed to show a popup, the popup opens on the other tab.
I’m not sure you have read all of the prerequisites fully…
There is no need to reduce the darksky sensor, I have just showed what the minimum is, but you will need to change a couple of lines of code or your sensor name.
Choose the GENERAL options and then click on ‘Number of zones defined’.
Popups will always appear on the most recent browser tab. There is nothing anyone can do about this. It is also documented in the Github for browser_mod.
On the GENERAL settings page check that the ‘User Interface font’ is set to ‘Oswald’. If you don’t have that option then I suspect that you don’t have the latest version. I have recently made improvements to set some default values and am currently planning on expanding that section to make it easier for first use setup.
The file section_settings_general.yaml needs sensor.esphome_irrigation_controller_wifi_signal .
The settings page will not display correctly without it. (I have just seen the changes for the latest button-card v3.3.1 and I am not sure if this statement is still correct).
If you do not have this sensor simply delete (or comment) this section of that file.
I’ve found that my darksky sensors do not have the _forecast_ and _current_ words inside of them, so I have removed from my installation, in each of the 3 files I’ve found.
For the sensor.esphome_irrigation_controller_wifi_signal I’ve created, compiled and flashed the yaml file similar to yours with exactly the sensor name written in it, but I don’t know why the sensors and switches defined are not being created in HA.
I don’t know if MY issue is that I have active two HA each with an installation of ESPHome.
I’ve compiled it from the same HA where I am testing Garden Irrigation.
In any case, strangely, does not appear in the production HA either.
I just found an issue that I think may be related to the new way it checks entity states because after I upgraded my button-card I also had an issue. Can you add the last line of this snippet to section_status_header.yaml
#==================
#=== STATUS HEADER
#==================
type: vertical-stack
cards:
- type: entities
entities:
- type: divider
style: >
ha-card {
background: none;
margin-top: -1em;
margin-bottom: -1.25em;
}
- type: custom:stack-in-card
mode: horizontal
keep:
margin: true
border_radius: true
cards:
- type: horizontal-stack
cards:
#=== NEXT RUN DETAILS
- type: custom:button-card
entity: input_text.irrigation_current_status
name: >
[[[
if (states['input_boolean.irrigation_master_control_switch'].state == 'off')
return 'SYSTEM IS OFF';
else
var time_now = states['sensor.time'].state;
var cycle1_sched = states['input_boolean.irrigation_cycle1_schedule_enabled'].state;
var cycle2_sched = states['input_boolean.irrigation_cycle2_schedule_enabled'].state;
var cycle1_time = states['input_datetime.irrigation_cycle1_start_time'].state.substr(0, 5);
var cycle2_time = states['input_datetime.irrigation_cycle2_start_time'].state.substr(0, 5);
var cycle1_name = states['input_text.irrigation_cycle1_name'].state;
var cycle2_name = states['input_text.irrigation_cycle2_name'].state;
var cycle3_name = states['input_text.irrigation_cycle3_name'].state;