DIY میڈیا ہوم علامت

اپنے گھر تھیٹر اور ہائی فائی سیٹ اپ کے ڈیزائن اور پیدا کرنے کے لئے الٹی سائٹ.

2ہوم اسسٹنٹ میں ایئر کوالٹی

I recently wrote about how to show bin col­lec­tion inform­a­tion in Home Assist­ant, and my next pro­ject was to pull some air qual­ity inform­a­tion. For­tu­nately I have a ‘Tado’ account which meant I could pull this inform­a­tion from their API کے using the fol­low­ing code

20-دسمبر-2021 کو اپ ڈیٹ ہوا۔

This was updated to tweak an issue where home assist­ant con­verts the text value “none” into “unknown”.

Much of the inform­a­tion for this was taken from a thread on the home assist­ant for­ums, but I was able to add pol­lu­tion as well as pol­len inform­a­tion, and I also had to tweak the code to resolve an issue with “none” being treated as “unknown” rather than as a string of text. Lots of cred­it to Drillbit on the for­ums though.

ٹیڈو اکاؤنٹ کی تفصیلات

  • You will need some inform­a­tion for your Tado account
  • Vis­it https://my.tado.com/api/v2/me?صارف نام_you@emailaddress.tld&پاس ورڈ = آپ کا پاس ورڈ
  • Near the top of the out­put you need the numer­ic ID that is lis­ted under homes: 0: ID:
  • اگلے, کے پاس جاؤ https://www.latlong.net/ and loc­ate your home and make a note of the lat­it­ude and longitude
  • Next vis­it https://acme.tado.com/v1/homes/آپ کے گھر کی شناخت/ایئر تکلیف?عرض البلد =12.34&طول البلد =12.34&صارف نام =آپ کا ای میل&پاس ورڈ =your-pass­word اس بات کا یقین کرنے کے لئے کہ یہ بوجھ ہے

ہوم اسسٹنٹ کے لئے کوڈ

  • Add the fol­low­ing code to your configuration.yaml

براہ کرم ذیل میں تبصرہ کرکے اپنے خیالات ہمیں بھیجیں! آپ کے سبسکرائب کرنا چاہتے ہیں تو سب سے اوپر دائیں مینو پر لنک سبسکرائب استعمال کریں. آپ بھی ذیل سماجی روابط کا استعمال کرتے ہوئے کی طرف سے اپنے دوستوں کے ساتھ اس کا اشتراک کر سکتے ہیں. چیرس.

جواب چھوڑیں

2 تبصرے

Gravatar کےflavio

CIao
stavo seguendo la tua guida. Ti risulta che la stringa di tado fun­zioni ancora? per­chè mi restituisce errore {“message”:“User is not author­ized to access this resource with an expli­cit deny”} oppure ins­er­en­dola in ver­sione codice yaml mi restituisce {“message”:“Token di autenticazione man­cante”} . Grazie

جواب دیں
Gravatar کےجان Scaife

Hi Fla­vio

جی ہاں, this is still work­ing for me.
میرے یو آر ایل ہے https://acme.tado.com/v1/homes/123456/airComfort?latitude=11.11&longitude=11.11&username=me@myemail.com&password=mypassword

Obvi­ously I’ve removed the home ID, lat­it­ude, lon­git­ude, email address, and pass­word I use. But if you get those right then it should load fine

Have you double checked your email address and pass­word? Have you checked your home ID at https://my.tado.com/api/v2/me?username=you@emailaddress.tld&password=yourpassword

I don’t know if the Tado sys­tem is dif­fer­ent out­side of the برطانیہ — maybe they don’t have data for lat­it­ude and lon­git­ude where you are? Do you get air qual­ity data in your Tado app when you’re logged into your account?

جواب دیں