esphome-packages icon indicating copy to clipboard operation
esphome-packages copied to clipboard

Installation situation

Open alexlg12 opened this issue 1 year ago • 3 comments

Hi, I'm trying to use your code but ESP doesn't get connected to WI-FI, in logs I get: WARNING Can't connect to ESPHome API for switchboard2.local: Error resolving IP address: [Errno -5] No address associated with hostname (APIConnectionError) INFO Trying to connect to switchboard2.local in the background

alexlg12 avatar Mar 23 '24 14:03 alexlg12

You have to set node_name parameter to something reasonable. Switchboard2 sound like something from the example. It will be used as a host name of the device.

Also make sure you set wifi credentials correctly, you have to connect your device via USB and use run command - this will allow you to get logs directly from the device.

corvis avatar Mar 23 '24 20:03 corvis

I connected it via serial to putty and see what's wrong. SSID "-" in name. Thank you for help but now I have other situations, I have only 9 entities, no one for programming time, only turn on/off, restart device, and 3 sensor. image image

alexlg12 avatar Mar 24 '24 12:03 alexlg12

With this setup you're supposed to do all programming/automation with home assistant. ESP Home registers a special service which allows you to open valve for specific period of time and ESPHome will be responsible for closing it (so it will be closed even if HomeAssistant goes offline or something).

You might want to connect HomeAssistant's google calendar integration to specific valve at the event start for event duration minutes (that's want I did, as I find it handy to manage irrigation schedule with my calendar app).

Also I can't not to mention that this module was written 4 years ago when I was working on my setup. Since that time ESP Home added native Sprinkler module so you might want to consider it instead.

corvis avatar Mar 24 '24 20:03 corvis