Closed dckiller51 closed 5 years ago
For me it looks like Home Assistant responsibility, to parse and act on received data.
Hello,
- platform: template sensors: weight_user1: friendly_name: "weight user1" value_template: >- {% if states('sensor.miscale') | float >= 68 and states('sensor.miscale') | float <= 72 %} {{ states("sensor.miscale") }} {% endif %} unit_of_measurement: 'kg' icon_template: mdi:scale-bathroom
- platform: template sensors: weight_user2: friendly_name: "weight user2" value_template: >- {% if states('sensor.miscale') | float >= 77 and states('sensor.miscale') | float <= 82 %} {{ states("sensor.miscale") }} {% endif %} unit_of_measurement: 'kg' icon_template: mdi:scale-bathroom
Cool, I've added this to wiki https://github.com/zewelor/bt-mqtt-gateway/wiki/Home-Assistant#for-monitoring-different-people-weight . Also I think you don't need to declare template sensor platform 2 times. From docs it looks like you can declare many sensor, via single platform template sensor entry ( https://www.home-assistant.io/components/template/ )
Hello, thank you this antenna ble. I come from Jeedom where there is the same antenna. [https://github.com/jeedom/plugin-blea/tree/beta/resources/blead/devices]
Do you have the option to add profiles for the scale so that it detects the user.
For example, I weigh 69Kg, my son 40Kg and my wife 60Kg. So according to the weight one comes to inform an input_boolean according to the person who weighs himself. It exists on this page ([https://github.com/jeedom/plugin-blea/blob/beta/resources/blead/devices/miscale.py]) but it is too complex for me.