Esphome
This commit is contained in:
@@ -40,7 +40,7 @@ uart:
|
||||
tx_pin: GPIO27
|
||||
rx_pin: GPIO14
|
||||
baud_rate: 9600
|
||||
stop_bits: 1
|
||||
# stop_bits: 1
|
||||
|
||||
|
||||
#RS2332
|
||||
@@ -211,12 +211,33 @@ switch:
|
||||
inverted: true
|
||||
|
||||
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: modbus_controller
|
||||
modbus_controller_id: modbus_sensor
|
||||
name: "Temperature SHT30"
|
||||
id: temperature_sensor
|
||||
address: 0x0000
|
||||
register_type: holding
|
||||
address: 0x0001
|
||||
register_type: read
|
||||
value_type: U_WORD
|
||||
unit_of_measurement: "°C"
|
||||
accuracy_decimals: 1
|
||||
@@ -227,15 +248,14 @@ sensor:
|
||||
modbus_controller_id: modbus_sensor
|
||||
name: "Humidity_SHT30"
|
||||
id: humidity_sensor
|
||||
address: 0x0001
|
||||
register_type: holding
|
||||
address: 0x0002
|
||||
register_type: read
|
||||
value_type: U_WORD
|
||||
unit_of_measurement: "%"
|
||||
accuracy_decimals: 1
|
||||
filters:
|
||||
- multiply: 0.1
|
||||
|
||||
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
Reference in New Issue
Block a user