Let me preface by saying, I don’t know what I am doing. I asked ChatGPT on how to show Baby Buddy reports in Home Assistant dashboard and it said to create a Rest sensor so I did. This is my code in config.yaml but I keep getting 401 authentication error in the sensor. What am I doing wrong?
Well, unfortunrately it turned out that ChatGPT is sometimes just making things up that don’t actually work.
Does your original configuration actually contain values for resource, username and password? And when you call the URL you put under resource, do you actually get a response that contains JSON data?
A quick search shows that there is a custom component (also available through HACS) and you may have better luck with that.