I have a raspberry pi zero connected to an ultrasonic proximity sensor. I’d like to get this data into home assistant, but I’m getting lost in the docs and forums. So far I have a new sensor with a static value because I copied the code from example-custom-config/custom_components/example_sensor · GitHub. I was thinking it would be simple to program the pi to periodically send a POST via curl to update the value, but I can’t figure out how to authenticate, or what I’d change the
update() method to. I also can’t figure out how/where to set
Entity.should_poll as mentioned in Fetching Data | Home Assistant Developer Docs.
It’s been pretty rough trying to get do custom things with Home Assistant in general, but especially with this attempt at a custom sensor. I feel like I’m missing something vital yet obvious, like when you’re poring over source code trying to make sense of it without realizing there’s a README.I went for a while down the scaffolded integration, but it just feels like there’s way too much there that isn’t relevant. Am I even going about this the right way? Somebody point me in the right direction