# getDevicePowerState Query for specified device power status. ### Usage ```js const status = await connection.getDevicePowerState(''); console.log(status); ``` ```js // multi-channel devices like Sonoff 4CH const status = await connection.getDevicePowerState('', ); console.log(status); ``` * _Remember to instantiate class before use_ ### Response example ```js { status: 'ok', state: 'off', channel: 1 } ```