DIY وسائل الإعلام الرئيسية الشعار

الموقع النهائي لتصميم وإنشاء مسرح منزلي الخاص ومرحبا فاي الإعداد الخاصة.

2جودة الهواء في المنزل المساعد

لقد كتبت مؤخرًا عن كيفية إظهار معلومات مجموعة السلة في Home Assistant, وكان مشروعي التالي هو الحصول على بعض معلومات جودة الهواء. لحسن الحظ لدي حساب "Tado" مما يعني أنه يمكنني سحب هذه المعلومات من API باستخدام الكود التالي

تم التحديث في 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?username=you@emailaddress.tld&كلمة المرور = كلمة المرور الخاصة بك
  • Near the top of the out­put you need the numer­ic ID that is lis­ted under homes: 0: هوية شخصية:
  • التالي, اذهب إلى 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/معرف منزلك/airComfort?خط العرض =12.34&خط الطول =12.34&اسم المستخدم =بريدك الالكتروني&كلمة المرور =your-pass­word للتأكد من أنه يتم تحميله

كود المساعد المنزلي

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

أعتقد أننا فقدنا شيء ما? دعنا نعلم بتعليقك بالأسفل. إذا كنت ترغب في الاشتراك يرجى استخدام الرابط الاشتراك في القائمة في اعلى اليمين. يمكنك أيضا مشاركة هذا مع أصدقائك باستخدام الروابط الاجتماعية أدناه. في صحتك.

اترك رد

2 تعليقات

غرفترفلافيو

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

الرد
غرفترجون سكيف

Hi Fla­vio

نعم فعلا, this is still work­ing for me.
لي URL هو 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?

الرد