Open TawfikDaim opened 5 months ago
Ngnx and duckdns https://youtu.be/bADNTSF4Fh4
port forwarding First router will only allow port 443 to the IP of second router (192.168.1.11)
Second router will allow both 433 and 8123 (since this router is already local) to the IP of VM of homeassistant 10.195.1.98
tested when from outside and inside
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
ip_ban_enabled: true
login_attempts_threshold: 5
IP ban is not working as it automatically blocks local IPs ??
install VSC, Samba share, SSH and HACS
Hacs only worked for me when I used wget -O - http://get.hacs.xyz | bash - instead of wget -O - https://get.hacs.xyz | bash - after getting timeout error
https://www.wundertech.net/how-to-install-hacs-on-home-assistant/
install Sonoff (Alex integration with Sonoff devices using EWLINK) (Without using HACS)
If the integration is not in the list, you need to clear the browser cache.
You can setup multiple integrations with different ewelink accounts.
Important. If you use the same account in different smart home systems, you will be constantly unlogged from everywhere. In this case, you need to create a second ewelink account and share your devices or home with it.
5.Preventing DB size growth Pow devices may send a lot of data every second. You can reduce the amount of processed data.
For multi-channel devices use power_1, current_2, etc.
sonoff:
devices:
10006f807c:
reporting:
power: [30, 3600, 1] # min seconds, max seconds, min delta value
current: [5, 3600, 0.1]
voltage: [60, 3600, 5]
FLO integration
Water Shutoff devioce frpm Flo by Moen
Just add integration and sign in using FLO credentials (you need to buy the device and set it up using APK on an android device as its not supporting IOS)
Copy any dahsboard to the new instance It’s a bit more work than a simple button click, but you can copy/paste an entire dashboard using the Edit Dashboard > Raw Configuration editor in the menu.
Issues: åå 1) if theme was not available it will not work and needs to be edited to add an available theme in new home assistant 2) some sonoff devices will come as Switch or Light and if it was used as the different type it must be corrected to work probeperly (good news is that only the identifier switch or light needs to change but the rest of the id remains the same)
Presence and location detection Use iCloud integration for iPhone assign the person to the device_tracker entity of the iCloud integration
Ongoing
Use person presence in house as a condition for running automations, e.g scenarios
Next _ Alexa integration
Alexa, who is home ? Alexa, add item to shopping list
Automation for detecting movement when a person is away, this can be extended to be a mechanzim to lock home (close all lights excpet Fridge/automation/wifi), close all heating. close water valve at 11PM nightly while no one is at home), also can be used the other way around to open heating in winter when there is anyone home.
alias: Motioneye detected motion in office description: "" trigger:
Install iCloud3 for tracking iPhone devices
Manual Installation from the iCloud3 Repository Releases Page
Mushroom Cards
Alexa integration is not working as I changed duckDNS on 192,168,1,25 now need to reinstall again on new HA
Shopping List , Amazon Todoist (ON HOLD)
1) install pyscript from Under HACS -> Integrations, select "+", search for pyscript and install it. 2) (https://github.com/custom-components/pyscript/tree/master) 3) Todoist API key (Integrations (todoist.com)) 82977fb625984d1c53a10ee78104ca815d39f180 4) Todoist project ID (when on your Alexa Shopping List project, use the ID at the end of the URL)
Emulated hue
https://www.youtube.com/watch?v=fgeZ1O6J4jc
emulated_hue: type: alexa host_ip: 192.168.1.13 listen_port: 80 expose_by_default: false entities: switch.sonoff_100157b239_1: name: 'Office' hidden: false switch.sonoff_100157b239_2: name: 'Tawfik' hidden: false
Dashborad and theme
add one section to show each of:
Add surevlience section in dashboard to show last 2 shots of each camera when they detected motion, each time record 2 images 2 second apart of each other (taken from same automation used to send to mobile a notification) - * 7 cameras -> 28 pictures
https://github.com/TawfikDaim/home_automation/issues/31#issuecomment-1909688487
try https://www.home-assistant.io/integrations/huawei_lte/ presence detection from router
MotionEye
Important update 9 Feb 2024 install motion eye in docker on ubuntu bare metal https://github.com/motioneye-project/motioneye/wiki/Install-In-Docker configuration using following guide, use ch1, use 800*600, disable text overlay and use Pass Through (most other features keep as default) https://groups.google.com/g/motioneye/c/Nr4zs9vz6rY
NOte: How to View Hikvision CCTV Camera on Ubuntu Using Firefox Web Browser https://github.com/kamipakistan/View-Hikvision-CCTV-Camera-on-Ubuntu/blob/main/INSTRUCTIONS.md
OLD from here and below------!!!
details steps in comments below