Logging historical zigbee2mqtt sensor data in HomeAssistant?

The empty graph is in HA dashboard (black backround)

All sensors read accurately and switches work in Z2M (blueish screens)

Even though all sensors and switches work in Z2M they are not showing up in HA>devices

  Pump 1-f automation and switch   works as it should In both  Z2M & HA dashboard

 Vegetation light switch works in Z2M.... 

I need the history of my sensors and automations whether it is Z2M or on the HA dashboard
It all worked great in ZHA but I purchased 2 sensors that needed Z2M