ESPHome - Blitzwolf BW-SHP6 configuration

Thanks, but unfortunately this won’t work either? Could it be that they changed the hardware?

Can you double check this line under the sensor section.
cf1_pin: GPIO04

It has to be 04 and not 14

Aha, That’s the failure! Overlooked! Thanks it is working now ! :grinning: :+1:

I like the idea of using the red led to show if there is power consumption above a certain threshold!

But does anyone know how to make a binary sensor out of that? Something that would have the value True if power => 10 W for instance, and False if < 10W.

Oh wait I can just comment out internal: true from the declaration of the LED_Red :slight_smile:

Hi all.I am a beginner and i have 5-6 BW-SHP6 .i running HA on PI 3 .did a solution for upgrade ower the air software to works wit home assistant ?? that is for me now the only option.

or any link for buying 3d printed flash tool

Thanks

It depends of the version of software in you SHP6. But you can do it also without 3D printed part, just more attention is needed.

But I did not even try to flash my lates batch of Blitzwolf smart sockets, since local integration https://github.com/rospogrigio/localtuya works perfectly

And how would you set that if for example power is below 10w is blue and when above 10w is red?

Andrej did i understand you right, SHPG can work with HA without any extra flashing of device like sonoff ??? i need power monitoring from devices.

regards

i connect SHP6 with Smart life and i see a device in HA Tuya integration but no any possibility to use like sensors for now .any solution ??

do NOT use Tuya integration!
You have to use LocalTuya integration from https://github.com/rospogrigio/localtuya

The trickies part here is only to get the LocalKey, but the instructions are good so there should be no issue. Then you can have full energy monitoring with the options you want, as if you would flash it. Also the communication is only local, so if you do not want to share data with tuya cloud, you can simply block them on router after everything is set

Continuing the discussion from ESPHome - Blitzwolf BW-SHP6 configuration:

dear all, i would like to ask you help to solve the following issue:
i have flashed shp6 with esphome fw. it was successful, after connecting to 230V, it was connected to wifi, and worked for a while. later on has become unstable, the blue led is blinking, the red does not light up.
i tried to reflash, but can not connect to my serial adapter, the pc does not recognize it.
I have 3 plughs, all works like this.
I use the example from here

Hi all,
can someone help me with a 15A shp6 configuration?
this is my current yaml:

esphome:
  name: 3d-printer
  platform: ESP8266
  board: esp8285

substitutions:
  device_name: "3D printer"
  # Higher value gives lower watt readout
  current_res: "0.00290"
  # Lower value gives lower voltage readout
  voltage_div: "940"
  # Max Power is 3450W for 15A 
  max_power: "3450"

  # BW-SHP6, outlet with powermonitoring.
  # One button for the relay, and one red led for the relay, as well as a blue status led
  # Static IP is configured, and fast_connect is enabled, as the SSID is hidden
  # Webserver is active and pw protected, and the OTA is password protected


wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  
  ap:
    ssid: ${devicename} Hotspot
    password: "hotspot_pwd"

web_server:
  port: 80
  
logger:
  baud_rate: 0

# Enable Home Assistant API
api:
  password: "homeassistant!"

ota:
  password: "flash!"


# Button configuration
binary_sensor:
  - platform: gpio
    name: "${device_name} button"
    id: button
    pin:
      number: GPIO13
      inverted: true
    on_press:
      then:
        - switch.toggle: relay

# Setup of LED's used in displaying Switch status
output:
  - platform: gpio
    pin: GPIO0
    inverted: true
    id: led

# Config for switch
switch:
  - platform: gpio
    pin: GPIO15
    restore_mode: RESTORE_DEFAULT_OFF
    id: relay
    name: "${device_name} Relay"
    on_turn_on:
      - output.turn_on: led
    on_turn_off:
      - output.turn_off: led

# Status LED for connection
status_led:
  pin:
    number: GPIO2
    inverted: true

# Sensors for Voltage (V), Current (A), Power (W), Daily energy usage (kWh)
sensor:
  - platform: hlw8012
    sel_pin:
      number: GPIO12
      inverted: true
    cf_pin: GPIO5
    cf1_pin: GPIO14
    current_resistor: ${current_res}
    voltage_divider: ${voltage_div}
    current:
      name: "${device_name} Current"
      unit_of_measurement: "A"
      accuracy_decimals: 3
      icon: mdi:flash-outline
    voltage:
      name: "${device_name} Voltage"
      unit_of_measurement: "V"
      icon: mdi:flash-outline
    power:
      name: "${device_name} Power"
      unit_of_measurement: "W"
      id: power
      icon: mdi:flash-outline
    energy:
      name: "${device_name} Energy"
      unit_of_measurement: "Wh"
      icon: mdi:flash-outline
    change_mode_every: 4
    update_interval: 10s

  - platform: wifi_signal
    name: "WiFi Signal Sensor"
    update_interval: 60s
  - platform: uptime
    name: Uptime Sensor

The problem is that I don’t have Voltage and Current readings:

Any hint?

thanks a lot!

I think I found the glitch cf1_pin is wrongly configured.

Hello,

I changed my Wifi Router and my BW-SHP6 can’t connect to my Wifi.
How does modify my wifi configuration or reset my plug ?

Thanks for your help.