EspHome
This commit is contained in:
@@ -102,7 +102,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "KC868-A16-X01"
|
name: "input1_veranda_osv"
|
||||||
pin:
|
pin:
|
||||||
pcf8574: inputs_1_8
|
pcf8574: inputs_1_8
|
||||||
number: 0
|
number: 0
|
||||||
@@ -110,7 +110,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "KC868-A16-X02"
|
name: "input2_veranda_stolb_krylco"
|
||||||
pin:
|
pin:
|
||||||
pcf8574: inputs_1_8
|
pcf8574: inputs_1_8
|
||||||
number: 1
|
number: 1
|
||||||
@@ -118,7 +118,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "KC868-A16-X03"
|
name: "input3_veranda_osvechen"
|
||||||
pin:
|
pin:
|
||||||
pcf8574: inputs_1_8
|
pcf8574: inputs_1_8
|
||||||
number: 2
|
number: 2
|
||||||
@@ -126,7 +126,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "KC868-A16-X04"
|
name: "input4_krylco_veranda"
|
||||||
pin:
|
pin:
|
||||||
pcf8574: inputs_1_8
|
pcf8574: inputs_1_8
|
||||||
number: 3
|
number: 3
|
||||||
@@ -134,7 +134,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "KC868-A16-X05"
|
name: "input5_krylco_stolb"
|
||||||
pin:
|
pin:
|
||||||
pcf8574: inputs_1_8
|
pcf8574: inputs_1_8
|
||||||
number: 4
|
number: 4
|
||||||
@@ -142,7 +142,7 @@ binary_sensor:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "KC868-A16-X06"
|
name: "input6_krylco_osv"
|
||||||
pin:
|
pin:
|
||||||
pcf8574: inputs_1_8
|
pcf8574: inputs_1_8
|
||||||
number: 5
|
number: 5
|
||||||
@@ -268,7 +268,7 @@ switch:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "Output05"
|
name: "Output05_teplica"
|
||||||
id: out_y05
|
id: out_y05
|
||||||
pin:
|
pin:
|
||||||
pcf8574: outputs_1_8
|
pcf8574: outputs_1_8
|
||||||
@@ -277,7 +277,7 @@ switch:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "Output06"
|
name: "Output06_podsvetka"
|
||||||
id: out_y06
|
id: out_y06
|
||||||
pin:
|
pin:
|
||||||
pcf8574: outputs_1_8
|
pcf8574: outputs_1_8
|
||||||
@@ -286,7 +286,7 @@ switch:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "Output07"
|
name: "Output07_stolb"
|
||||||
id: out_y07
|
id: out_y07
|
||||||
pin:
|
pin:
|
||||||
pcf8574: outputs_1_8
|
pcf8574: outputs_1_8
|
||||||
@@ -295,7 +295,7 @@ switch:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: "Output08"
|
name: "Output08_rozetka"
|
||||||
id: out_y08
|
id: out_y08
|
||||||
pin:
|
pin:
|
||||||
pcf8574: outputs_1_8
|
pcf8574: outputs_1_8
|
||||||
|
|||||||
231
teplica-a8.yaml
Normal file
231
teplica-a8.yaml
Normal file
@@ -0,0 +1,231 @@
|
|||||||
|
esphome:
|
||||||
|
name: teplica_a8
|
||||||
|
friendly_name: Teplica_A8
|
||||||
|
|
||||||
|
esp32:
|
||||||
|
board: esp32dev
|
||||||
|
framework:
|
||||||
|
type: arduino
|
||||||
|
|
||||||
|
# Enable logging
|
||||||
|
logger:
|
||||||
|
|
||||||
|
# Enable Home Assistant API
|
||||||
|
api:
|
||||||
|
encryption:
|
||||||
|
key: "3iphXwtysZ+BHDKmxmTnXKCjASbfFW+W1r6la1n9OIA="
|
||||||
|
|
||||||
|
ota:
|
||||||
|
- platform: esphome
|
||||||
|
password: "402f0dc3631f8d2379d60af0df352763"
|
||||||
|
|
||||||
|
|
||||||
|
# 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-A8 Fallback Hotspot"
|
||||||
|
# password: "gCJlyJ5kec3y"
|
||||||
|
|
||||||
|
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.24
|
||||||
|
|
||||||
|
manual_ip:
|
||||||
|
static_ip: 192.168.88.24
|
||||||
|
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
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: dallas_temp
|
||||||
|
one_wire_id: bus14
|
||||||
|
name: "DS18B20"
|
||||||
|
update_interval: 30s
|
||||||
|
|
||||||
|
- platform: adc
|
||||||
|
pin: 34
|
||||||
|
name: "A8S A1"
|
||||||
|
device_class: 'humidity'
|
||||||
|
update_interval: 5s
|
||||||
|
unit_of_measurement: "%"
|
||||||
|
attenuation: 11db
|
||||||
|
filters:
|
||||||
|
- median:
|
||||||
|
window_size: 7
|
||||||
|
send_every: 4
|
||||||
|
send_first_at: 1
|
||||||
|
- calibrate_linear:
|
||||||
|
- 0.23 -> 100.00
|
||||||
|
- 0.43 -> 0.00
|
||||||
|
- lambda: if (x < 0) return 0; else if (x > 100) return 100;else return (x);
|
||||||
|
accuracy_decimals: 0
|
||||||
Reference in New Issue
Block a user