Yes, you can. Do the battery levels for these switches show up as entities in Home Assistant.?
Go to Developer Tools -> Events and enter “deconz_event” in the “listening to events” box and press start listening. Now you should see events there whenever you press a button.
Take a look here in the docs for finding out to handle automations etc with remote controls.