hello everyone, i buyed this device from Aliexpress, comes with xl9535 expander I/o
https://es.aliexpress.com/item/1005006142513530.html
I try to integrate with home assistants but sadly cant turn on or of the last 2 relays because comes with pin 16 and 17 i think, and in the code dont allow me to put GPIO number 16 and 17
esphome:
name: esp32
friendly_name: ESP32
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "xxx"
ota:
password: "xxx"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32 Fallback Hotspot"
password: "xxx"
captive_portal:
i2c:
sda: 21
scl: 22
scan: True
xl9535:
- id: xl9535_hub
address: 0x20
# Individual outputs
switch:
- platform: gpio
name: A0
pin:
xl9535: xl9535_hub
number: 0
mode:
output: true
inverted: true
- platform: gpio
name: A1
pin:
xl9535: xl9535_hub
number: 1
mode:
output: true
inverted: true
- platform: gpio
name: A2
pin:
xl9535: xl9535_hub
number: 2
mode:
output: true
inverted: true
- platform: gpio
name: A3
pin:
xl9535: xl9535_hub
number: 3
mode:
output: true
inverted: true
- platform: gpio
name: A4
pin:
xl9535: xl9535_hub
number: 4
mode:
output: true
inverted: true
- platform: gpio
name: A5
pin:
xl9535: xl9535_hub
number: 5
mode:
output: true
inverted: true
- platform: gpio
name: A6
pin:
xl9535: xl9535_hub
number: 6
mode:
output: true
inverted: true
- platform: gpio
name: A7
pin:
xl9535: xl9535_hub
number: 7
mode:
output: true
inverted: true
- platform: gpio
name: B0
pin:
xl9535: xl9535_hub
number: 10
mode:
output: true
inverted: true
- platform: gpio
name: B1
pin:
xl9535: xl9535_hub
number: 11
mode:
output: true
inverted: true
- platform: gpio
name: B2
pin:
xl9535: xl9535_hub
number: 12
mode:
output: true
inverted: true
- platform: gpio
name: B3
pin:
xl9535: xl9535_hub
number: 13
mode:
output: true
inverted: true
- platform: gpio
name: B4
pin:
xl9535: xl9535_hub
number: 14
mode:
output: true
inverted: true
- platform: gpio
name: B5
pin:
xl9535: xl9535_hub
number: 15
mode:
output: true
inverted: true
- platform: gpio
name: B6
pin:
xl9535: xl9535_hub
number: 8
mode:
output: true
inverted: true
- platform: gpio
name: B7
pin:
xl9535: xl9535_hub
number: 9
mode:
output: true
inverted: true
here i cant put the 8 and 9 pins, the corret pins are 16 and 17
Sorry for my bad english
Anyone know how to fix it?