- Previously with the MiScale 1, I captured data using the ESPHome BLE proxy and separate users by weight range by writing code in ESPHome
- Now, I managed to detect my MiScale 2 using GitHub - custom-components/ble_monitor: BLE monitor for passive BLE sensors
- It shows up as only 1 device, i.e. works only for 1 user
- How do I capture the data to multiple users, e.g. 2 users identified by their weight range?
- I like to do this entirely without node-red etc
- A better idea I had was for each user to press their BLE button before stepping onto the scale, this would scale for any number of users… would this be possible?
I know nothing about this scale but if the value comes in to Home Assistant as a reading in one sensor then you should be able to “send” it to a person using an automation.
What is this BLE button each person has?
If you can detect that then it would be possible.
You could on press set the name of the person who last pressed their button as the state in a sensor.
That would make it easy to later send the weight to the correct person I guess
- The way users are identified in other posts is to assume their weight ranges won’t overlap
- I’m trying to capture each user’s weight in HA, not “send” it to them per se
- My previous approach using ESPHome parked that logic in the BLE proxy, something I find uncomfortable and hard to update
- Part 1: Now, I would like that logic to be in HA, unsure how to implement with the BLE monitor
- Part 2: If the BLE button solution can be implemented, that is even better
I would not build a code based on #1.
As I said, set up an automation to trigger on these BLE buttons.
The action could be set input text with the name of the person.
Call this entity person_on_scale.
Second automation
If the current weight on the scale always ends up in sensor.weight entity then you can trigger on this changing.
Condition sensor.weight is above 10 or whatever just to not get noise from bumps.
Action set input number where the entity id is input_number.{{ states('input_text.person_on_scale') }}
I eventually found my answer here
- BLE monitor to import data into HA
- bodymiscale to “copy” from 1 to the matching user
I suppose the BLE button solution can also be implemented via blueprint