smartcielo
v1.3.0
Published
node.js smartcielo sdk
Downloads
67
Readme
SmartCielo Node.JS Library
This provides an interface to interact with devices with the SmartCielo service.
Websocket
Websocket Requests
These are example websocket payloads sent to the websocket api server that this library builds.
Turbo
TBD
Frost Protection
TBD
Power On
{"action":"actionControl","macAddress":"_MAC_","deviceTypeVersion":"BI03","fwVersion":"2.5.3,2.5.0","actionSource":"WEB","applianceType":"AC","applianceId":1663,"actionType":"power","actionValue":"on","connection_source":2,"token":"xxx","actions":{"power":"on","mode":"auto","fanspeed":"auto","temp":"72","swing":"auto","turbo":"off","light":"off","oldPower":"on"},"mid":"_SESSIONID_","application_version":"1.0.0","ts":1688133103}
Power Off
{"action":"actionControl","macAddress":"_MAC_","deviceTypeVersion":"BI03","fwVersion":"2.5.3,2.5.0","actionSource":"WEB","applianceType":"AC","applianceId":1663,"actionType":"power","actionValue":"off","connection_source":2,"token":"xxx","actions":{"power":"off","mode":"auto","fanspeed":"auto","temp":"72","swing":"auto","turbo":"off","light":"off","oldPower":"off"},"mid":"_SESSIONID_","application_version":"1.0.0","ts":1688134560}
Switch to Cool
{"action":"actionControl","macAddress":"_MAC_","deviceTypeVersion":"BI03","fwVersion":"2.5.3,2.5.0","actionSource":"WEB","applianceType":"AC","applianceId":1663,"actionType":"mode","actionValue":"cool","connection_source":2,"token":"_TOKEN_","actions":{"power":"on","mode":"cool","fanspeed":"auto","temp":"72","swing":"auto","turbo":"off","light":"off","oldPower":"on"},"mid":"_SESSIONID_","application_version":"1.0.0","ts":1688134689}
Switch to Fan
{"action":"actionControl","macAddress":"_MAC_","deviceTypeVersion":"BI03","fwVersion":"2.5.3,2.5.0","actionSource":"WEB","applianceType":"AC","applianceId":1663,"actionType":"mode","actionValue":"fan","connection_source":2,"token":"_TOKEN_","actions":{"power":"on","mode":"fan","fanspeed":"auto","temp":"72","swing":"auto","turbo":"off","light":"off","oldPower":"on"},"mid":"_SESSIONID_","application_version":"1.0.0","ts":1688134716}
Switch to Auto
{"action":"actionControl","macAddress":"_MAC_","deviceTypeVersion":"BI03","fwVersion":"2.5.3,2.5.0","actionSource":"WEB","applianceType":"AC","applianceId":1663,"actionType":"mode","actionValue":"auto","connection_source":2,"token":"_TOKEN_","actions":{"power":"on","mode":"auto","fanspeed":"auto","temp":"85","swing":"auto","turbo":"off","light":"off","oldPower":"on"},"mid":"_SESSIONID_","application_version":"1.0.0","ts":1688134741}
Switch Fan to Pos1
{"action":"actionControl","macAddress":"_MAC_","deviceTypeVersion":"BI03","fwVersion":"2.5.3,2.5.0","actionSource":"WEB","applianceType":"AC","applianceId":1663,"actionType":"swing","actionValue":"pos1","connection_source":2,"token":"_TOKEN_","actions":{"power":"on","mode":"auto","fanspeed":"auto","temp":"85","swing":"pos1","turbo":"off","light":"off","oldPower":"on"},"mid":"_SESSIONID_","application_version":"1.0.0","ts":1688134763}
Switch Fan to Pos3
{"action":"actionControl","macAddress":"_MAC_","deviceTypeVersion":"BI03","fwVersion":"2.5.3,2.5.0","actionSource":"WEB","applianceType":"AC","applianceId":1663,"actionType":"swing","actionValue":"pos3","connection_source":2,"token":"_TOKEN_","actions":{"power":"on","mode":"auto","fanspeed":"auto","temp":"85","swing":"pos3","turbo":"off","light":"off","oldPower":"on"},"mid":"_SESSIONID_","application_version":"1.0.0","ts":1688134787}
Switch Fan to Auto
{"action":"actionControl","macAddress":"_MAC_","deviceTypeVersion":"BI03","fwVersion":"2.5.3,2.5.0","actionSource":"WEB","applianceType":"AC","applianceId":1663,"actionType":"swing","actionValue":"auto","connection_source":2,"token":"_TOKEN_","actions":{"power":"on","mode":"auto","fanspeed":"auto","temp":"85","swing":"auto","turbo":"off","light":"off","oldPower":"on"},"mid":"_SESSIONID_","application_version":"1.0.0","ts":1688134805}
Change Temperature
{"action":"actionControl","macAddress":"_MAC_","deviceTypeVersion":"BI03","fwVersion":"2.5.3,2.5.0","actionSource":"WEB","applianceType":"AC","applianceId":1663,"actionType":"temp","actionValue":72,"connection_source":2,"token":"_TOKEN_","actions":{"power":"on","mode":"auto","fanspeed":"auto","temp":"72","swing":"auto","turbo":"off","light":"off","oldPower":"on"},"mid":"_SESSIONID_","application_version":"1.0.0","ts":1688134832}
Fan Speed Low
{"action":"actionControl","macAddress":"_MAC_","deviceTypeVersion":"BI03","fwVersion":"2.5.3,2.5.0","actionSource":"WEB","applianceType":"AC","applianceId":1663,"actionType":"fanspeed","actionValue":"low","connection_source":2,"token":"_TOKEN_","actions":{"power":"on","mode":"cool","fanspeed":"low","temp":"74","swing":"pos1","turbo":"off","light":"off","oldPower":"on"},"mid":"_SESSIONID_","application_version":"1.0.0","ts":1688163858}
Fan Speed Medium
{"action":"actionControl","macAddress":"_MAC_","deviceTypeVersion":"BI03","fwVersion":"2.5.3,2.5.0","actionSource":"WEB","applianceType":"AC","applianceId":1663,"actionType":"fanspeed","actionValue":"medium","connection_source":2,"token":"_TOKEN_","actions":{"power":"on","mode":"cool","fanspeed":"medium","temp":"74","swing":"pos1","turbo":"off","light":"off","oldPower":"on"},"mid":"_SESSIONID_","application_version":"1.0.0","ts":1688163881}
Fan Speed High
{"action":"actionControl","macAddress":"_MAC_","deviceTypeVersion":"BI03","fwVersion":"2.5.3,2.5.0","actionSource":"WEB","applianceType":"AC","applianceId":1663,"actionType":"fanspeed","actionValue":"high","connection_source":2,"token":"_TOKEN_","actions":{"power":"on","mode":"cool","fanspeed":"high","temp":"74","swing":"pos1","turbo":"off","light":"off","oldPower":"on"},"mid":"_SESSIONID_","application_version":"1.0.0","ts":1688163901}
Fan Speed Auto
{"action":"actionControl","macAddress":"_MAC_","deviceTypeVersion":"BI03","fwVersion":"2.5.3,2.5.0","actionSource":"WEB","applianceType":"AC","applianceId":1663,"actionType":"fanspeed","actionValue":"auto","connection_source":2,"token":"_TOKEN_","actions":{"power":"on","mode":"cool","fanspeed":"auto","temp":"74","swing":"pos1","turbo":"off","light":"off","oldPower":"on"},"mid":"_SESSIONID_","application_version":"1.0.0","ts":1688163908}
Ping Reset
{"message":"Ping Connection Reset","token":"xxx"}