esphome: name: m1 platform: ESP32 board: esp32dev uart: - id: uart_bus tx_pin: GPIO13 rx_pin: GPIO14 baud_rate: 9600 stop_bits: 1 # Enable logging logger: # Enable Home Assistant API api: # Example configuration entry ethernet: type: LAN8720 mdc_pin: GPIO23 mdio_pin: GPIO18 clk_mode: GPIO17_OUT phy_addr: 0 sensor: - platform: bl0942 uart_id: uart_bus update_interval: 3s voltage: name: 'M1 Voltage' current: name: 'M1 Current' filters: multiply: 0.1965 power: name: 'M1 Power' energy: name: 'M1 Energy' frequency: name: "M1 Frequency" accuracy_decimals: 2 - platform: dallas address: 0xa10b239c78d83828 name: "Temperature1" - platform: dallas address: 0x7c0b239c4681d228 name: "Temperature2" switch: - platform: gpio pin: 33 name: "M1-relay" binary_sensor: - platform: gpio pin: 32 name: "M1-sensor-DI" dallas: - pin: GPIO16 update_interval: 5s web_server: port: 80