sebbebebbe / com.riscocloud.security

Homey app that allows you to monitor your Risco Cloud Alarm status. (ELAS based alarm)
0 stars 0 forks source link

Cant get it to connect #1

Open kristianbendren opened 6 years ago

kristianbendren commented 6 years ago

Hi, i have downloaded the app and installed it to my homey. Entered my credentials (email ,password and my 4 digit code), same as when i log into the app.

And then created a flow to test set the state but nothing happens. Can you guide me how to be able to test it?

Regards Kristian

kristianbendren commented 6 years ago

For info i have tested connecting using the commands in postman with the same credentials and that works fine. Also retrieving the status /Security/GetCPState?userIsAlive=true

kristianbendren commented 6 years ago

I noticed there is some issues when you check the status

https://github.com/sebbebebbe/com.riscocloud.security/blob/master/drivers/panel/device.js#L46

if (result.body.overview.partInfo.armedStr === "Yes ") { state = "armed"; } else if ( result.body.overview.partInfo.partArmedStr === "Yes " ) { state = "partially_armed"; } else if (result.body.overview.partInfo.disarmedStr === "Yes ") { state = "disarmed"; } else { console.log(" unknown status: ", result.body.overview.partInfo); }

but in the response from Risco it's

overview":{"partInfo":{"armedStr":"0 Partitions ","disarmedStr":"1 Partition","partarmedStr":"0 Partitions "}