...
The Danfoss Ally Cloud protocol is implemented as an ESL script (E.Danfoss_Cloud) using the unit E.Danfoss_Cloud.unit and the curl utility to communicate with the cloud. Subsequently, the data is parsed in the ESL script and stored in structured variables:
...
View file | ||||
---|---|---|---|---|
|
Danfoss cloud configuration and access rights to devices
- In the Danfoss Ally mobile application (https://www.danfoss.com/sk-sk/campaigns/dhs/smart-heating/danfoss-ally) it is possible to connect devices to a registered Danfoss account. Registration is done when installing the mobile application and is to a specific the account is identified by an e-mail address (e.g. ipesoft@ipesoft.sk).
Note: apparently only the owner (Home Owner) and an administrator (Administrator) roles have the right to access devices via the "Danfoss Ally API" interface. Other roles do not have this right. - Subsequently, creating a user account (for the same e-mail address) at https://developer.danfoss.com is necessary.
- After logging in to the account, it is necessary to create an application by clicking the Apps item (https://developer.danfoss.com/user/apps) and clicking the "Add app" button.
- The "Danfoss Ally API" interface must be added when creating the application,
- After creating the application, the situation is as follows:
- The items "Consumer Key" and "Consumer Secret" must be copied and the string Consumer Key:Consumer Secret must be created and converted to BASE64, e.g. using https://www.base64encode.org
Example: if "Consumer Key" is M2i51jpJrgGpKr4TfwnI0XMLDD1nKMU9G and "Consumer Secret" is 1VT80QedtXJE3Xcu72LUjIvMwyvgVWziQ3NHEg, then the following string must be converted
M2i51jpJrgGpKr4TfwnI0XMLDD1nKMU9G:1VT80QedtXJE3Xcu72LUjIvMwyvgVWziQ3NHEg and the BASE64 result is
TTJpNTFqcEpyZ0dwS3I0VGZ3bkkwWE1MREQxbktNVTlHOjFWVDgwUWVkdFhKRTNYY3U3MkxVakl2TXd5dmdWV3ppUTNOSEVn - The result must be inserted into the structured variable SV.Danfoss_Credentials in the access_key column. So this structured variable will have as many rows as user accounts. We recommend entering the identification of individual user accounts (e.g. e-mails) in the account column.
- Subsequently, in the E.Danfoss_Cloud script, it is possible to set a different trigger for starting the reading than the Min object used:
ONCHANGEMinGOTOTriggerChanged ; this trigger can be replaced e.g. by a custom evaluated tag
- The test of writing (increasing the temperature setpoint for the first thermostat "Room Thermostat" / "Radiator Thermostat" devices by 0.1°C and then setting the original temperature) is in the E.Danfoss_TestWrite script.
Kotva | ||||
---|---|---|---|---|
|
...
Info | ||
---|---|---|
| ||
You can read a blog about Danfoss Ally Cloud - Communication - Danfoss cloud |
Kotva | ||||
---|---|---|---|---|
|
...