If you are a tibber user i think the tibber integration will provide the pricelevel sensor. Otherwise you can find useful information in this thread: Any good ideas are welcome. Nordpool Energy Price per hour - #126 by vilhelm.carlsson
Edit:
The price level is set as an attribute in the price sensor provided by the Tibber integration