Custom Sensor not appearing as an entity - is my code wrong?

Hi guys,

It’s been a few years since I set this code up and it worked at the time. However, I’ve come back to HA and pasted the code in a new setup and it’s no longer working - i.e. the sensors do not appear. I get the feeling this method has been deprecated but looking at the documentation for the last few hours, I haven’t figured it out.

Here is my code in configuration.yaml: sensor: - platform: rest name: Prayer Times #Main sensor name. This grab - Pastebin.com

Would be grateful if someone could kindly help me get these sensors back up and running.

Many thanks

Better post your code here. Many people won’t go to Pastebin just to see it.

1 Like

And it is actually blocked for some of us on corporate networks.

The url in the sensor definition doesn’t work (anymore?), at least n,ot for me