Custom component with existing sensor

Ah - ok - wasn’t clear.

No idea but the last post in this thread may help: