pedobry / esphome_toshiba_suzumi

ESPHome custom component for Toshiba Suzumi
GNU General Public License v3.0
17 stars 7 forks source link

esp8266 d1_mini not work ( need logger off) #3

Closed techmike78 closed 1 year ago

techmike78 commented 1 year ago

I ran into a problem with your component working on Wemos D1 mini (esp8266). All connections were made with high quality and were working, but the air conditioner did not respond to commands from their ESPHome or HA, it worked from the remote control. The problem turned out to be that it was necessary to turn off logging in uart: logger: baud_rate: 0

Add this please to the description of the config for esp8266 and you can specify it in the text of the article. This will save a lot of time.

pedobry commented 1 year ago

My example config use pins 13 and 15 (SW UART) to avoid conflict with HW UART on pins 1 and 3. Which pins you use ?

techmike78 commented 1 year ago

uart: id: uart_bus tx_pin: GPIO1 rx_pin: GPIO3 parity: EVEN baud_rate: 9600

techmike78 commented 1 year ago

Now checking the work from HA, I noticed that the component does not receive commands from the air conditioner. For example, the air conditioner was turned off, I turn it on from the remote control, it turns on, but this is not visible in the component and HA.

techmike78 commented 1 year ago

My example config use pins 13 and 15 (SW UART) to avoid conflict with HW UART on pins 1 and 3. Which pins you use ?

How is the air conditioner controlled through the component and how does the air conditioner itself give its status to it?

techmike78 commented 1 year ago

My example config use pins 13 and 15 (SW UART) to avoid conflict with HW UART on pins 1 and 3. Which pins you use ?

soldered like you have, but with the GPIO15 connected, the esp8266 itself does not boot or flash.

pedobry commented 1 year ago

My example config use pins 13 and 15 (SW UART) to avoid conflict with HW UART on pins 1 and 3. Which pins you use ?

How is the air conditioner controlled through the component and how does the air conditioner itself give its status to it?

The serial communication over UART is bi-directional. When you make some change in HA, it's sent over serial to the AC unit. When some action is done via IR remote, the AC unit send a message over serial line and it's reflected in HA.

pedobry commented 1 year ago

My example config use pins 13 and 15 (SW UART) to avoid conflict with HW UART on pins 1 and 3. Which pins you use ?

soldered like you have, but with the GPIO15 connected, the esp8266 itself does not boot or flash.

GPIO15 is used to control how ESP boots. It should be LOW on power on to boot from flash.

You can also use GPIO 12 and GPIO13 if you have problems with GPIO15. But since you're saying you were not be able to receive communication from AC and GPIO15 is probably HIGH which blocks booting of ESP, I'd assume there is an issue with the wiring (the RX line from AC might not work).

techmike78 commented 1 year ago

I forgot about the features of loading esp8266 and the state of the GPIO. I soldered GPIO15 to GPIO12 and it worked. Sorry for wasting time. Please describe my case on the main page so that you don't make these mistakes.