Andrew J.Swan
Andrew J.Swan
+1 and battery like in mi flora :)
https://github.com/myhomeiot/esphome-components/blob/main/examples/myhomeiot_ble_client/mi_band.yaml
> esphome.... its not for me Link for @Ernst79
Steps not require connect, only battery and battery states need connect, like MiFlora...
Great idea, then I can invert the graph to get this result: 
How about yaml mode? After restart all my sensor have unavailable state, after some time, have correct states ...
@Ernst79 My Yaml config: ``` # Mi BLE Devices decimals: 1 period: 60 log_spikes: False use_median: False active_scan: False restore_state: True hci_interface: 0 devices: !secret ble_devices report_unknown: False ``` !secret...
I have all the sensors are prescribed as I wrote above, but some restore the state and some do not, before all restored instantly on startup.
All in one format: ``` - mac: 'XX:XX:XX:XX:XX:XX' name: 'Sensor Name' encryption_key: 'xxxxxxxxxxxxxxxxxxxxxxxxxxx' ``` mac - Upperacse, encryption_key - lower case, name like above ...