Whilst setting up bluetooth on Pi4 for Xiaomi BLE and Switchbot meter integrations i found that my CPU usage tripled when using active scanning vs passive - since i only want active for the switchbot under certain conditions can configuration options like this be toggled via script or automation?
Im using Home assistant on docker with an external usb bluetooth dongle