What you have currently will just reflect the state of the switch, which should already be available.
Is this a switch with motion detection? Does the switch pass an attribute for the motion sensor? Posting a screen shot of your states tab for this switch may help.
This is a Zwave switch with 1 physical switch that has motion sensor on it. but the switch entity changes how it should work. But the Zwave switch doesn’t enable the device that is attach to it. This is how it function.
I would the binary switch for motion detection to have a nicer look on my states tab.
Can you open the left side bar then click the <> button. Find your switch and paste the info.
The left column is the entity ID, the middle is the current state and the right has all the attributes, If I understand your question correctly I think you want to pull a switch attribute.
I do not really understand what you mean, what your problem is and what you want to achieve. Could you please rephrase it in an otherway so that I can help you a bit more ?
If the problem is simply have a nicer look, the customize component may be enough to solve the problem I think, no ?