Remote (Internet) temperature monitoring on HA?

I was wondering (before I re-invent the wheel) if there is a WiFi > Internet enabled temperature sensor that I could monitor / log with HA somehow please?

I should be able to get power there (even if only 12V via a solar panel and battery) and should be able to gain access to the Internet via WiFi. This is for a rented storage unit btw.

I have previously used an ESP32 and ThinkSpeak to monitor the moisture level of a plant here so I guess something along those lines would be a DIY solution but I was wondering if there was a commercial solution out there that I could get online quicker please?

Cheers.

If you can access your HA installation from the public internet, then:

ESPHome http_request.post to your HA installation will create and update a sensor.

You’ll need to set up a long-lived token for authentication as described in the API doc.

Something like this obviously totally-untested code:

sensor:
  - platform: dallas
    address: 0xXXXX
    name: "Remote Temperature"
    on_value:
      - http_request.post:
          url: http://YOUR_IP:8123/api/states/sensor.remote_temp
          headers:
            Content-Type: application/json
            Authorization: Bearer YOUR_LLT
          json:
            state: !lambda "return x;"
          verify_ssl: false

Hi, and thanks very much for the detailed reply, that will give me plenty to play with! :wink:

No, I don’t have public access to my HA at the moment but I was thinking of supporting HA and so getting the benefits of that, if it would help?

Cheers