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

S21_sim not compiling - missing yaml config #18

Closed ggaljoen closed 3 months ago

ggaljoen commented 3 months ago

Great to have a simulator!

I can not have it compiled, missing yaml file structure or other unknown setting.

s21_sim.yaml

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

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

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

-error screen-

INFO ESPHome 2024.2.2
INFO Reading configuration /config/esphome/s21-sim.yaml...
Failed config

s21_sim: [source /config/esphome/s21-sim.yaml:49]

  [tx_uart] is an invalid option for [s21_sim]. Please check the indentation.
  tx_uart: s21_uart

  [rx_uart] is an invalid option for [s21_sim]. Please check the indentation.
  rx_uart: s21_uart
joshbenner commented 3 months ago

The s21 sim was a component I hacked on to test some stuff, and is not in a usable state. The error you see is likely because the parameters are currently commented out for some reason I do not remember.