Get state of switch with Google Home / Alexa

Hello

I wanted to know if there are anyway (IFTTT, etc…) to get the state of a switch/light with Google Assistant or Alexa. For example “Alexa, is the living room light on?” “Hey Google, is the PC on?”

Thanks for your help

try this