How to create a custom entity, and then update that entity via a python script or REST command?

I want to create some custom Sensor Entities in Home Assistant that I will update via a remote Raspberry Pi using REST commands within a Python program or Shell script. Is there an example that someone has done that I can copy and learn from?

look at the command_line sensor:

That did it!! Thanks!

1 Like