To contribute to this page, edit the following file


Vendor Securifi
Description Peanut Smart Plug
Supports on/off, power measurement
Picture ../images/devices/PP-WHT-US.jpg



Additional steps are required because the Peanut Smart Plug does not provide a modelId in its database entry, and thus zigbee2mqtt cannot identify the product or how to handle it.

Reset the device and initiate pairing mode by holding the pairing button (the small button next to the on/off button) for ten seconds, releasing the button, and unplugging the device. When plugged back in, the front LED will be blinking red and ready to receive a pairing request. When paired successfully, the red LED on the plug will stop blinking.

After pairing, you must stop zigbee2mqtt and manually edit the zigbee2mqtt database.db file with a text editor (note that the file may be owned by root). Find each line where the Peanut Smart Plug is listed (look for β€œSecuriFi Ltd.” in the ManufName field) and add "modelId":"PP-WHT-US", between two existing fields.

For example, change ..."manufId":4098,"manufName":"Securifi Ltd.... to ..."manufId":4098,"modelId":"PP-WHT-US","manufName":"Securifi Ltd.... on each line for the device.

Save the file and restart zigbee2mqtt.

Manual Home Assistant configuration

Although Home Assistant integration through MQTT discovery is preferred, manual integration is possbile with the following configuration:


  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    payload_off: "OFF"
    payload_on: "ON"
    value_template: "{{ value_json.state }}"
    command_topic: "zigbee2mqtt/<FRIENDLY_NAME>/set"

  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    unit_of_measurement: "Watt"
    icon: "mdi:flash"
    value_template: "{{ value_json.power }}"

  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    unit_of_measurement: "-"
    value_template: "{{ value_json.linkquality }}"