The name of your response variable is hourly, but you try to extract the value from a response named daily. you need to replace it by hourly.
I’m not that familiar with tojson but I am pretty sure it is not of any use here. The state of an entity is always a string. Precipitation is just a number, so not something that would be in need of converting to json. It doesn’t do anything to the final result.
Have you checked in the services panel that the weather forcast service actually supplies precipitation? For instance knmi does not, it only has precipitation_probability.
Also, change the trigger frequency to a minute for testing, otherwise you’ll have to wait very long to get the data
Thanks, at the end it was working and my sensor was correctly populated. First I mismatch the variables names and was mainly the error. I’m still not 100% sure how to test it, as I have the feeling my sensor is not calculated after a restart, but only when triggers fires.