Closed Fraifrai closed 6 years ago
Hello,
using with a sonoff touch wall switch I had to modify this line in order to get status : res.status(200).send(((d.state == 'on') ? '1' : '0'));
replacing d.state by d because the getDeviceState function return just a string containing the state
thanks! just changed it (and also one more thing, where it was also wrongly used)
Hello,
using with a sonoff touch wall switch I had to modify this line in order to get status : res.status(200).send(((d.state == 'on') ? '1' : '0'));
replacing d.state by d because the getDeviceState function return just a string containing the state