I am trying to get a sensor working with the API from eiswarnung.de and I tried with the following config but I always get the error that the API key is missing.
# Sensor for Eiswarner
- platform: rest
name: s_eiswarnung_home
resource: https://api.eiswarnung.de/
headers:
key: TheAPIKey
method: POST
payload: '{ "lat" : "49.1111",
"lng" : "10.111" }'
json_attributes:
- success
- message
- callsLeft
- callsDailyLimit
- callsResetInSeconds
- requestDate
- forecastId
- forecastText
- forecastCity
- forecastDate
What I am doing wrong?