Invalid command: energy/info

So I see this sometimes shortly after a restart. I believe every time I’ve seen it I had the energy dashboard up on some device during restart. Which then made sense since the frontend was trying to reach out to an API that hadn’t been set up yet since not all components had been loaded.

Is anyone seeing this during regular runtime of HA? Like not right before or after a restart, you’ve had HA up and running and randomly saw this error in the log. If it’s during startup it should be ignorable. It’s similar to how sometimes you see an exception around mobile app trying to use an unregistered webhook (your phone knows it should be there but setup hasn’t completed yet). But if its not during startup then I don’t think this should happen.

Hello All,

I added Home Assistant WebSocket API integration to my configuration.yaml and no longer see the error in the logs.

Hope it helps…