wmalgadey / tado_component

Custom home-assistant component for tado (using PyTado)
GNU General Public License v3.0
12 stars 1 forks source link

Use mytado geotracking information #7

Open wmalgadey opened 7 years ago

wmalgadey commented 7 years ago

https://my.tado.com/api/v2/homes/<HOME_ID>/users

[
   {
      "name":"string",
      "email":"string",
      "username":"string",
      "homes":[
         {
            "id":int,
            "name":"string"
         }
      ],
      "locale":"de_DE",
      "mobileDevices":[
         {
            "name":"string",
            "id":int,
            "settings":{
               "geoTrackingEnabled":false
            },
            "deviceMetadata":{
               "platform":"string",
               "osVersion":"string",
               "model":"string",
               "locale":"string"
            }
         }
      ]
   }
]

geotracking enabled

   {
      "name":"string",
      "email":"string",
      "username":"string",
      "homes":[
         {
            "id":int,
            "name":"string"
         }
      ],
      "locale":"string [de|en]",
      "mobileDevices":[
         {
            "name":"string",
            "id":int,
            "settings":{
               "geoTrackingEnabled":true
            },
            "location":{
               "stale":false,
               "atHome":true,
               "bearingFromHome":{
                  "degrees":202.32416301958776,
                  "radians":3.531222801033559
               },
               "relativeDistanceFromHomeFence":0
            },
            "deviceMetadata":{
               "platform":"string",
               "osVersion":"string",
               "model":"string",
               "locale":"de"
            }
         }
    ]
   }
]