I setup a water pressure device connected to a D1 mini via the A0 pin.
In HA I am able to see values in the range of 0V - 1V but I am not able to see how to read the value from the entity inside an automation.
I also tried to multiply the value by 100 but I don’t see that in the UI.
The yaml used for the device:
You don’t need a lambda for simple multiplication. After the node is added from the esp page, the node has to be added to the integration page. If you did click on the name of the sketch it will bring up all sensors for that sketch.
That is the entity that you would use for an automation. If you click on Water Pressure you will get a pop up. There you will see the sensors entity_id that you would use in automations.
Does the sensor change from 1V? What sensor are you using?
I have multiple nodes that’s why it looks different from yours.
No, it doesn’t reach that level. I measured 3.3V when the normal water pressure is applied. When I close the water pipe and rerelease the pressure, the reading is about 0.2V. So the sensor and device are working fine.
The main issue is that I don’t see how to read this value on the entity.
Most of my devices are working with Tasmota, and I have a good experience with that.
I just decided to give ESPHome a try after the latest integration with HA.
Maybe it’s not ready for prime time yet…
I finally figured out the issue, which is pretty dumb on my side
I forgot that I needed to install the esphome device after every configuration change…
So all the solutions now are working, and I’m using multiply.