Esphome
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
esphome:
|
||||
name: test-kc868-a16
|
||||
friendly_name: Test-KC868-A16
|
||||
name: vanna-kc868-a6
|
||||
friendly_name: Vanna-KC868-A6
|
||||
|
||||
esp32:
|
||||
board: esp32dev
|
||||
@@ -47,8 +47,8 @@ wifi:
|
||||
|
||||
uart:
|
||||
- id: uart_modbus
|
||||
tx_pin: GPIO13
|
||||
rx_pin: GPIO16
|
||||
tx_pin: GPIO27
|
||||
rx_pin: GPIO14
|
||||
baud_rate: 9600
|
||||
|
||||
remote_receiver:
|
||||
@@ -56,16 +56,10 @@ remote_receiver:
|
||||
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
|
||||
number: GPIO15
|
||||
ignore_strapping_warning: true
|
||||
|
||||
# Config Modbus
|
||||
@@ -77,7 +71,7 @@ modbus_controller:
|
||||
- id: modbus_sensor
|
||||
address: 0x01 # device address
|
||||
modbus_id: modbus1
|
||||
update_interval: 10s
|
||||
update_interval: 2s
|
||||
|
||||
sensor:
|
||||
- platform: modbus_controller
|
||||
@@ -85,12 +79,18 @@ sensor:
|
||||
name: "RS485 Temperature Sensor"
|
||||
id: temperature_sensor
|
||||
address: 0x0001
|
||||
register_type: read
|
||||
value_type: U_WORD
|
||||
# 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;
|
||||
unit_of_measurement: "°C"
|
||||
register_type: read
|
||||
value_type: S_WORD
|
||||
accuracy_decimals: 1
|
||||
filters:
|
||||
- lambda: if (x < 10000) return x * 0.1; else return -1 * (x - 10000) * 0.1;
|
||||
- multiply: 0.1
|
||||
|
||||
|
||||
- platform: modbus_controller
|
||||
@@ -107,8 +107,8 @@ sensor:
|
||||
|
||||
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
auth:
|
||||
username: "silver"
|
||||
password: "cbvgcjy0"
|
||||
# web_server:
|
||||
# port: 80
|
||||
# auth:
|
||||
# username: "silver"
|
||||
# password: "cbvgcjy0"
|
||||
Reference in New Issue
Block a user