Insteon thermostats return the system mode as a floating point number, and as far as I can tell, this Google Assistant code is expecting only integer data.
I haven't figured out how to get debug info to determine if this is exactly the problem, but it seems to me that the length check at openhab.js, line 203 should be replaced with an attempt to call parseInt, and if it returns anything but NaN, treat the mode as a number.
Insteon thermostats return the system mode as a floating point number, and as far as I can tell, this Google Assistant code is expecting only integer data.
I haven't figured out how to get debug info to determine if this is exactly the problem, but it seems to me that the length check at openhab.js, line 203 should be replaced with an attempt to call parseInt, and if it returns anything but NaN, treat the mode as a number.