---
# Test configuration for panasonic_heatpump component on ESP32-C3
# ESP32-C3 is a compact chip with limited GPIO pins

esp32:
  board: esp32-c3-devkitm-1
  variant: esp32c3
  framework:
    type: esp-idf

esphome:
  name: test-panasonic-heatpump-esp32c3
  friendly_name: "Test Panasonic Heatpump ESP32-C3"

logger:
  level: DEBUG

external_components:
  - source:
      type: local
      path: ../../components
    components: [panasonic_heatpump]

uart:
  - id: uart_heatpump
    tx_pin: GPIO4
    rx_pin: GPIO5
    baud_rate: 9600
    data_bits: 8
    parity: EVEN
    stop_bits: 1

# Test basic configuration
panasonic_heatpump:
  id: my_heatpump
  uart_id: uart_heatpump

# Test sensor types - first item only
sensor:
  - platform: panasonic_heatpump
    top1:
      name: "Pump Flow"

# Test binary sensors - first item only
binary_sensor:
  - platform: panasonic_heatpump
    top0:
      name: "Heatpump State"

# Test text sensors - first item only
text_sensor:
  - platform: panasonic_heatpump
    top4:
      name: "Operating Mode State"

# Test number controls - first item only
number:
  - platform: panasonic_heatpump
    set5:
      name: "Set Z1 Heat Request Temperature"

# Test select controls - first item only
select:
  - platform: panasonic_heatpump
    set2:
      name: "Set Holiday Mode"

# Test switch controls - first item only
switch:
  - platform: panasonic_heatpump
    set1:
      name: "Set Heatpump"

# Test climate controls - first item only
climate:
  - platform: panasonic_heatpump
    zone1:
      name: "Zone 1"

# Test water_heater controls - first item only
water_heater:
  - platform: panasonic_heatpump
    tank:
      name: "DHW"
