when I am in bed the value measured at 20k ohms is 11. when I am not in bed the value is 0.L at any unit of measurement on the multimeter
Tom, it’s possible to have the
input_number in the esphome code.
- platform: template
name: Master Bed Trigger Level
I don’t know if you were aware of this, should keep everything in one place
Yes, you can do that.
It was changed, but then reverted because the docs weren’t clear regarding restoring the value, and then never added again.
Changing my ESP devices to use numbers instead of Home Assistant input numbers and buttons instead of switches that turn themselves off after a delay is on my 3 page list of things to do.
EDIT: ok that’s one thing off my list. First post updated to use ESP template number.
I know the feeling…
Thanks — and happy cake day!
That was an easy one to change. The switches to buttons change… not so much. So many services to change.
I had the same problem with my mattress which is a memory foam type. I believe the problem is that the weigh distribution of the mattress is fairly even across the entire bed frame so it doesn’t particularly distribute weight to the sensor.
I solve it by raising the force sensor off the slats. I use a piece of wood, about 0.5 inch high, 1 inch in width and 60 cm or more to have the entire strip on. This basically allows more pressure to be exerted on the strip and thereby dropping the resistance of the sensor to measurable range. Even with this trick, the resistance is still fairly high so the voltage chagne between occupy and empty is about 1V but accurate enough for me.
Can the ESP32 be powered by USB power? I have hooked everything up and voltage never drops when sensor is pressed. I have confirmed my sensor is working and not damaged.
Yes, assuming you don’t have this board: Something is very wrong with the WiFi on the ESP32 boards I ordered from AliExpress. Is there any way to salvage these and fix the WiFi? - #5 by LoreNG
I don’t think I have the board you mention. This is what I got off amazon. https://www.amazon.com/dp/B0CNYK7WT2?psc=1&ref=ppx_yo2ov_dt_b_product_details. If I wire the power straight to the FSR sensor and plug the other end into the GPIO pin to read the voltage I can get voltage to increase.
Don’t do that. You want it powered from 3.3V.
What do the device serial logs tell you in ESPHome?