Hello Home Assistant Community,
i have problems and also understanding problems when creating a sensor using API.
I tried to do it with Platform:Rest.
I would like to show the grid frequency from the Page: [Mains frequency monitoring the UCTE power grid | Gridradar]
This page also provides documentation:
[API Account]
In my config.YAML I added the following:
- platform: rest
name: "Netzfrequenz"
resource: https://api.gridradar.net/query?token=mytoken&metric=frequency-ucte-median-1s
force_update: 60
I also have a security token. When I paste the link into the browser, I get the values as well.
[{"datapoints":[[49.99564,"2022-01-29 13:52:21"],[49.99555,"2022-01-29 13:52:22"],[49.99357,"2022-01-29 13:52:23"],[49.99213,"2022-01-29 13:52:24"],[49.9913,"2022-01-29 13:52:25"],[49.99017,"2022-01-29 13:52:26"],[49.98894,"2022-01-29 13:52:27"],[49.98811,"2022-01-29 13:52:28"],[49.98791,"2022-01-29 13:52:29"],[49.98796,"2022-01-29 13:52:30"],[49.98675,"2022-01-29 13:52:31"],[49.98526,"2022-01-29 13:52:32"],[49.98434,"2022-01-29 13:52:33"],[49.9852,"2022-01-29 13:52:34"],[49.98623,"2022-01-29 13:52:35"],[49.98533,"2022-01-29 13:52:36"],[49.9841,"2022-01-29 13:52:37"],[49.98389,"2022-01-29 13:52:38"],[49.9838,"2022-01-29 13:52:39"],[49.98388,"2022-01-29 13:52:40"]],"target":"median_frequency"}]This text will be hidden
What do I have to do so that it can be displayed as a sensor?
Please excuse my bad english.
Many greetings
Tobias