#RESTful sensor data issues

1 messages · Page 1 of 1 (latest)

long slate
#

With digging in a little to a fork of the NOAA Tides, a video, and AI I came up with the below. I hashed out the one line that pulls all the data as when I go into States in Developer Tools it would just return an "unknown". So the other line is just pulling line 3 from the https://www.ndbc.noaa.gov/data/realtime2/41044 table. I do have some template sensor info in the config.yaml, and can share if needed, but they aren't the issue. The issue i'm having is the data that shows in line 3 when viewing the table on the website and what I get going into the State from Developer Tools doesn't match . The state will show the correct time and date, but when I look at the true .spec site and compare what home assistant pulls are completely different. I'm hoping someone here who programs can figure this out as I can't seem to get it. I've checked to see if it's converting the height into a different measurement but nothing adds up, but even the directions show differently and even the "steepness" won't match.

sensor:
  - platform: rest
    name: NOAA Buoy 41044 Raw
    resource: https://www.ndbc.noaa.gov/data/realtime2/41044.spec
    method: GET
    scan_interval: 600   # Every 10 minutes
    value_template: "{{ value.split('\n')[2] }}" # Get the 3rd line from the .spec site
#    value_template: "{{ value }}" # Get all the data from the .spec site