Chuyển đến nội dung chính

Bài đăng

Đang hiển thị bài đăng từ Tháng 3, 2020

[HA] Lịch vạn sự tích hợp vào trợ lý nhà thông minh home assistant

Update : 2020/05/11  Thêm chức năng : + Tính khoảng cách đến đến ngày mùng 1 , rằm + Tính khoảng cách đến ngày âm . ngày đám giỗ bất kỳ + Qui hoạch lại code cho gọn Tích hợp lịch vạn sự vào nhà thông minh Dạy cho con HA trên thông thiên văn , dưới tường địa lý Hình ảnh đạt được : 1. Copy thư mục  lichvansu  vào  /config/custom_components/    (link tải bên dưới) 2. Setting file config ở file sensor   - platform: lichvansu     display_options:       - 'amLich' 3. Điền ngày đám giỗ / ngày âm lịch cần tính khoảng cách vào file (nếu muốn) /config/custom_components/lichvansu/sensor.py định dạng (tháng ,ngày) Xong restart HA 3. Link tải code :    lichvansu (Bác nào cần thì yêu cầu quyền truy cập , rồi gởi mail cho em để approved. Chứ giang hồ chém quá ) Thảo Luận :   https://www.facebook.com/groups/784535325063755/permalink/1359212110929404/ Nếu bạn thấy bài viết có ích thì mua cho tôi ly cà phê qua Số tài khoản : 0651 000 865 290 Ngân hàng vietcombank Email : trumxuqua

Get link trực tiếp từ google drive để chèn vào wed

Google là nơi lưu trữ file nhạc , dự liệu miễn phí nhưng không cho get file trực tiếp để chèn vào website Nhưng với thủ thuật sau thì ta có 1 hosting chất lượng miễn phí 1. Tải tất cả các file audio lên google drive và share thư mục đó 2. Ứng với mỗi file cần lấy thì thực hiện get link tương ứng   3. lấy được link :     https://drive.google.com/ open?id= 12c9nA-KENBHsYRqlHTjwuNSARXlofo-l chuyển đổi sang link để get trực tiếp :    https://drive.google.com/ uc?export=download&id= 12c9nA-KENBHsYRqlHTjwuNSARXlofo-l   

[HA] Cách thêm 1 service vào trong HA . Text to speech của FPT AI

1. Cấu trúc của HA thêm vào nằm trong thư mục 1.1  manifest.json Since 0.92.0, every integration has a manifest file to specify basic information about an integration. This file is stored as  manifest.json  in your integration directory. It is required to add such a file, except for custom components. { "domain": "tts_vietnam", "name": "FTP API TEXT TO SPEED", "documentation": "https://vnhass.blogspot.com/", "dependencies": [], "codeowners": ["vlxxx@gmail.com"], "requirements": [] } tts_vietnam : Tên trùng với thư mục khai báo của service 1.2   __init__.py  Tất cả code thì nhét vào đây Link tải code :  tts_vietnam dev doc anh em tham khảo :  https://developers.home-assistant.io/docs/dev_101_services 2. Test code 2.1 cấu hình file config: tts_vietnam:   api_key: 'HxTKOUO4SQ3z4GpSo8Jj5QCcHhEUa9W6'   speed: '1' 2.2 vào dev tools

[HA] Hướng dẫn cài đặt Google Assistant vào Home assistant để điều khiển nhà từ điện thoại , loa google mini

Hướng dẫn cài đặt Google Assistant vào Home assistant để điều khiển nhà từ điện thoại , loa google mini Manual setup : A.  Tạo project tại google cloud      truy cập vào link : https://console.actions.google.com/     Create a new project in the  Actions on Google console . Add/Import a project and give it a name. Click on the  Smart Home  card, select the  Smart home  recommendation. Click  Build your Action , select  Add Action(s) . Add your Home Assistant URL:  https://[YOUR HOME ASSISTANT URL:PORT]/api/google_assistant  in the  Fulfillment URL  box, replace the  [YOUR HOME ASSISTANT URL:PORT]  with the domain / IP address and the port under which your Home Assistant is reachable. Click  Save . Then click on  Overview , which will lead you back to the app details screen. Account linking  is required for your app to interact with Home Assistant. Set this up under the  Quick Setup  section. Leave it at the default  No, I only want to allow account creation on my we