devices.esphome.io
Shelly Plus 1PM Mini
Shelly Plus 1PM Mini
Device Type: relayBoard: esp32
GPIO Pinout
Pin | Function |
---|---|
GPI03 | NTC |
GPI05 | Relay |
GPI06 | BL0942 TX |
GPI07 | BL0942 RX |
GPI10 | Switch Input |
Serial Pinout
Basic Configuration
substitutions: device_name: "Shelly Plus 1PM Mini"
esphome: name: spare-mini friendly_name: "Shelly Plus 1PM Mini"
esp32: board: esp32-c3-devkitm-1 framework: type: esp-idf version: recommended sdkconfig_options: COMPILER_OPTIMIZATION_SIZE: y advanced: ignore_efuse_mac_crc: false
wifi: ssid: !secret wifi_ssid password: !secret wifi_password ap: ssid: "$(device_name) Fallback Hotspot" password: !secret wifi_password
logger:
api: encryption: key: !secret api_encryption_key
ota: password: !secret ota_password
time: - platform: homeassistant
captive_portal:
output: - platform: gpio id: "relay_output" pin: GPIO05
light: - platform: binary name: "Light" output: relay_output id: lightid restore_mode: ALWAYS_OFF
binary_sensor: - platform: gpio name: "Switch" pin: GPIO10 on_state: then: - light.toggle: "lightid"
sensor: - platform: ntc sensor: temp_resistance_reading name: "Temperature" unit_of_measurement: "°C" accuracy_decimals: 1 icon: "mdi:thermometer" calibration: b_constant: 3350 reference_resistance: 10kOhm reference_temperature: 298.15K on_value_range: - above: "80.0" then: - light.turn_off: "lightid" - platform: resistance id: temp_resistance_reading sensor: temp_analog_reading configuration: DOWNSTREAM resistor: 10kOhm - platform: adc id: temp_analog_reading pin: GPIO3 attenuation: 12db
- platform: bl0942 uart_id: uart_bus voltage: name: 'Voltage' current: name: 'Current' power: name: 'Power' frequency: name: "Frequency" accuracy_decimals: 2 update_interval: 5s
uart: id: uart_bus tx_pin: GPIO6 rx_pin: GPIO7 baud_rate: 9600 stop_bits: 1