Closed shaarkys closed 3 months ago
Hard to help without providing the line that is throwing the error. What is the whole function?
I just realized something, let me test it - I will update it here later but maybe it's my code problem
Found the issue, the problem is that I missed GetSysinfo, apologies for noise from my side.
try { const sysInfo = await client.getSysInfo(device); this.plug = client.getPlug({ host: device, sysInfo: sysInfo }); await this.plug.getInfo().then((data) =>
Using this code :
async getStatus() { try { this.plug = client.getPlug({ host: device }); await this.plug.getInfo().then((data) => {
....Getting :
Caught error in getStatus function: Cannot read properties of undefined (reading 'alias')
I thought it might be specific to some "quirked" ES20M but already two users with the same behavior. I don't have that device myself unfortunately.