and enable multiple services data readings for Mijia standard device. Indeed the new version seems to publish several service data compared to old ones.
Please note that I'have update the library with the work of @fguiet
see: https://github.com/nkolban/ESP32_BLE_Arduino/pull/24
Without the is_defined filter home assistant will reset the value to an empty string every time a topic is posted without the value template ie when `home/OpenMQTTGateway/BTtoMQTT/--SNIP-- {"moi":2}` is posted - all other sensor with associated topic `home/OpenMQTTGateway/BTtoMQTT/--SNIP--` will get `""` as their value
#373
to change the BLE scan interval publish a payload {"interval":66666} in
ms to "home/OpenMQTTGateway/commands/MQTTtoBT/set"
to generate a scan publish a 0 interval payload {"interval":0}
Avoid publishing auto discovery on a time basis
publish auto discovery only one time per BLE sensor
add BLE white and black list implementation
set black list
mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/set -m '{"black-list":["012314551615","4C6577889C79","edfrgtyjulik"]}'
set white list
mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/set -m '{"white-list":["012314551615","4C65A5553C79","edfrgtyjulik"]}'
* replace string by char array comparison
* take mac adress from user_config for arduino ethernet shield
* remove code for managing HM10 with version < v6xx
* add sys measure call for arduino mega
* code size decrease and optim
* MQTT discovery factoring
* add DHT discovery
* BME topic macro change
* add sensors to ha discovery
* correct a comment typo #327
* let the possibility at buildtime to don't publish service data
* reduce string usage
* change MQTT ONOFF actuator to ON OFF commands instead of true false
* add ZactuatorONOFF discovery
* add simple publishing for GPIO input
* Add RF switch and gateway discovery
* factoring of the publishing function
* integration of json publishing to MQTT
* receiving and transcode json messages from mqtt
* replace the TRACE runtime condition by a buildtime one so as to decrease program size
* remove retainFlag parameter not necessary for the moment
* Increase the scope of tests for arduino mega and esp32
* Update arduinojson library to 5.13.3
* add macros to choose between simple or json publishing or both
* differentiate build test for ATmega2560
* correct wrong sprintf definition
* change IDE version for continuous integration
* let default warning level in arduino ide
* correct pins for ESP32
* reorganize user_config
indeed if negative temperature the hex value is of type 0xffe9 for
example giving a number > 65000, to deduct the negative value we need to
substract 0xffff to the hex value
* esp32 init
* RF gateway ok with ESP32
* correct IR gateway compilation errors and test RF2 ok
* divide config per board type
* update test file according user_config
* differentiate variable type following IR libraries aka platforms
* implement BLE beacons detection with ESP32
* Implement multitasking on BLE gateway
* Library add and change core assignement
* change core assignement for BLE
* add mi flora value readings with ESP32
* adding some traces and removing unecessary comment
* correct compilation error due to pin assignement
* correct temperature float value and wrong mac adress rssi publishing
* add esp32 to CI
* correct esp32 ide retrieving
* correcting paths
* CI: correct architecture
* libraries update (irremote) and overwrite ble library files