exrx
March 9, 2024, 8:51am
1
SMHI weather integration has daily and hourly weather forecast available. Unfortunately for me there is only one entity in Lovelace containing all the data. How do I get the hourly forecast data (temperature, wind, cloudiness) to separate sensors so I could use the data for controlling my heating?
Here I can see the hourly forecast:
In developer tools I can see only daily forecast:
Obviouslu the hourly data is somewhere but how to get it out for use?
Hellis81
(Hellis81)
March 9, 2024, 9:07am
2
You can get the data from SMHI API using node red.
This is what I use currently:
[{"id":"8584052db0255346","type":"http request","z":"ad594fb84fe6d294","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://opendata-download-metfcst.smhi.se/api/category/pmp3g/version/2/geotype/point/lon/xxxxxxx/lat/xxxxxxx/data.json","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"credentials":{},"x":310,"y":120,"wires":[["baaeb67025c3b042"]]},{"id":"994a4699a32ef4ec","type":"inject","z"…
exrx
March 9, 2024, 1:21pm
3
Thanks. Have to take a look at Node-Red also.
I am just wondering as the data is already in Home Assistant, there surely must be a way to get that data out.
Hellis81
(Hellis81)
March 9, 2024, 1:25pm
4
I don’t know.
I built this way before the get forecast service call. Perhaps that works, I haven’t tried it