Cost sensor is unavailable

how can I change it to work
(I have tried to delete the energy sensor and add it again)