Esphome
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
esphome:
|
||||
name: kontroller-kocheg-a8
|
||||
friendly_name: Kontroller_Kocheg_a8
|
||||
friendly_name: kocheg_a8
|
||||
|
||||
esp32:
|
||||
board: esp32dev
|
||||
@@ -38,6 +38,20 @@ ethernet:
|
||||
gateway: 192.168.88.1
|
||||
subnet: 255.255.255.0
|
||||
|
||||
remote_receiver:
|
||||
pin: 15
|
||||
dump:
|
||||
- rc_switch
|
||||
tolerance: 100%
|
||||
filter: 250us
|
||||
idle: 4ms
|
||||
buffer_size: 4kb
|
||||
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
# RF uses a 100% carrier signal
|
||||
carrier_duty_percent: 100%
|
||||
|
||||
pcf8574:
|
||||
- id: 'pcf8574_hub_out_1' # for output channel 1-8
|
||||
address: 0x24
|
||||
@@ -49,6 +63,7 @@ pcf8574:
|
||||
# Individual outputs
|
||||
switch:
|
||||
- platform: gpio
|
||||
id: switch_output1
|
||||
name: "a8-output1"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_out_1
|
||||
@@ -57,6 +72,7 @@ switch:
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
id: switch_output2
|
||||
name: "a8-output2"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_out_1
|
||||
@@ -65,6 +81,7 @@ switch:
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
id: switch_output3
|
||||
name: "a8-output3"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_out_1
|
||||
@@ -73,7 +90,8 @@ switch:
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-output4"
|
||||
id: switch_output4
|
||||
name: "close_gas"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_out_1
|
||||
number: 3
|
||||
@@ -81,7 +99,8 @@ switch:
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-output5"
|
||||
id: switch_output5
|
||||
name: "open_gas"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_out_1
|
||||
number: 4
|
||||
@@ -89,6 +108,7 @@ switch:
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
id: switch_output6
|
||||
name: "a8-output6"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_out_1
|
||||
@@ -97,6 +117,7 @@ switch:
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
id: switch_output7
|
||||
name: "a8-output7"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_out_1
|
||||
@@ -105,6 +126,7 @@ switch:
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
id: switch_output8
|
||||
name: "a8-output8"
|
||||
pin:
|
||||
pcf8574: pcf8574_hub_out_1
|
||||
@@ -113,6 +135,28 @@ switch:
|
||||
inverted: true
|
||||
|
||||
binary_sensor:
|
||||
- platform: remote_receiver
|
||||
name: "remoter1"
|
||||
rc_switch_raw:
|
||||
protocol: 3
|
||||
code: '000000111110110100001'
|
||||
# on_press:
|
||||
# - switch.turn_off: switch_output7
|
||||
# - switch.turn_on: switch_output6
|
||||
filters:
|
||||
- delayed_off: 20ms
|
||||
|
||||
- platform: remote_receiver
|
||||
name: "remoter2"
|
||||
rc_switch_raw:
|
||||
protocol: 3
|
||||
code: '000000111110110100010'
|
||||
# on_press:
|
||||
# - switch.turn_off: switch_output6
|
||||
# - switch.turn_on: switch_output7
|
||||
filters:
|
||||
- delayed_off: 20ms
|
||||
|
||||
- platform: gpio
|
||||
name: "a8-input1"
|
||||
pin:
|
||||
@@ -199,6 +243,28 @@ one_wire:
|
||||
id: bus13
|
||||
|
||||
sensor:
|
||||
- platform: ina219
|
||||
address: 0x40
|
||||
shunt_resistance: 0.1 ohm
|
||||
current:
|
||||
name: "INA219 Current"
|
||||
unit_of_measurement: "A"
|
||||
power:
|
||||
name: "INA219 Power"
|
||||
unit_of_measurement: "W"
|
||||
filters:
|
||||
- multiply: 10
|
||||
bus_voltage:
|
||||
name: "INA219 Bus Voltage"
|
||||
unit_of_measurement: "V"
|
||||
shunt_voltage:
|
||||
name: "INA219 Shunt Voltage"
|
||||
unit_of_measurement: "V"
|
||||
max_voltage: 32.0V
|
||||
max_current: 3.2A
|
||||
update_interval: 1s
|
||||
|
||||
|
||||
- platform: dallas_temp
|
||||
one_wire_id: bus14
|
||||
name: "DS18B20_kontroller"
|
||||
|
||||
Reference in New Issue
Block a user