we will learn how to get the SP import tariff
Create a scrape integration
Go to settings -> devices -> add integration -> Scrape
Set up the resource like so
resource
https://www.ema.gov.sg/Residential_Electricity_Tariffs.aspx
Set up the sensor like so
select
.tarrif-rates
value template
{{ value.split(" ")[0]|string|regex_replace(find='cents', replace='', ignorecase=True)|float }}
Add it to your dashboard
use it like any other sensor by searching it by name by searching for the entity id