html
This commit is contained in:
96
archive/esp01s.yaml
Normal file
96
archive/esp01s.yaml
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
esphome:
|
||||||
|
name: heart
|
||||||
|
|
||||||
|
esp8266:
|
||||||
|
board: esp01_1m
|
||||||
|
|
||||||
|
# Enable logging
|
||||||
|
logger:
|
||||||
|
|
||||||
|
# Enable Home Assistant API
|
||||||
|
api:
|
||||||
|
encryption:
|
||||||
|
key: "+N0FoP/8Iai5hBYZv5EEd2/uZypPe1nvQSskIOo8aeA="
|
||||||
|
|
||||||
|
ota:
|
||||||
|
- platform: esphome
|
||||||
|
password: "cf4259c67a56c86316e14d48ff6e867f"
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: "SmartHome"
|
||||||
|
password: ""
|
||||||
|
|
||||||
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||||
|
ap:
|
||||||
|
# ssid: "Gas-Kitchen Fallback Hotspot"
|
||||||
|
# password: "0n8oXqMAAFPU"
|
||||||
|
|
||||||
|
use_address: 192.168.88.32
|
||||||
|
|
||||||
|
manual_ip:
|
||||||
|
static_ip: 192.168.88.32
|
||||||
|
gateway: 192.168.88.1
|
||||||
|
subnet: 255.255.255.0
|
||||||
|
|
||||||
|
captive_portal:
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: gpio
|
||||||
|
pin: GPIO0
|
||||||
|
name: "Heart switch"
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
# The following can be omitted
|
||||||
|
- platform: restart
|
||||||
|
name: ${devicename} restart
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: wifi_signal
|
||||||
|
name: ${devicename} wifi signal
|
||||||
|
update_interval: 600s
|
||||||
|
|
||||||
|
# human readable uptime sensor output to the text sensor above
|
||||||
|
- platform: uptime
|
||||||
|
name: ${devicename} Uptime in Days
|
||||||
|
id: uptime_sensor_days
|
||||||
|
update_interval: 60s
|
||||||
|
on_raw_value:
|
||||||
|
then:
|
||||||
|
- text_sensor.template.publish:
|
||||||
|
id: uptime_human
|
||||||
|
state: !lambda |-
|
||||||
|
int seconds = round(id(uptime_sensor_days).raw_state);
|
||||||
|
int days = seconds / (24 * 3600);
|
||||||
|
seconds = seconds % (24 * 3600);
|
||||||
|
int hours = seconds / 3600;
|
||||||
|
seconds = seconds % 3600;
|
||||||
|
int minutes = seconds / 60;
|
||||||
|
seconds = seconds % 60;
|
||||||
|
return (
|
||||||
|
(days ? String(days) + "d " : "") +
|
||||||
|
(hours ? String(hours) + "h " : "") +
|
||||||
|
(minutes ? String(minutes) + "m " : "") +
|
||||||
|
(String(seconds) + "s")
|
||||||
|
).c_str();
|
||||||
|
|
||||||
|
time:
|
||||||
|
- platform: homeassistant
|
||||||
|
id: homeassistant_time
|
||||||
|
|
||||||
|
# Text sensors with general information.
|
||||||
|
text_sensor:
|
||||||
|
# Expose ESPHome version as sensor.
|
||||||
|
- platform: version
|
||||||
|
name: $devicename Version
|
||||||
|
# Expose WiFi information as sensors.
|
||||||
|
- platform: wifi_info
|
||||||
|
ip_address:
|
||||||
|
name: $devicename IP
|
||||||
|
bssid:
|
||||||
|
name: $devicename BSSID
|
||||||
|
|
||||||
|
# human readable update text sensor from sensor:uptime
|
||||||
|
- platform: template
|
||||||
|
name: Uptime Human Readable
|
||||||
|
id: uptime_human
|
||||||
|
icon: mdi:clock-start
|
||||||
92
archive/icebox.yaml
Normal file
92
archive/icebox.yaml
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
substitutions:
|
||||||
|
device_name: icebox
|
||||||
|
|
||||||
|
esphome:
|
||||||
|
name: ${device_name}
|
||||||
|
friendly_name: ${device_name}
|
||||||
|
|
||||||
|
bk72xx:
|
||||||
|
board: cbu
|
||||||
|
|
||||||
|
# Enable logging
|
||||||
|
logger:
|
||||||
|
|
||||||
|
# Enable Home Assistant API
|
||||||
|
api:
|
||||||
|
encryption:
|
||||||
|
key: "TJrP8SvFc28OkOZXBpEdrzwmsDBVNLzyNTQHOnwcMwA="
|
||||||
|
|
||||||
|
ota:
|
||||||
|
- platform: esphome
|
||||||
|
password: "7ca52a2f120b01d35476a7df8597199a"
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: SmartHome
|
||||||
|
password: ""
|
||||||
|
use_address: 192.168.88.50
|
||||||
|
|
||||||
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||||
|
# ap:
|
||||||
|
# ssid: "Icebox Fallback Hotspot"
|
||||||
|
# password: "zGa3diAiL6T7"
|
||||||
|
manual_ip:
|
||||||
|
static_ip: 192.168.88.50
|
||||||
|
gateway: 192.168.88.1
|
||||||
|
subnet: 255.255.255.0
|
||||||
|
|
||||||
|
captive_portal:
|
||||||
|
|
||||||
|
# status_led:
|
||||||
|
# pin:
|
||||||
|
# number: GPIO9
|
||||||
|
# inverted: true
|
||||||
|
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: gpio
|
||||||
|
pin: P7
|
||||||
|
id: relay1
|
||||||
|
- platform: gpio
|
||||||
|
pin: P8
|
||||||
|
id: relay2
|
||||||
|
- platform: gpio
|
||||||
|
pin: P9
|
||||||
|
id: relay3
|
||||||
|
|
||||||
|
# binary_sensor:
|
||||||
|
# - platform: gpio
|
||||||
|
# pin:
|
||||||
|
# number: P6
|
||||||
|
# mode: INPUT_PULLUP
|
||||||
|
# inverted: True
|
||||||
|
# name: ${device_name} switch 1
|
||||||
|
# on_press:
|
||||||
|
# - light.toggle: relay1
|
||||||
|
# on_release:
|
||||||
|
# - light.toggle: relay1
|
||||||
|
# - platform: gpio
|
||||||
|
# pin:
|
||||||
|
# number: P24
|
||||||
|
# mode: INPUT_PULLUP
|
||||||
|
# inverted: True
|
||||||
|
# name: ${device_name} switch 2
|
||||||
|
# on_press:
|
||||||
|
# - light.toggle: relay2
|
||||||
|
# on_release:
|
||||||
|
# - light.toggle: relay2
|
||||||
|
# - platform: gpio
|
||||||
|
# pin:
|
||||||
|
# number: P26
|
||||||
|
# mode: INPUT_PULLUP
|
||||||
|
# inverted: True
|
||||||
|
# name: ${device_name} switch 3
|
||||||
|
# on_press:
|
||||||
|
# - light.toggle: relay3
|
||||||
|
# on_release:
|
||||||
|
# - light.toggle: relay3
|
||||||
|
|
||||||
|
web_server:
|
||||||
|
port: 80
|
||||||
|
auth:
|
||||||
|
username: "silver"
|
||||||
|
password: "cbvgcjy0"
|
||||||
285
archive/small-home.yaml
Normal file
285
archive/small-home.yaml
Normal file
@@ -0,0 +1,285 @@
|
|||||||
|
esphome:
|
||||||
|
name: small-home
|
||||||
|
friendly_name: Small-home
|
||||||
|
|
||||||
|
esp32:
|
||||||
|
board: esp32dev
|
||||||
|
framework:
|
||||||
|
type: esp-idf
|
||||||
|
|
||||||
|
# Enable logging
|
||||||
|
logger:
|
||||||
|
|
||||||
|
# Enable Home Assistant API
|
||||||
|
api:
|
||||||
|
encryption:
|
||||||
|
key: "/EFz4JsOw/FQu2RGJEmHg9+xm5/UdBeNbTd6mQbDN/U="
|
||||||
|
|
||||||
|
ota:
|
||||||
|
- platform: esphome
|
||||||
|
password: "0dac1ac3f1bae5208cc8ea81356da792"
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: "SmartHome"
|
||||||
|
password: ""
|
||||||
|
use_address: 192.168.88.27
|
||||||
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||||
|
# ap:
|
||||||
|
# ssid: "Kc868-A8 Fallback Hotspot"
|
||||||
|
# password: "gCJlyJ5kec3y"
|
||||||
|
|
||||||
|
manual_ip:
|
||||||
|
static_ip: 192.168.88.27
|
||||||
|
gateway: 192.168.88.1
|
||||||
|
subnet: 255.255.255.0
|
||||||
|
|
||||||
|
|
||||||
|
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.27
|
||||||
|
|
||||||
|
# manual_ip:
|
||||||
|
# static_ip: 192.168.88.27
|
||||||
|
# gateway: 192.168.88.1
|
||||||
|
# subnet: 255.255.255.0
|
||||||
|
# dns1: 192.168.88.1
|
||||||
|
|
||||||
|
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"
|
||||||
|
id: switch_output1
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf8574_hub_out_1
|
||||||
|
number: 0
|
||||||
|
mode: OUTPUT
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "a8-output2"
|
||||||
|
id: switch_output2
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf8574_hub_out_1
|
||||||
|
number: 1
|
||||||
|
mode: OUTPUT
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "a8-output3"
|
||||||
|
id: switch_output3
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf8574_hub_out_1
|
||||||
|
number: 2
|
||||||
|
mode: OUTPUT
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "a8-output4"
|
||||||
|
id: switch_output4
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf8574_hub_out_1
|
||||||
|
number: 3
|
||||||
|
mode: OUTPUT
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "a8-output5"
|
||||||
|
id: switch_output5
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf8574_hub_out_1
|
||||||
|
number: 4
|
||||||
|
mode: OUTPUT
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "a8-output6"
|
||||||
|
id: switch_output6
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf8574_hub_out_1
|
||||||
|
number: 5
|
||||||
|
mode: OUTPUT
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "a8-output7"
|
||||||
|
id: switch_output7
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf8574_hub_out_1
|
||||||
|
number: 6
|
||||||
|
mode: OUTPUT
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "a8-output8"
|
||||||
|
id: switch_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
|
||||||
|
on_press:
|
||||||
|
- switch.toggle: switch_output1
|
||||||
|
on_release:
|
||||||
|
- switch.toggle: switch_output1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "a8-input2"
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf8574_hub_in_1
|
||||||
|
number: 1
|
||||||
|
mode: INPUT
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
- switch.toggle: switch_output2
|
||||||
|
on_release:
|
||||||
|
- switch.toggle: switch_output2
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "a8-input3"
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf8574_hub_in_1
|
||||||
|
number: 2
|
||||||
|
mode: INPUT
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
- switch.toggle: switch_output3
|
||||||
|
on_release:
|
||||||
|
- switch.toggle: switch_output3
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "a8-input4"
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf8574_hub_in_1
|
||||||
|
number: 3
|
||||||
|
mode: INPUT
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
- switch.toggle: switch_output4
|
||||||
|
on_release:
|
||||||
|
- switch.toggle: switch_output4
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "a8-input5"
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf8574_hub_in_1
|
||||||
|
number: 4
|
||||||
|
mode: INPUT
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
- switch.toggle: switch_output5
|
||||||
|
on_release:
|
||||||
|
- switch.toggle: switch_output5
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "a8-input6"
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf8574_hub_in_1
|
||||||
|
number: 5
|
||||||
|
mode: INPUT
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
- switch.toggle: switch_output6
|
||||||
|
on_release:
|
||||||
|
- switch.toggle: switch_output6
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "a8-input7"
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf8574_hub_in_1
|
||||||
|
number: 6
|
||||||
|
mode: INPUT
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
- switch.toggle: switch_output7
|
||||||
|
on_release:
|
||||||
|
- switch.toggle: switch_output7
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "a8-input8"
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf8574_hub_in_1
|
||||||
|
number: 7
|
||||||
|
mode: INPUT
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
- switch.toggle: switch_output8
|
||||||
|
on_release:
|
||||||
|
- switch.toggle: switch_output8
|
||||||
|
|
||||||
|
- 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: 2s
|
||||||
|
on_value_range:
|
||||||
|
- above: 27.0
|
||||||
|
then:
|
||||||
|
- delay: 10s
|
||||||
|
- switch.turn_on: switch_output8
|
||||||
|
- below: 26.5
|
||||||
|
then:
|
||||||
|
- delay: 10s
|
||||||
|
- switch.turn_off: switch_output8
|
||||||
|
|
||||||
|
|
||||||
|
# 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
|
||||||
251
archive/ventilation-bath.yaml
Normal file
251
archive/ventilation-bath.yaml
Normal file
@@ -0,0 +1,251 @@
|
|||||||
|
esphome:
|
||||||
|
name: ventilation-bath
|
||||||
|
friendly_name: Ventilation-bath
|
||||||
|
|
||||||
|
esp32:
|
||||||
|
board: esp32dev
|
||||||
|
framework:
|
||||||
|
type: arduino
|
||||||
|
|
||||||
|
# Enable logging
|
||||||
|
logger:
|
||||||
|
|
||||||
|
# Enable Home Assistant API
|
||||||
|
api:
|
||||||
|
encryption:
|
||||||
|
key: "lchXaoHfpB83F50n78hQX2+whi5p0V5TpTCdbegE/Sg="
|
||||||
|
|
||||||
|
ota:
|
||||||
|
- platform: esphome
|
||||||
|
password: "539b8a397419f5db2ba6f6e3192eca2f"
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: 'SmartHome'
|
||||||
|
password: ''
|
||||||
|
use_address: 192.168.88.29
|
||||||
|
|
||||||
|
manual_ip:
|
||||||
|
static_ip: 192.168.88.29
|
||||||
|
gateway: 192.168.88.1
|
||||||
|
subnet: 255.255.255.0
|
||||||
|
|
||||||
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||||
|
# ap:
|
||||||
|
# ssid: "Kc868-A6 Fallback Hotspot"
|
||||||
|
# password: "Eqh4eO1YIQUi"
|
||||||
|
|
||||||
|
uart:
|
||||||
|
#RS485
|
||||||
|
- id: uart_modbus
|
||||||
|
tx_pin: GPIO27
|
||||||
|
rx_pin: GPIO14
|
||||||
|
baud_rate: 9600
|
||||||
|
# stop_bits: 1
|
||||||
|
|
||||||
|
|
||||||
|
#RS2332
|
||||||
|
- id: rs232
|
||||||
|
tx_pin: GPIO17
|
||||||
|
rx_pin: GPIO16
|
||||||
|
baud_rate: 9600
|
||||||
|
|
||||||
|
spi:
|
||||||
|
clk_pin: GPIO18
|
||||||
|
mosi_pin: GPIO23
|
||||||
|
miso_pin: GPIO19
|
||||||
|
# cs pin: GPIO5
|
||||||
|
|
||||||
|
# modbus:
|
||||||
|
# uart_id: uart_modbus
|
||||||
|
# id: modbus1
|
||||||
|
|
||||||
|
# modbus_controller:
|
||||||
|
# - id: modbus_sensor
|
||||||
|
# address: 0x01 # device address
|
||||||
|
# modbus_id: modbus1
|
||||||
|
# update_interval: 2s
|
||||||
|
|
||||||
|
i2c:
|
||||||
|
sda: GPIO4
|
||||||
|
scl:
|
||||||
|
number: GPIO15
|
||||||
|
ignore_strapping_warning: true
|
||||||
|
|
||||||
|
pcf8574:
|
||||||
|
- id: inputs
|
||||||
|
address: 0x22
|
||||||
|
- id: outputs
|
||||||
|
address: 0x24
|
||||||
|
|
||||||
|
time:
|
||||||
|
- platform: ds1307
|
||||||
|
id: rtc_time
|
||||||
|
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: gpio
|
||||||
|
name: "KC868-A6-IN-1"
|
||||||
|
pin:
|
||||||
|
pcf8574: inputs
|
||||||
|
number: 0
|
||||||
|
mode: INPUT
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
- switch.toggle: switch_output1
|
||||||
|
on_release:
|
||||||
|
- switch.toggle: switch_output1
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "KC868-A6-IN-2"
|
||||||
|
pin:
|
||||||
|
pcf8574: inputs
|
||||||
|
number: 1
|
||||||
|
mode: INPUT
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
- switch.toggle: switch_output2
|
||||||
|
on_release:
|
||||||
|
- switch.toggle: switch_output2
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "KC868-A6-IN-3"
|
||||||
|
pin:
|
||||||
|
pcf8574: inputs
|
||||||
|
number: 2
|
||||||
|
mode: INPUT
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
- switch.toggle: switch_output3
|
||||||
|
on_release:
|
||||||
|
- switch.toggle: switch_output3
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "KC868-A6-IN-4"
|
||||||
|
pin:
|
||||||
|
pcf8574: inputs
|
||||||
|
number: 3
|
||||||
|
mode: INPUT
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
- switch.toggle: switch_output4
|
||||||
|
on_release:
|
||||||
|
- switch.toggle: switch_output4
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "KC868-A6-IN-5"
|
||||||
|
pin:
|
||||||
|
pcf8574: inputs
|
||||||
|
number: 4
|
||||||
|
mode: INPUT
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
- switch.toggle: switch_output5
|
||||||
|
on_release:
|
||||||
|
- switch.toggle: switch_output5
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "KC868-A6-IN-6"
|
||||||
|
pin:
|
||||||
|
pcf8574: inputs
|
||||||
|
number: 5
|
||||||
|
mode: INPUT
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
- switch.toggle: switch_output6
|
||||||
|
on_release:
|
||||||
|
- switch.toggle: switch_output6
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: gpio
|
||||||
|
name: "KC868-A6-RELAY-1"
|
||||||
|
id: switch_output1
|
||||||
|
pin:
|
||||||
|
pcf8574: outputs
|
||||||
|
number: 0
|
||||||
|
mode: OUTPUT
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "KC868-A6-RELAY-2"
|
||||||
|
id: switch_output2
|
||||||
|
pin:
|
||||||
|
pcf8574: outputs
|
||||||
|
number: 1
|
||||||
|
mode: OUTPUT
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "KC868-A6-RELAY-3"
|
||||||
|
id: switch_output3
|
||||||
|
pin:
|
||||||
|
pcf8574: outputs
|
||||||
|
number: 2
|
||||||
|
mode: OUTPUT
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "KC868-A6-RELAY-4"
|
||||||
|
id: switch_output4
|
||||||
|
pin:
|
||||||
|
pcf8574: outputs
|
||||||
|
number: 3
|
||||||
|
mode: OUTPUT
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "KC868-A6-RELAY-5"
|
||||||
|
id: switch_output5
|
||||||
|
pin:
|
||||||
|
pcf8574: outputs
|
||||||
|
number: 4
|
||||||
|
mode: OUTPUT
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: "KC868-A6-RELAY-6"
|
||||||
|
id: switch_output6
|
||||||
|
pin:
|
||||||
|
pcf8574: outputs
|
||||||
|
number: 5
|
||||||
|
mode: OUTPUT
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
# - platform: modbus_controller
|
||||||
|
# modbus_controller_id: modbus_sensor
|
||||||
|
# name: "Temperature SHT30"
|
||||||
|
# id: temperature_sensor
|
||||||
|
# address: 0x0001
|
||||||
|
# register_type: read
|
||||||
|
# value_type: U_WORD
|
||||||
|
# unit_of_measurement: "°C"
|
||||||
|
# accuracy_decimals: 1
|
||||||
|
# filters:
|
||||||
|
# - lambda: if (x < 10000) return x * 0.1; else return -1 * (x - 10000) * 0.1;
|
||||||
|
|
||||||
|
# - platform: modbus_controller
|
||||||
|
# modbus_controller_id: modbus_sensor
|
||||||
|
# name: "Humidity_SHT30"
|
||||||
|
# id: humidity_sensor
|
||||||
|
# address: 0x0002
|
||||||
|
# register_type: read
|
||||||
|
# value_type: U_WORD
|
||||||
|
# unit_of_measurement: "%"
|
||||||
|
# accuracy_decimals: 1
|
||||||
|
# filters:
|
||||||
|
# - multiply: 0.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
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