Thanks!
Well, been trying for about a week on and off now, and can’t quite figure it out so far. I mean I got to the point where firmware is uploaded. Then I get this error:
Traceback (most recent call last):
File "c:\python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\python38\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Python38\Scripts\esphome.exe\__main__.py", line 9, in <module>
File "c:\python38\lib\site-packages\esphome\__main__.py", line 554, in main
return run_esphome(sys.argv)
File "c:\python38\lib\site-packages\esphome\__main__.py", line 541, in run_esphome
rc = POST_CONFIG_ACTIONS[args.command](args, config)
File "c:\python38\lib\site-packages\esphome\__main__.py", line 324, in command_run
return show_logs(config, args, port)
File "c:\python38\lib\site-packages\esphome\__main__.py", line 202, in show_logs
run_miniterm(config, port)
File "c:\python38\lib\site-packages\esphome\__main__.py", line 89, in run_miniterm
with serial.Serial(port, baudrate=baud_rate) as ser:
File "c:\python38\lib\site-packages\serial\serialwin32.py", line 31, in __init__
super(Serial, self).__init__(*args, **kwargs)
File "c:\python38\lib\site-packages\serial\serialutil.py", line 240, in __init__
self.open()
File "c:\python38\lib\site-packages\serial\serialwin32.py", line 78, in open
self._reconfigure_port()
File "c:\python38\lib\site-packages\serial\serialwin32.py", line 220, in _reconfigure_port
raise SerialException(
serial.serialutil.SerialException: Cannot configure port, something went wrong. Original message: PermissionError(13, 'A device attached to the system is not functioning.', None, 31)
Not sure if it’s relevant or not.
But after this or after unplugging\plugging micro usb it does not connect to wifi. At least I don’t see it in the devices or arp lists on my router. Is it supposed to connect to wifi without being connected to Haier AC? Or is it normal that it does not connect yet? I just did not want to proceed to soldering before I’m successful with this first step.
Here’s my current config. I did try original one without alterations (well, wifi ssid and password obviously), tried commenting out baud rate line, and finally tried to make new config with wizard and copy some stuff over =(
esphome:
name: haier_room2
platform: ESP8266
board: d1_mini
includes:
- Haier.h
wifi:
ssid: "ssid"
password: "pass"
manual_ip:
static_ip: 192.168.1.60
gateway: 192.168.1.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Haier Room2 Fallback Hotspot"
password: "pass"
captive_portal:
# Enable logging
logger:
level: DEBUG
baud_rate: 0 #Important. You can't use serial port
# Enable Home Assistant API
api:
ota:
climate:
- platform: custom
lambda: |-
auto haier = new Haier();
App.register_component(haier);
return {haier};
climates:
- name: "Haier"