The code working amazingly good!
For the first time i got my 4 Miflower sensors working
I publish all the sensor values, mqtt -> nodered -> Domoticz
I see the sensor updates really quickly every 1 min aprox so battery draining fast atm.
I tried to delay for each sensor update to 1 hour with mqtt command with help of putty:
mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT/config -m â{âintervalâ:3600000}â
But the sensor is still getting updated every 1 min aprox.
Im not handy with platformini, i just flashed the standard esp32 image.
Can i update the interval with putty and that it is saved?
I would like to update
Temp
Moisture
Lux
Feritily
every 1 hour,
At the moment I see the sensor values passing in nodered in 4 messages everyone with 1 sensor value like discribed in the wiki
I think something might have gone wrong with trying to update the interval, as scans are only really done after every interval time, so setting it to {âintervalâ:3600000} should not really still give updates around every 1 minute. Also I would assume that your sensors would only get connected to every 10 scan cycles (default ScanBeforeConnect 10 in config_BT.h), but then I am not familiar with the Miflower sensors and their connection functionality.
Could it be that your command to set the interval has a wrong topic/gateway name? Not sure what the default gateway name of the standard esp32 BLE image is, could it be OpenMQTTGateway_ESP32_BLE? So the command for setting the interval should be
Atm MQTT explorer gives the value
{âuptimeâ:1802,âversionâ:âv0.9.5â,âfreememâ:177796,ârssiâ:-59,âSSIDâ:âsecretâ,âipâ:â192.168.1.152â,âmacâ:âsecretâ,âwifiprtâ:0,âlowpowermodeâ:0,âintervalâ:55555,âscanbcnctâ:10,âmodulesâ:âBTHADiscoveryâ}
So indeed the value is not updated.
My gateway name is indeed diffrent
standard image: home/OpenMQTTGateway_ESP32_BLE
I tried with putty:
mosquitto_pub -t home/OpenMQTTGateway_ESP32_BLE/commands/MQTTtoBT/config -m â{âintervalâ:3600000}â
I tried to publish in MQTT explorer: (3 diffrent ways json/raw/xml)
home/OpenMQTTGateway_ESP32_BLE/commands/MQTTtoBT/config -m â{âintervalâ:3600000}â
But still the value is not updated i must do something stupid wrong lol
Ok, always the problem here with the double quotes getting auto-converted into curly quotes (when not using preformatted text), sometimes also when you copy them from the Docs pages and pasting them to send the command ;). First of all make sure they are the ordinary
"
when publishing the command in either putty or MQTT explorer.
In MQTT Explorer you just need to specify the topic as
Good to know! I remember when i tried with python and bluez the creator told me donât to poll too much.
Could it be that because he implemented battery reading he is connecting to the miflora for the cost of battery?