joshbenner / esphome-daikin-s21

ESPHome Component for Daikin Mini-Splits using the S21 serial port.
GNU General Public License v3.0
52 stars 18 forks source link

Testing in FTXS35K3V1B and FTXS25K3V1B #22

Open txitxo0 opened 1 month ago

txitxo0 commented 1 month ago

Hi there!!

Really good job, i like it so much!

I am trying to get it working for both units (FTXS35K3V1B and FTXS325K3V1B) I build a circuit with an ESP32-c3 super mini a logic converter (from 5v to 3.3v) and a transformet to get 5v from the unit.

S403
pin 1 Vcc (+14V)
pin 2 
pin 3
pin 4 Tx
pin 5 Rx
pin 6 GND
pin 7 GND
...

using this configuration for the unit with S403 connector I have some problems apparently related with the data. The esp32 is running so pins for Vcc and GND should be okay, but the Tx and Rx maybe are the ones failing. These are the ESPHome logs:

[12:50:32][D][daikin_s21.climate:312]: Room temp from external sensor: 23.6 °C (23.6 °C)
[12:50:32][D][daikin_s21.climate:313]:   Offset: -23.6
[12:50:32][W][daikin_s21:265]: No ACK from S21 for F1 query
[12:50:32][W][daikin_s21:265]: No ACK from S21 for F5 query
[12:50:32][W][daikin_s21:265]: No ACK from S21 for RH query
[12:50:32][W][daikin_s21:265]: No ACK from S21 for RI query
[12:50:33][W][daikin_s21:265]: No ACK from S21 for Ra query
[12:50:33][W][daikin_s21:265]: No ACK from S21 for RL query
[12:50:33][W][daikin_s21:265]: No ACK from S21 for Rd query
[12:50:33][W][component:237]: Component daikin_s21 took a long time for an operation (183 ms).
[12:50:33][W][component:238]: Components should block for at most 30 ms.
...
[14:24:05][D][daikin_s21:261]: NAK from S21 for Rd query
[14:24:05][W][component:237]: Component daikin_s21 took a long time for an operation (291 ms).
[14:24:05][W][component:238]: Components should block for at most 30 ms.
[14:24:07][W][daikin_s21:265]: No ACK from S21 for F1 query
[14:24:07][E][uart:015]: Reading from UART timed out at byte 0!
[14:24:07][W][daikin_s21:257]: Timeout waiting for RH response
[14:24:07][W][daikin_s21:265]: No ACK from S21 for RI query
[14:24:07][W][daikin_s21:265]: No ACK from S21 for Ra query
[14:24:07][E][uart:015]: Reading from UART timed out at byte 0!
[14:24:07][W][daikin_s21:257]: Timeout waiting for RL response
[14:24:07][W][daikin_s21:265]: No ACK from S21 for Rd query
[14:24:07][W][component:237]: Component daikin_s21 took a long time for an operation (430 ms).
[14:24:07][W][component:238]: Components should block for at most 30 ms.
[14:24:09][D][daikin_s21.climate:312]: Room temp from external sensor: 23.8 °C (23.8 °C)
[14:24:09][D][daikin_s21.climate:313]:   Offset: 0.2
[14:24:09][W][daikin_s21:265]: No ACK from S21 for F1 query
[14:24:09][W][daikin_s21:225]: Checksum mismatch: 6a (frame) != 2a (calc from 07:31:30:33:4E:41)
[14:24:09][W][daikin_s21:271]: Failed reading F5 response frame
[14:24:09][W][daikin_s21:265]: No ACK from S21 for RH query
[14:24:09][W][daikin_s21:265]: No ACK from S21 for RI query
[14:24:09][W][daikin_s21:265]: No ACK from S21 for Ra query
[14:24:09][W][daikin_s21:265]: No ACK from S21 for RL query
[14:24:09][W][daikin_s21:265]: No ACK from S21 for Rd query
[14:24:09][W][component:237]: Component daikin_s21 took a long time for an operation (231 ms).
[14:24:09][W][component:238]: Components should block for at most 30 ms.
[14:24:11][W][daikin_s21:265]: No ACK from S21 for F1 query
[14:24:11][W][daikin_s21:265]: No ACK from S21 for F5 query
[14:24:11][W][daikin_s21:265]: No ACK from S21 for RH query
[14:24:11][W][daikin_s21:265]: No ACK from S21 for RI query
[14:24:11][W][daikin_s21:265]: No ACK from S21 for Ra query
[14:24:11][W][daikin_s21:265]: No ACK from S21 for RL query
[14:24:11][W][daikin_s21:265]: No ACK from S21 for Rd query
[14:24:11][W][component:237]: Component daikin_s21 took a long time for an operation (185 ms).
[14:24:11][W][component:238]: Components should block for at most 30 ms.
[14:24:13][W][daikin_s21:265]: No ACK from S21 for F1 query
[14:24:13][W][daikin_s21:265]: No ACK from S21 for F5 query
[14:24:13][W][daikin_s21:265]: No ACK from S21 for RH query
[14:24:13][W][daikin_s21:265]: No ACK from S21 for RI query
[14:24:13][W][daikin_s21:265]: No ACK from S21 for Ra query
[14:24:13][W][daikin_s21:207]: Unexpected ACK waiting to read start of frame
[14:24:13][W][daikin_s21:225]: Checksum mismatch: 9c (frame) != 5a (calc from 47:30:33:30:80)
[14:24:13][W][daikin_s21:271]: Failed reading RL response frame
[14:24:13][W][daikin_s21:265]: No ACK from S21 for Rd query
[14:24:13][W][component:237]: Component daikin_s21 took a long time for an operation (186 ms).
[14:24:13][W][component:238]: Components should block for at most 30 ms.

For a yaml template like this:

external_components:
  - source: github://joshbenner/esphome-daikin-s21@main
    components: [ daikin_s21 ]

uart:
  - id: s21_uart
    tx_pin: GPIO21
    rx_pin: GPIO20
    baud_rate: 2400
    data_bits: 8
    parity: EVEN
    stop_bits: 2

# The base UART communication hub.
daikin_s21:
  tx_uart: s21_uart
  rx_uart: s21_uart

climate:
  - name: $upper_devicename
    platform: daikin_s21
    visual:
      temperature_step: 1.0
    # Optional HA sensor used to alter setpoint.
    room_temperature_sensor: room_temp  # See homeassistant sensor below

# Optional additional sensors.
sensor:
  - platform: daikin_s21
    inside_temperature:
      name: $upper_devicename Inside Temperature
    outside_temperature:
      name: $upper_devicename Outside Temperature
    coil_temperature:
      name: $upper_devicename Coil Temperature
    fan_speed:
      name: $upper_devicename Fan Speed
  - platform: homeassistant
    id: room_temp
    entity_id: sensor.zb_salon_sensor_temperature
    unit_of_measurement: °C

Someone who has some ligth on this? Thank you!