no rule on the esp, it just fires values every 2 seconds. to not spam my home assistant history, i divide the value down and round it, so that it doesn’t change the sensor when idle.
Ok, thanks. That’s what I am doing right now. I guess I should stop worring about the poor ESP8266 sending unused messages most of the time
As the weigth difference between my wife and myself seems not big enough to have a reliable sensor to messure who’s sleeping, I just tried to connect a second HX711 + 2 load cells to my NodeMCU to measure both sides of the bed independent of each other. But it seems that unfortunatly two instances of the HX711 sensor are not support (at the moment) by ESPEasy. Should have tested it before soldering another one, but I guess the dog bed will get a sensor now
i don’t know what you mean. if you get values compare them and automate accordingly; compare the value you get for an empty bed with the value you get if the bed is occupied.
in case your refering to this formula in esp-easy: ((%value%+135750)*-1)/20
this formula is supposed to set the value sent by espeasy to approx. zero. before i mounted the sensor into the bed, i measured a 1 kg pack of flour, noted the change and came up with this formula. if i remember correctly espeasy reported a value of around -135750 without any weight applied and a value around −155749 with a kilo flour on the sensor. with the formula i get (around) 0 for no weight and (around) 1000 with a kilo applied.
the values reported by espeasy change a lot, so i round the value in homeassistant to full kilograms, so that only changes greater than 1000 change the homeassistant sensor value.
like i said, it changes all the time but not more than ±1000 in a state of rest. without looking it up, i guess it’s more or less around a range of 300. what’s your range of change?
Sorry for missing so many comments, I forgot that I posted this project here
For anyone asking for source code or wiring diagrams, mine are in the GitHub project linked in the first post.
@bachoo786 for calibration I simply set the UART to print raw values, zeroed out the reading, lay down on the bed, and checked the reading. The ratio between your mass and the raw value is the calibration factor. This is not the most precise way of doing things, but I am more interested in the Boolean occupied/not occupied so it did not have to be perfect.