Closed behnam85 closed 1 year ago
hello,
when i use multiple UART buses esphome fail config.
Failed config
sml: None
Too many candidates found for 'uart_id' type 'uart::UARTComponent' Some are 'my_uart', 'my_uart1'. []
################################################# esphome: name: sml-32
esp32: board: esp32dev framework: type: arduino
logger:
web_server: port: 80 local: true
api:
ota: password: "86ad66ea5b9b72bccf57812ec0157368"
wifi: ssid: Mi wifi1 password: behnam123
ap: {}
captive_portal:
external_components:
uart:
obis_d0:
sensor:
platform: obis_d0 name: "Positive active energy (A+) total" obis_d0_id: my_sm obis_code: "\x021.8.0" unit_of_measurement: kWh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kWh"
platform: obis_d0 name: "active energy (A+) in tariff T1" obis_d0_id: my_sm obis_code: "1.8.1" unit_of_measurement: kWh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kWh"
platform: obis_d0 name: "active energy (A+) in tariff T2" obis_d0_id: my_sm obis_code: "1.8.2" unit_of_measurement: kWh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kWh"
platform: obis_d0 name: "active energy (A+) in tariff T3" obis_d0_id: my_sm obis_code: "1.8.3" unit_of_measurement: kWh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kWh"
platform: obis_d0 name: "active energy (A+) in tariff T4" obis_d0_id: my_sm obis_code: "1.8.4" unit_of_measurement: kWh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kWh"
platform: obis_d0 name: "reactive energy (Q+) total" obis_d0_id: my_sm obis_code: "3.8.0" unit_of_measurement: kvarh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kvarh"
platform: obis_d0 name: "reactive energy (Q+) in tariff T1" obis_d0_id: my_sm obis_code: "3.8.1" unit_of_measurement: kvarh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kvarh"
platform: obis_d0 name: "reactive energy (Q+) in tariff T2" obis_d0_id: my_sm obis_code: "3.8.2" unit_of_measurement: kvarh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kvarh"
platform: obis_d0 name: "reactive energy (Q+) in tariff T3" obis_d0_id: my_sm obis_code: "3.8.3" unit_of_measurement: kvarh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kvarh"
platform: obis_d0 name: "reactive energy (Q+) in tariff T4" obis_d0_id: my_sm obis_code: "3.8.4" unit_of_measurement: kvarh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kvarh"
platform: obis_d0 name: "active maximum demand (A+) total" obis_d0_id: my_sm obis_code: "1.6.0" unit_of_measurement: kW accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{3}\.\d{3}\*kW"
platform: obis_d0 name: "reactive maximum demand (Q+) total" obis_d0_id: my_sm obis_code: "3.6.0" unit_of_measurement: kvar accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{3}\.\d{3}\*kvar"
platform: uptime name: Uptime id: uptime_sensor update_interval: 60s on_raw_value: then:
platform: wifi_signal name: "WiFi Signal Sensor" update_interval: 60s
text_sensor:
platform: obis_d0 name: "Device Identification" obis_d0_id: my_sm obis_code: "C.1.0"
value_regex: "\w{16}"
platform: template name: Uptime id: uptime_human icon: mdi:clock-start
platform: version name: "Version"
##############################
platform: wifi_info ip_address: name: IP Address ssid: name: Connected SSID bssid: name: Connected BSSID mac_address: name: Mac Wifi Address scan_results: name: Latest Scan Results
binary_sensor:
##################################
switch:
output:
button:
Please check if this fix works for you.
Hello . There is no error in compilation. thanks for solving this problem.
hello,
when i use multiple UART buses esphome fail config.
Failed config
sml: None
Too many candidates found for 'uart_id' type 'uart::UARTComponent' Some are 'my_uart', 'my_uart1'. []
################################################# esphome: name: sml-32
esp32: board: esp32dev framework: type: arduino
logger:
web_server: port: 80 local: true
api:
ota: password: "86ad66ea5b9b72bccf57812ec0157368"
wifi: ssid: Mi wifi1 password: behnam123
ap: {}
captive_portal:
external_components:
uart:
obis_d0:
sensor:
platform: obis_d0 name: "Positive active energy (A+) total" obis_d0_id: my_sm obis_code: "\x021.8.0" unit_of_measurement: kWh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kWh"
platform: obis_d0 name: "active energy (A+) in tariff T1" obis_d0_id: my_sm obis_code: "1.8.1" unit_of_measurement: kWh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kWh"
platform: obis_d0 name: "active energy (A+) in tariff T2" obis_d0_id: my_sm obis_code: "1.8.2" unit_of_measurement: kWh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kWh"
platform: obis_d0 name: "active energy (A+) in tariff T3" obis_d0_id: my_sm obis_code: "1.8.3" unit_of_measurement: kWh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kWh"
platform: obis_d0 name: "active energy (A+) in tariff T4" obis_d0_id: my_sm obis_code: "1.8.4" unit_of_measurement: kWh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kWh"
platform: obis_d0 name: "reactive energy (Q+) total" obis_d0_id: my_sm obis_code: "3.8.0" unit_of_measurement: kvarh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kvarh"
platform: obis_d0 name: "reactive energy (Q+) in tariff T1" obis_d0_id: my_sm obis_code: "3.8.1" unit_of_measurement: kvarh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kvarh"
platform: obis_d0 name: "reactive energy (Q+) in tariff T2" obis_d0_id: my_sm obis_code: "3.8.2" unit_of_measurement: kvarh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kvarh"
platform: obis_d0 name: "reactive energy (Q+) in tariff T3" obis_d0_id: my_sm obis_code: "3.8.3" unit_of_measurement: kvarh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kvarh"
platform: obis_d0 name: "reactive energy (Q+) in tariff T4" obis_d0_id: my_sm obis_code: "3.8.4" unit_of_measurement: kvarh accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{6}\.\d{2}\*kvarh"
platform: obis_d0 name: "active maximum demand (A+) total" obis_d0_id: my_sm obis_code: "1.6.0" unit_of_measurement: kW accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{3}\.\d{3}\*kW"
platform: obis_d0 name: "reactive maximum demand (Q+) total" obis_d0_id: my_sm obis_code: "3.6.0" unit_of_measurement: kvar accuracy_decimals: 4 state_class: total_increasing device_class: energy value_regex: "\d{3}\.\d{3}\*kvar"
platform: uptime name: Uptime id: uptime_sensor update_interval: 60s on_raw_value: then:
platform: wifi_signal name: "WiFi Signal Sensor" update_interval: 60s
text_sensor:
platform: obis_d0 name: "Device Identification" obis_d0_id: my_sm obis_code: "C.1.0"
value_regex: "\w{16}"
platform: template name: Uptime id: uptime_human icon: mdi:clock-start
platform: version name: "Version"
##############################
platform: wifi_info ip_address: name: IP Address ssid: name: Connected SSID bssid: name: Connected BSSID mac_address: name: Mac Wifi Address scan_results: name: Latest Scan Results
binary_sensor:
##################################
switch:
output:
button: