Found some great inspiration here. Thank you all for sharing this awsome project.
Just made a couple of those sensors last weekend, and it works absolutely fantastic. I’ve used the information from @diplix “messlatte” for the hardware configuration, as I use a two loadcell setup with EasyESP combined with the information I’ve found here: https://selfhostedhome.com/diy-bed-presence-detection-home-assistant/. I’ve put the load cells between the slatted frame and the bed using a 3d printed load cell holder for an easy installation.
The HX711 seems not to work reliably when connected to 3.3V on my NodeMCU V3. Connecting it to 5V fixed all issues in combination with “ESPEasy_mega-20180914 and ESP_Easy_mega-20180914_test_ESP8266_4096.bin”
Right now I use this in my bed for presence detection and in the chaiselongues in my living room to turn on the reading light. Going to integrate it into my tv couch as well to automatically pause the movie and control the light when I get up to grab some snacks or drinks. @diplix Have you managed to write a rule that only transmits significant changes?
UPDATE: Using static IPs for my ESP8266 Sensors (ESPeasy) helped to get rid of some occasional freezes.
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?