I try to use OpenMQTTGateway with openHab for BLE devices and most of it looks OK. I see my devices in the Inbox and can add the devices to things and create items but for some reason everything keeps status Unknown of offline.
What I see in mosquitto
homeassistant/sensor/3C71BFC3B83CgatewayBT/config {“stat_t”:“myhouse_ble/OpenMQTTGateway_ESP32_BLE/BTtoMQTT”,“name”:“gatewayBT”,“uniq_id”:“3C71BFC3B83CgatewayBT”,“val_tpl”:“{{ value_json.id | is_defined }}”,“device”:{“name”:“OpenMQTTGateway_ESP32_BLE”,“manufacturer”:“OMG_community”,“sw_version”:“v0.9.5”,“identifiers”:[“3C71BFC3B83C”]}}
homeassistant/sensor/A4C1385E2D55-LYWSD03MMC-batt/config {“stat_t”:“myhouse_ble/OpenMQTTGateway_ESP32_BLE/BTtoMQTT/A4C1385E2D55”,“name”:“LYWSD03MMC-batt”,“uniq_id”:“A4C1385E2D55-LYWSD03MMC-batt”,“dev_cla”:“battery”,“val_tpl”:“{{ value_json.batt | is_defined }}”,“unit_of_meas”:“%”}
homeassistant/sensor/A4C1385E2D55-LYWSD03MMC-volt/config {“stat_t”:“myhouse_ble/OpenMQTTGateway_ESP32_BLE/BTtoMQTT/A4C1385E2D55”,“name”:“LYWSD03MMC-volt”,“uniq_id”:“A4C1385E2D55-LYWSD03MMC-volt”,“val_tpl”:“{{ value_json.volt | is_defined }}”,“unit_of_meas”:“V”}
homeassistant/sensor/A4C1385E2D55-LYWSD03MMC-tempc/config {“stat_t”:“myhouse_ble/OpenMQTTGateway_ESP32_BLE/BTtoMQTT/A4C1385E2D55”,“name”:“LYWSD03MMC-tempc”,“uniq_id”:“A4C1385E2D55-LYWSD03MMC-tempc”,“dev_cla”:“temperature”,“val_tpl”:“{{ value_json.tempc | is_defined }}”,“unit_of_meas”:“C”}
homeassistant/sensor/A4C1385E2D55-LYWSD03MMC-tempf/config {“stat_t”:“myhouse_ble/OpenMQTTGateway_ESP32_BLE/BTtoMQTT/A4C1385E2D55”,“name”:“LYWSD03MMC-tempf”,“uniq_id”:“A4C1385E2D55-LYWSD03MMC-tempf”,“dev_cla”:“temperature”,“val_tpl”:“{{ value_json.tempf | is_defined }}”,“unit_of_meas”:“F”}
homeassistant/sensor/A4C1385E2D55-LYWSD03MMC-hum/config {“stat_t”:“myhouse_ble/OpenMQTTGateway_ESP32_BLE/BTtoMQTT/A4C1385E2D55”,“name”:“LYWSD03MMC-hum”,“uniq_id”:“A4C1385E2D55-LYWSD03MMC-hum”,“dev_cla”:“humidity”,“val_tpl”:“{{ value_json.hum | is_defined }}”,“unit_of_meas”:“%”}
homeassistant/binary_sensor/3C71BFC3B83C/config {“stat_t”:“myhouse_ble/OpenMQTTGateway_ESP32_BLE/LWT”,“name”:“OpenMQTTGateway_ESP32_BLE”,“uniq_id”:“3C71BFC3B83C”,“dev_cla”:“connectivity”,“pl_on”:“online”,“pl_off”:“offline”,“pl_avail”:“online”,“pl_not_avail”:“offline”}
homeassistant/switch/3C71BFC3B83Crestart/config {“stat_t”:“myhouse_ble/OpenMQTTGateway_ESP32_BLE/LWT”,“name”:“restart OMG”,“uniq_id”:“3C71BFC3B83Crestart”,“pl_on”:“{"cmd":"restart"}”,“pl_avail”:“online”,“pl_not_avail”:“offline”,“cmd_t”:“myhouse_ble/OpenMQTTGateway_ESP32_BLE/commands/MQTTtoSYS/config”,“device”:{“name”:“OpenMQTTGateway_ESP32_BLE”,“manufacturer”:“OMG_community”,“sw_version”:“v0.9.5”,“identifiers”:[“3C71BFC3B83C”]}}
homeassistant/switch/3C71BFC3B83Cerase/config {“stat_t”:“myhouse_ble/OpenMQTTGateway_ESP32_BLE/LWT”,“name”:“erase OMG”,“uniq_id”:“3C71BFC3B83Cerase”,“pl_on”:“{"cmd":"erase"}”,“pl_avail”:“online”,“pl_not_avail”:“offline”,“cmd_t”:“myhouse_ble/OpenMQTTGateway_ESP32_BLE/commands/MQTTtoSYS/config”,“device”:{“name”:“OpenMQTTGateway_ESP32_BLE”,“manufacturer”:“OMG_community”,“sw_version”:“v0.9.5”,“identifiers”:[“3C71BFC3B83C”]}}
hostname/lwt_topic offline
ble/lwt_topic offline
myhouse_ble/OpenMQTTGateway_ESP32_BLE/LWT online
myhouse_ble/OpenMQTTGateway_ESP32_BLE/version v0.9.5
home/home_presence/OpenMQTTGateway_ESP32_BLE {“id”:“A4:C1:38:5E:2D:55”,“name”:“LYWSD03MMC”,“rssi”:-72,“distance”:4.287841}
myhouse_ble/OpenMQTTGateway_ESP32_BLE/BTtoMQTT/A4C1385E2D55 {“id”:“A4:C1:38:5E:2D:55”,“name”:“LYWSD03MMC”,“rssi”:-72,“distance”:4.287841,“servicedata”:“30585b0501552d5e38c1a4280100”}
I think this looks OK but for some reason I get errors in the log when I create an item.
[ab.binding.mqtt.generic.ChannelState] - Incoming payload ‘’ not supported by type ‘NumberValue’
Is this a known bug?