399 lines
6.5 KiB
YAML
399 lines
6.5 KiB
YAML
esphome:
|
|
name: kontroller-kocheg-a16
|
|
friendly_name: Kontroller_Kocheg_a16
|
|
|
|
esp32:
|
|
board: esp32dev
|
|
framework:
|
|
type: esp-idf
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
encryption:
|
|
key: "cjSokZz0SdHshCFIhZ2m/kz9nyKzVDhK4IP3GXeuPe4="
|
|
|
|
ota:
|
|
- platform: esphome
|
|
password: "b8cd17679860ec655bec01d924f92a91"
|
|
|
|
ethernet:
|
|
type: LAN8720
|
|
mdc_pin: GPIO23
|
|
mdio_pin: GPIO18
|
|
clk_mode: GPIO17_OUT
|
|
phy_addr: 0
|
|
use_address: 192.168.88.25
|
|
|
|
manual_ip:
|
|
static_ip: 192.168.88.25
|
|
gateway: 192.168.88.1
|
|
subnet: 255.255.255.0
|
|
|
|
# wifi:
|
|
# # ssid: !secret wifi_ssid
|
|
# # password: !secret wifi_password
|
|
# ssid: "SmartHome"
|
|
# password: ""
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
# ap:
|
|
# ssid: "Kc868-A16 Fallback Hotspot"
|
|
# password: "gCJlyJ5kec3y"
|
|
|
|
|
|
uart:
|
|
- id: uart_modbus
|
|
tx_pin: GPIO13
|
|
rx_pin: GPIO16
|
|
baud_rate: 9600
|
|
|
|
remote_receiver:
|
|
pin:
|
|
number: GPIO2
|
|
ignore_strapping_warning: true
|
|
|
|
remote_transmitter:
|
|
pin:
|
|
number: GPIO15
|
|
ignore_strapping_warning: true
|
|
carrier_duty_percent: 100%
|
|
|
|
i2c:
|
|
sda: GPIO4
|
|
scl:
|
|
number: GPIO5
|
|
ignore_strapping_warning: true
|
|
|
|
pcf8574:
|
|
- id: inputs_1_8
|
|
address: 0x22
|
|
pcf8575: false
|
|
- id: inputs_9_16
|
|
address: 0x21
|
|
pcf8575: false
|
|
- id: outputs_1_8
|
|
address: 0x24
|
|
pcf8575: false
|
|
- id: outputs_9_16
|
|
address: 0x25
|
|
pcf8575: false
|
|
|
|
|
|
one_wire:
|
|
- platform: gpio
|
|
pin: GPIO32
|
|
id: bus32
|
|
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
name: "KC868-A16-HT2"
|
|
pin:
|
|
number: GPIO33
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "KC868-A16-HT3"
|
|
pin:
|
|
number: GPIO14
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "KC868-A16-X01"
|
|
pin:
|
|
pcf8574: inputs_1_8
|
|
number: 0
|
|
mode: INPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "KC868-A16-X02"
|
|
pin:
|
|
pcf8574: inputs_1_8
|
|
number: 1
|
|
mode: INPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "KC868-A16-X03"
|
|
pin:
|
|
pcf8574: inputs_1_8
|
|
number: 2
|
|
mode: INPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "KC868-A16-X04"
|
|
pin:
|
|
pcf8574: inputs_1_8
|
|
number: 3
|
|
mode: INPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "KC868-A16-X05"
|
|
pin:
|
|
pcf8574: inputs_1_8
|
|
number: 4
|
|
mode: INPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "KC868-A16-X06"
|
|
pin:
|
|
pcf8574: inputs_1_8
|
|
number: 5
|
|
mode: INPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "KC868-A16-X07"
|
|
pin:
|
|
pcf8574: inputs_1_8
|
|
number: 6
|
|
mode: INPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "KC868-A16-X08"
|
|
pin:
|
|
pcf8574: inputs_1_8
|
|
number: 7
|
|
mode: INPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "KC868-A16-X09"
|
|
pin:
|
|
pcf8574: inputs_9_16
|
|
number: 0
|
|
mode: INPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "KC868-A16-X10"
|
|
pin:
|
|
pcf8574: inputs_9_16
|
|
number: 1
|
|
mode: INPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "KC868-A16-X11"
|
|
pin:
|
|
pcf8574: inputs_9_16
|
|
number: 2
|
|
mode: INPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "KC868-A16-X12"
|
|
pin:
|
|
pcf8574: inputs_9_16
|
|
number: 3
|
|
mode: INPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "KC868-A16-X13"
|
|
pin:
|
|
pcf8574: inputs_9_16
|
|
number: 4
|
|
mode: INPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "KC868-A16-X14"
|
|
pin:
|
|
pcf8574: inputs_9_16
|
|
number: 5
|
|
mode: INPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "KC868-A16-X15"
|
|
pin:
|
|
pcf8574: inputs_9_16
|
|
number: 6
|
|
mode: INPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "KC868-A16-X16"
|
|
pin:
|
|
pcf8574: inputs_9_16
|
|
number: 7
|
|
mode: INPUT
|
|
inverted: true
|
|
|
|
|
|
switch:
|
|
- platform: gpio
|
|
name: "Output01"
|
|
id: out_y01
|
|
pin:
|
|
pcf8574: outputs_1_8
|
|
number: 0
|
|
mode: OUTPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "Output02"
|
|
id: out_y02
|
|
pin:
|
|
pcf8574: outputs_1_8
|
|
number: 1
|
|
mode: OUTPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "Output03"
|
|
id: out_y03
|
|
pin:
|
|
pcf8574: outputs_1_8
|
|
number: 2
|
|
mode: OUTPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "Output04"
|
|
id: out_y04
|
|
pin:
|
|
pcf8574: outputs_1_8
|
|
number: 3
|
|
mode: OUTPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "Output05"
|
|
id: out_y05
|
|
pin:
|
|
pcf8574: outputs_1_8
|
|
number: 4
|
|
mode: OUTPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "Output06"
|
|
id: out_y06
|
|
pin:
|
|
pcf8574: outputs_1_8
|
|
number: 5
|
|
mode: OUTPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "Output07"
|
|
id: out_y07
|
|
pin:
|
|
pcf8574: outputs_1_8
|
|
number: 6
|
|
mode: OUTPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "Output08"
|
|
id: out_y08
|
|
pin:
|
|
pcf8574: outputs_1_8
|
|
number: 7
|
|
mode: OUTPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "Output09"
|
|
id: out_y09
|
|
pin:
|
|
pcf8574: outputs_9_16
|
|
number: 0
|
|
mode: OUTPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "Output10"
|
|
id: out_y10
|
|
pin:
|
|
pcf8574: outputs_9_16
|
|
number: 1
|
|
mode: OUTPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "Output11"
|
|
id: out_y11
|
|
pin:
|
|
pcf8574: outputs_9_16
|
|
number: 2
|
|
mode: OUTPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "Output12"
|
|
id: out_y12
|
|
pin:
|
|
pcf8574: outputs_9_16
|
|
number: 3
|
|
mode: OUTPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "Output13"
|
|
id: out_y13
|
|
pin:
|
|
pcf8574: outputs_9_16
|
|
number: 4
|
|
mode: OUTPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "Output14"
|
|
id: out_y14
|
|
pin:
|
|
pcf8574: outputs_9_16
|
|
number: 5
|
|
mode: OUTPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "Output15"
|
|
id: out_y15
|
|
pin:
|
|
pcf8574: outputs_9_16
|
|
number: 6
|
|
mode: OUTPUT
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
name: "Output16"
|
|
id: out_y16
|
|
pin:
|
|
pcf8574: outputs_9_16
|
|
number: 7
|
|
mode: OUTPUT
|
|
inverted: true
|
|
|
|
# substitutions:
|
|
# update_interval: 1s
|
|
|
|
sensor:
|
|
- platform: dallas_temp
|
|
one_wire_id: bus32
|
|
name: "DS18B20"
|
|
update_interval: 30s
|
|
|
|
|
|
web_server:
|
|
port: 80
|
|
auth:
|
|
username: "silver"
|
|
password: "cbvgcjy0"
|
|
|
|
mqtt:
|
|
broker: 192.168.88.4
|
|
username: 'miroca'
|
|
password: 'cbvgcjy0'
|
|
discovery: False # disable entity discovery
|
|
discover_ip: True # enable device discovery |