Hey,
I’m trying to setup a nut bluetooth LE tracker as a presence detector, using openmqttgateway as an intermediate device.
I can get the incoming mqtt messages:
home/OpenMQTTGateway_ESP32_M5STICK_CP_BLE_IR/BTtoMQTT/FFFF18171423 {"id":"FF:FF:18:17:14:23","mac_type":0,"name":"nut","manufacturerdata":"11020025","rssi":-86,"servicedata":"ffff18171423","servicedatauuid":"0x180a"}
I’ve configured a device on configuration.yaml
with the following settings:
mqtt:
device_tracker:
- name: nut_1
device:
manufacturer: nut
model: white
connections:
- ["mac", "FF:FF:18:17:14:23"]
availability_topic: "home/OpenMQTTGateway_ESP32_M5STICK_CP_BLE_IR/BTtoMQTT/FFFF18171423"
availability_template: "{{ value_json.id }}"
payload_available: "FF:FF:18:17:14:23"
json_attributes_topic: "home/OpenMQTTGateway_ESP32_M5STICK_CP_BLE_IR/BTtoMQTT/FFFF18171423"
state_topic: "home/OpenMQTTGateway_ESP32_M5STICK_CP_BLE_IR/BTtoMQTT/FFFF18171423"
value_template: "{{ value_json.rssi }}"
#expire_after: 240
source_type: bluetooth_le
unique_id: nut_1
However, some settings seem to do nothing - I was kind of expecting the ‘value’ of the sensor to show just the RSSI, but it always shows the full json text, as if it was not extracting anything.
Also, the expire_after
setting seems to no longer be supported, and the main goal of this was to default to not_home
or at least unknown
after not being seen for longer than 4 minutes.
What am I missing? (I have an up to date home assistant)
Thank you!