Show thermostat by tap on badge

Hello I have badge (temp sensor) on type: picture-elements
I would like to show thermostat card or thermostat card tap dialog (just need to change temperature settings for a room) if I click on this badge.
Is there some way how to do this?
Thank you.