Shelly pro4PM as bluetooth proxy - no BT devices detected in Home Assistant

I have a Shelly Pro4PM i would like to use as a Bluetooth proxy.
My shelly is installed with 1.3.3 firmware, wifi, static IP.
I have added websockets for HASS. no mqtt.

HASS: 2024.7.2 (Docker on Ubuntu).

On shelly i see in diagnostics:
shelly_notification:209 Event from script:1: {“component”:“script:1”,“id”:1,“event”:“ble.scan_result”,“data”:[2,[[“10:e3:78:27:17:67”,-81,“AgEaDf9MAAkIE8QKAAFjG1g=”,“”],[“d0:09:b6:ba:12:6e”,-94,“AgEGG//IAQLDWrRBpMUAe567ksJQxA3RuXIhELrISw==”,“”]]],“ts”:1721711670.70}
07:14:30
shelly_notification:209 Event from script:1: {“component”:“script:1”,“id”:1,“event”:“ble.scan_result”,“data”:[2,[[“7a:13:2f:a1:d0:75”,-86,“AgEaAgoMC/9MABAGFxrwmlBB”,“”],[“eb:64:d0:bd:1d:cf”,-74,“AgEGG//IAQJhxuULE0sAKXbLXqwsif78r/HLMfaUHA==”,“”]]],“ts”:1721711671.33}
07:14:31
shelly_notification:209 Event from script:1: {“component”:“script:1”,“id”:1,“event”:“ble.scan_result”,“data”:[2,[[“58:2b:db:47:ee:76”,-64,“AgEGAwMKGAsJUEFYIENhbGltYQIKAw==”,“”]]],“ts”:1721711671.98}
07:14:32
shelly_notification:209 Event from script:1: {“component”:“script:1”,“id”:1,“event”:“ble.scan_result”,“data”:[2,[[“c0:95:6d:a7:9e:cd”,-82,“AgEaAgoMCv9MABAFABQwiR0=”,“”]]],“ts”:1721711672.31}
07:14:32
shelly_notification:209 Event from script:1: {“component”:“script:1”,“id”:1,“event”:“ble.scan_result”,“data”:[2,[[“cc:6e:a4:32:4e:15”,-87,“AgEYG/91AEIEA0ATFwcBzG6kMk4VAADObqQyThQAAQ==”,“”]]],“ts”:1721711673.60}
07:14:33
shelly_notification:209 Event from script:1: {“component”:“script:1”,“id”:1,“event”:“ble.scan_result”,“data”:[2,[[“10:e3:78:27:17:67”,-80,“AgEaDf9MAAkIE8QKAAFjG1g=”,“”],[“d7:5b:53:f7:d0:d4”,-92,“AgEGD/9pCddbU/fQ1AD/Zp88Nw==”,“”]]],“ts”:1721711674.22}
07:14:34
shelly_notification:209 Event from script:1: {“component”:“script:1”,“id”:1,“event”:“ble.scan_result”,“data”:[2,[[“58:2b:db:06:72:02”,-72,“AgEGAwMKGAsJUEFYIENhbGltYQIKAw==”,“”]]],“ts”:1721711674.55}
07:14:34
shelly_notification:209 Event from script:1: {“component”:“script:1”,“id”:1,“event”:“ble.scan_result”,“data”:[2,[[“7a:13:2f:a1:d0:75”,-86,“AgEaAgoMC/9MABAGFxrwmlBB”,“”]]],“ts”:1721711675.20}
07:14:35
shelly_notification:209 Event from script:1: {“component”:“script:1”,“id”:1,“event”:“ble.scan_result”,“data”:[2,[[“fe:cb:22:4d:e1:4c”,-83,“AgEGG//IAQKQlqf4QjUAUNfLSnF4jWArsZM3SWlF9A==”,“”]]],“ts”:1721711675.52}
07:14:35
shelly_notification:209 Event from script:1: {“component”:“script:1”,“id”:1,“event”:“ble.scan_result”,“data”:[2,[[“c0:95:6d:a7:9e:cd”,-80,“AgEaAgoMCv9MABAFABQwiR0=”,“”]]],“ts”:1721711675.83}
07:14:35
shelly_notification:209 Event from script:1: {“component”:“script:1”,“id”:1,“event”:“ble.scan_result”,“data”:[2,[[“58:2b:db:47:ee:76”,-65,“AgEGAwMKGAsJUEFYIENhbGltYQIKAw==”,“”]]],“ts”:1721711676.14}

So shelly is detecting BT events.

In HASS on Shelly addon i see in the troubleshoot log:
2024-07-23 04:57:14.937 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Pro4ES handle update, type: RpcUpdateType.EVENT
2024-07-23 04:57:14.937 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(10.0.0.22): {‘src’: ‘shellypro4pm-30c6f784f0ac’, ‘dst’: ‘ws’, ‘method’: ‘NotifyEvent’, ‘params’: {‘ts’: 1721710634.88, ‘events’: [{‘component’: ‘script:1’, ‘id’: 1, ‘event’: ‘ble.scan_result’, ‘data’: [2, [[‘58:2b:db:06:72:02’, -72, ‘AgEGAwMKGAsJUEFYIENhbGltYQIKAw==’, ‘’], [‘4c:6e:8a:d3:32:b7’, -86, ‘AgEaAgoMC/9MABAGFRoFpQau’, ‘’], [‘fe:cb:22:4d:e1:4c’, -95, ‘AgEGG//IAQKQlqf4QjUAUNfLSnF4jWArsZM3SWlF9A==’, ‘’]]], ‘ts’: 1721710634.88}]}}
2024-07-23 04:57:14.937 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Calling WsRPC message update for device id 30C6F784F0AC
2024-07-23 04:57:14.937 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {‘ts’: 1721710634.88, ‘events’: [{‘component’: ‘script:1’, ‘id’: 1, ‘event’: ‘ble.scan_result’, ‘data’: [2, [[‘58:2b:db:06:72:02’, -72, ‘AgEGAwMKGAsJUEFYIENhbGltYQIKAw==’, ‘’], [‘4c:6e:8a:d3:32:b7’, -86, ‘AgEaAgoMC/9MABAGFRoFpQau’, ‘’], [‘fe:cb:22:4d:e1:4c’, -95, ‘AgEGG//IAQKQlqf4QjUAUNfLSnF4jWArsZM3SWlF9A==’, ‘’]]], ‘ts’: 1721710634.88}]}
2024-07-23 04:57:14.937 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Pro4ES handle update, type: RpcUpdateType.EVENT
2024-07-23 04:57:15.592 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(10.0.0.22:80): {‘src’: ‘shellypro4pm-30c6f784f0ac’, ‘dst’: ‘aios-140456154049008’, ‘method’: ‘NotifyEvent’, ‘params’: {‘ts’: 1721710635.54, ‘events’: [{‘component’: ‘script:1’, ‘id’: 1, ‘event’: ‘ble.scan_result’, ‘data’: [2, [[‘d7:5b:53:f7:d0:d4’, -93, ‘AgEGD/9pCddbU/fQ1AD/Zp84KA==’, ‘’], [‘cc:6e:a4:32:4e:15’, -87, ‘AgEYG/91AEIEA0ATFwcBzG6kMk4VAADObqQyThQAAQ==’, ‘’]]], ‘ts’: 1721710635.54}]}}
2024-07-23 04:57:15.593 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {‘ts’: 1721710635.54, ‘events’: [{‘component’: ‘script:1’, ‘id’: 1, ‘event’: ‘ble.scan_result’, ‘data’: [2, [[‘d7:5b:53:f7:d0:d4’, -93, ‘AgEGD/9pCddbU/fQ1AD/Zp84KA==’, ‘’], [‘cc:6e:a4:32:4e:15’, -87, ‘AgEYG/91AEIEA0ATFwcBzG6kMk4VAADObqQyThQAAQ==’, ‘’]]], ‘ts’: 1721710635.54}]}
2024-07-23 04:57:15.593 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Pro4ES handle update, type: RpcUpdateType.EVENT
2024-07-23 04:57:15.593 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] recv(10.0.0.22): {‘src’: ‘shellypro4pm-30c6f784f0ac’, ‘dst’: ‘ws’, ‘method’: ‘NotifyEvent’, ‘params’: {‘ts’: 1721710635.54, ‘events’: [{‘component’: ‘script:1’, ‘id’: 1, ‘event’: ‘ble.scan_result’, ‘data’: [2, [[‘d7:5b:53:f7:d0:d4’, -93, ‘AgEGD/9pCddbU/fQ1AD/Zp84KA==’, ‘’], [‘cc:6e:a4:32:4e:15’, -87, ‘AgEYG/91AEIEA0ATFwcBzG6kMk4VAADObqQyThQAAQ==’, ‘’]]], ‘ts’: 1721710635.54}]}}
2024-07-23 04:57:15.593 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Calling WsRPC message update for device id 30C6F784F0AC
2024-07-23 04:57:15.593 DEBUG (MainThread) [aioshelly.rpc_device.wsrpc] Notification: NotifyEvent {‘ts’: 1721710635.54, ‘events’: [{‘component’: ‘script:1’, ‘id’: 1, ‘event’: ‘ble.scan_result’, ‘data’: [2, [[‘d7:5b:53:f7:d0:d4’, -93, ‘AgEGD/9pCddbU/fQ1AD/Zp84KA==’, ‘’], [‘cc:6e:a4:32:4e:15’, -87, ‘AgEYG/91AEIEA0ATFwcBzG6kMk4VAADObqQyThQAAQ==’, ‘’]]], ‘ts’: 1721710635.54}]}
2024-07-23 04:57:15.593 DEBUG (MainThread) [homeassistant.components.shelly] Shelly Pro4ES handle update, type: RpcUpdateType.EVENT

It seems that Shelly and HASS is talking.

However i cannot se any “new devices” in HASS.

My goal is to add a PAX Calima BT FAN.

Any ideas?

I tryed to add:
bluetooth:

device_tracker:

  • platform: bluetooth_le_tracker
    track_new_devices: true
    track_battery: true
    track_battery_interval: 3600

Is there an integration for this device in HA ?

is was at least.

And did you install that custom component?

The Shelly proxy does not support active Bluetooth connections, so you would want to switch to an ESP Bluetooth Proxy

Hi Francisp,
ok, i tough that the Shelly was supposed to stay in “passive” mode, because it will receive all BT events.

I dropped the Shelly idea and testet a USB Bluetooth dongle into HASS and i did get it working yesterday :slight_smile:

Eddie

1 Like