-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data lose after restart HA #37
Comments
Yes this is normal, the component reads the sensor (s). To compensate, I put in place a node red. |
There is a I have recently forked this repository, and will attempt to add this. |
this can be solved in a simple way (when using BLE monitor for Homeassistant): go to integrations, choose "configure" on the Bluetooth Low Energy Monitor integration, check if "Restore state" is activated, otherwise activate it. Maybe dckiller51 can put that hint into the readme.md |
There is no Bluetooth Low Energy Monitor integration under Configure->intergrations. |
are you using esphome or Passive BLE monitor integration? if you are using esphome, I don´t have a solution, but on passive BLE monitor it is working fine |
|
Would it be possible to select for the weight and impedance sensors a helper? i have an automation already setup to store the last recorded weight and impedance into a number helper (which gets restored at start time) so this would alleviate this regardless of ble integration or esphome. |
Indeed, it could be simpler if it would be possible to specify an
For completeness, input number helpers:
Automations to update input number helpers when sensor values obtained from ESPHome change:
|
That's almost exactly what Im doing now as well. Just a bummer that the other values from the integration won't get updated till the next weigh in. which is why I had wondered if we could just modify the selection from just those sensor values to just selecting the entity you want (in this case it would be the helpers) |
Hello everyone, I follow your comments, have you looked at my proposal to go through node red and Node Red Companion. |
Sorry, I'm new to HA, and I'm not familiar with Node Red yet. |
I don't use node red, nor have any plans to. So to do node red would add a full layer of something new just for this. Just curious (from a developer perspective) what is the concern with allowing the selection of a helper entity? please note, i have done 0 HA development, so I have no idea how involved any of that is :) |
I forgot to specify following one of the last updates. Can you check your sensors normally each attribute has its own sensor this one must keep your data after the restart? Can you confirm it for me because my card currently uses the attributes and not the sensors? If this is ok for you then I should revise my card accordingly. |
Which update? I am on 3.0.3 and I still show all the sensors as unknown until i get on the scale after a restart. |
Can you please elaborate where to implement this solution as I'm a noob noobie? |
@grego1981 Or as a simpler approach, you could do the same via HA web interface without modifying According to the https://github.com/dckiller51/bodymiscale/releases/tag/v3.0.4 with the very recent version of the plugin it is no longer necessary to create template sensors (the first code snippet in my post). And it should be possible to use input number helpers directly in the plugin. And automations (the third code snippet) are created via |
I updated and switched to the helpers. On HA restart though, Im not sure if the integration is triggering before the helpers restore. But in my situation, all the sensors for bodymiscale still show as unknown. BUT, without having to get on the scale, if i wait a bit and then hit reload, it does recalculate everything. What is the trigger mechanism that does the calculations? |
@cranky-coder, could you please check:
|
Confirmed. Not pointing to the sensors, but only pointing to the input_number helpers. both have valid values. |
Thank you. Then I'm out of ideas so far. |
What triggers the recalculations? both sensors weight and impedance or just one or the other? |
Just wanted to confirm that checking "restore state" in BLE instantly solved this for me (didn't even need a restart). |
I had the same issue when using ESPHome and the HA API. I noticed that commenting out Full example:
|
Not sure if this is expected. Everytime restart HA, all data from bodymiscale will lose and status will become problem.
The text was updated successfully, but these errors were encountered: