homebridge-script
homebridge-script copied to clipboard
State not returning correctly.
Hi,
I am running a simple on/off execute that uses the state flag file. But for some reason I am getting the following output
[2018-10-19 13:40:55] [Azure Server] State of Azure Server is: [object Promise] [2018-10-19 13:41:25] [Azure Server] State of Azure Server is: [object Promise] [2018-10-19 13:41:54] [Azure Server] State of Azure Server is: [object Promise]
What is [object Promise] representing. At first I thought it was a permissions thing on the file, but I have checked that, does it matter what is in the file.
Wether I use the state file or not, its not determining the state of my script correctly.
Any ideas?