Shelly BLU devices / BTHome

Third generation (gen3), fourth generation (gen4) and PRO Shelly devices can directly manage bluetooth devices complying with the BTHome standard. This standard is followed by all Shelly bluetooth (BLU) devices.
In practice the association of a BTHome/Bluetooth device to a device connected to the LAN (through wi-fi or ethernet cable) allows the latter to see information coming from the first device including sensors associated with it and their relative measurements as if they were part of the device connected to the LAN, furthermore the creation of specific actions/webhooks becomes practical.
The device hosting the BTHome data does not necessarily have to be the bluetooth gateway to which the BLU device is connected however, if the device hosting the BTHome information coincides with the gateway, the connection between the two devices can be estabilished even when the wi-fi network is down.
There can also be multiple hosting devices for the same BTHome device; I do not find a practical reason for this and I do not recommend such a configuration that could be a source of confusion, unpredictable behaviour and wrong settings.

For example, by connecting a Shelly BLU Button1 to a Shelly 1PM Gen3 it will be possible to control its relay using the button without scenes involving the cloud but with a simple webhook that uses only the local network.

Configuration

To perform the association you need to enter the web interface of the future host device (with Shelly Scanner you access the web interface by selecting the row corresponding to the device and pressing the Web UI button on the toolbar).
From here things may change slightly depending on the model of the host device and its firmware version, however the steps should be easily reconstructable.
From the web interface press the "Components" button on the left menu and then press the "+" button in the "Bluetooth (BTHome) devices" section; at this point, following the instructions, you can associate the BLU device. You still need to associate the "sensors" of the BLU device to the host device; to do this press the "gear" button which will be found in the box of the device just associated and, from here, add the sensors of interest (it is also possible to edit some values such as the names of the sensors); in case not all sensors are listed press the button to wake up the BLU device and, eventually, update the web page.

Shelly Scanner support

Shelly Scanner takes into account BLU devices associated with the BTHome protocol to a wi-fi Shelly device by generating a row for them in the main table.
There are some specifics on the table:
  • Status: when the device is online, the status is displayed with a specific blu icon ; the icon's tooltip provides information about the last connection between the BLU device and the host device.
  • IP: this is the IP of the host device; to the right of the value, in brackets, there is a number that corresponds to the number of devices hosting the same BTHome device; on the checklist, if this number is greater than one, the full list of IPs is dispayed. As I said before, a configuration including more than one host device seems to me of little practical use and a source of confusion.
Also some toolbar buttons get a specifics behaviour:
  • the logs displayed are those of the hosting device since they include those of the bluetooth device;
  • the Web UI of the hosting device is shown in whose "Components" section there is the device to which the selected row refers.

Reload (contextual menu): the reload actually acts on the hosting device; all guest devices are then reloaded