EspHome
This commit is contained in:
@@ -1,223 +0,0 @@
|
||||
esphome:
|
||||
name: kontroller-kocheg-a8
|
||||
friendly_name: Kontroller_Kocheg_a8
|
||||
|
||||
esp32:
|
||||
board: esp32dev
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: "fLsIKyVhqlbxu8nVcb/Nn2nUoETpucfLcF6+G/sZDKw="
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: "1d28579639e8fc6e113c751c4cda7ff5"
|
||||
|
||||
i2c:
|
||||
sda: 4
|
||||
scl: 5
|
||||
scan: true
|
||||
id: bus_a
|
||||
|
||||
ethernet:
|
||||
type: LAN8720
|
||||
mdc_pin: GPIO23
|
||||
mdio_pin: GPIO18
|
||||
clk_mode: GPIO17_OUT
|
||||
phy_addr: 0
|
||||
use_address: 192.168.88.26
|
||||
|
||||
manual_ip:
|
||||
static_ip: 192.168.88.26
|
||||
gateway: 192.168.88.1
|
||||
subnet: 255.255.255.0
|
||||
|
||||
pcf8574:
|
||||
- id: 'pcf8574_hub_out_1' # for output channel 1-8
|
||||
address: 0x24
|
||||
|
||||
- id: 'pcf8574_hub_in_1' # for input channel 1-8
|
||||
address: 0x22
|
||||
|
||||
|
||||
# Individual outputs
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: "a8-output1"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_out_1
|
||||
number: 0
|
||||
mode: OUTPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-output2"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_out_1
|
||||
number: 1
|
||||
mode: OUTPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-output3"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_out_1
|
||||
number: 2
|
||||
mode: OUTPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-output4"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_out_1
|
||||
number: 3
|
||||
mode: OUTPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-output5"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_out_1
|
||||
number: 4
|
||||
mode: OUTPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-output6"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_out_1
|
||||
number: 5
|
||||
mode: OUTPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-output7"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_out_1
|
||||
number: 6
|
||||
mode: OUTPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-output8"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_out_1
|
||||
number: 7
|
||||
mode: OUTPUT
|
||||
inverted: true
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: "a8-input1"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_in_1
|
||||
number: 0
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-input2"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_in_1
|
||||
number: 1
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-input3"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_in_1
|
||||
number: 2
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-input4"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_in_1
|
||||
number: 3
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-input5"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_in_1
|
||||
number: 4
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-input6"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_in_1
|
||||
number: 5
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-input7"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_in_1
|
||||
number: 6
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-input8"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_in_1
|
||||
number: 7
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-s3"
|
||||
pin:
|
||||
number: 32
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-s4"
|
||||
pin:
|
||||
number: 33
|
||||
inverted: true
|
||||
|
||||
one_wire:
|
||||
- platform: gpio
|
||||
pin: GPIO14
|
||||
id: bus14
|
||||
|
||||
- platform: gpio
|
||||
pin: GPIO13
|
||||
id: bus13
|
||||
|
||||
sensor:
|
||||
- platform: dallas_temp
|
||||
one_wire_id: bus14
|
||||
name: "DS18B20_kontroller"
|
||||
update_interval: 30s
|
||||
|
||||
- platform: dallas_temp
|
||||
one_wire_id: bus13
|
||||
name: "DS18B20_server"
|
||||
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
|
||||
Reference in New Issue
Block a user