Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Home Assistant

Options
1161719212224

Comments

  • Registered Users Posts: 1,732 ✭✭✭poker--addict


    I can't get my way around a Pc and Mac but I have zero programming or coding knowledge, with a busy job of bias towards simplicity, and happy to pay a little for that, but equally don't want to waste money.

    😎



  • Registered Users Posts: 6,098 ✭✭✭emaherx


    I doubt setting up a Pi is less complicated, but plugging a USB drive into a Pi hardly adds a complication either.

    I like the Raspberry Pi 4 option as it is more energy efficient than even a tiny form factor PC and is well capable of running HA with maybe video AI being an exception. Tiny Form factor PC may be the way to go if planning on running a few other services on the same hardware though.



  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,165 Mod ✭✭✭✭Jonathan


    Start with the RPi, but don't be surprised if you find yourself getting hooked and moving to a micro desktop form factor PC in a couple of months.



  • Registered Users Posts: 1,732 ✭✭✭poker--addict


    Haha. Fair. it is web based right so easy to flip over to a micro desktop later and it's not a case of duplicating hours of time?

    😎



  • Registered Users Posts: 7,058 ✭✭✭10-10-20


    I pulled my config/yaml files off my main server and had about 90% of the config working in minutes, so yes, it's transportable that way.



  • Advertisement
  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,165 Mod ✭✭✭✭Jonathan


    I moved my installation lock stock and barrel using the native HA backup and restore functionality. Worked perfectly.



  • Registered Users Posts: 7,058 ✭✭✭10-10-20




  • Posts: 0 ✭✭✭✭ Travis Flaky Eve


    12w vs 4w - yes accept it's 3x the idle power consumption as the pi but even at 50c per kWh you'd need to be running for 8 years to have saved money on the €100 outlay of the Pi vs the €60/€80 of the tiny form factor machine.

    There's nothing HA could throw at that tiny that it couldn't handle - even with room for some media services to also run alongside it. Same is not true of a RPi. I have both - am not **** on the Pi - just suggesting that the more powerful machine is actually a better long term play here - in terms of capacity, performance, cost etc - and find it strange that it would be controversial to suggest it.



  • Posts: 0 ✭✭✭✭ Travis Flaky Eve


    the exact same process is available on the tiny?

    However by installing proxmox (with a similar setup as the above) on the tiny first, you add the ability to have a machine that can do so much more than "just" home assistant without a huge amount of effort.



  • Registered Users Posts: 6,098 ✭✭✭emaherx


    I think most tiny form factor PCs use more than 12W. But regardless power savings are worth considering if you are going to fill your house full of IOT/Smart devices as they all add up.

    I've 2 raspberry pi 4's connected using WireGaurd and Remote HA between house and farm yard on separate broadband connections. There are 16 video feeds between them with security cams and calving cams apart from introducing video AI I can't think of what extra power I would need. I've setup a lot of monitoring and automation between the house and farm including remote out farms using pi zeros as IOT gateways running off solar.



  • Advertisement
  • Registered Users Posts: 1,732 ✭✭✭poker--addict


    starting my HA journey. Is there a handy YouTube channel or position to start with absolute basics?


    initial priority is probably using sun/solar forecast to inform and drive solar/battery/EV management.

    Then dashboard of some thermometers which may later drive blinds or curtains.

    😎



  • Registered Users Posts: 1,732 ✭✭✭poker--addict


    Electric gates currently driven by an old fob, or unrelated new hikvision doorbell/opener.

    is there a way to have HA help me automate gate opening as I come within range of house eg 300metres, or pass a local point, or other trigger?

    😎



  • Registered Users Posts: 7,058 ✭✭✭10-10-20


    Yes there is, there is a good video on this page too:

    I have not played with it, but the one thing that it depends on is the HA companion app being installed on your phone.



  • Registered Users Posts: 7,058 ✭✭✭10-10-20


    The world and their wives have made HA beginners videos, I'm not sure which is the best though. Best have a click around.

    The install guide for RPi seems fine to get you up and running.

    One piece of advise that I can offer to a noob is to take your time to read about YAML and how it works in HA as that's the most confusing part if you're not au-fait with that structure of configuration. My configuraton.yaml is 700 lines long, but I should really have used the sub-files such as sensor.yaml and binary_sensor.yaml a bit better to make it all easier to read.

    Best get VSCode working and use that to edit the files directly.




  • Registered Users Posts: 4,941 ✭✭✭paulbok


    Stick to the installation/ beginner videos from the last 12 months. The process was a different animal once you start going back a few years (and there have been many great beginner videos over the years), but it's a far simpler process than it used to be. I'm not sure I use my yaml files except for adding login 'secrets' for a few devices.

    Everything Smartphone, Bearded Tinker, Smart Home Junkie, Home Automation Guy, Digiblur Not Enough Tech, Mark Watt Tech are all great channels to look at for different topics as you need them.

    Whatever route you go, after installation, get your head around backups and be religious about making them after every session. Mistakes will get made and you'll bedamn glad to roll back to the last working state.



  • Registered Users Posts: 2,493 ✭✭✭ECO_Mental


    I have my HA up and running for a year and half on a Pi4b and never once did I have to mess with the YAML files (bar the initial user name and password) with the UI you can do practically anything

    6.1kWp south facing, South of Cork City



  • Registered Users Posts: 7,058 ✭✭✭10-10-20


    OK, maybe it's just me then, but I'm in the yaml daily! I prefer to code my helpers and such, but I know that the interface has improved hugely in the last while in that respect.



  • Registered Users Posts: 1,732 ✭✭✭poker--addict


    Want to open a gate automatically when approaching. for example automation to "when iPhone comes within 300m of home, and is connected to car Bluetooth, activate open gate/garage button once". New to HA so basic guidance appreciated.

    😎



  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,165 Mod ✭✭✭✭Jonathan


    In terms of automation, it is pretty simple. You need a zone trigger to fire when a person (device_tracker) enters a zone (Home), trigger the gate. You can get fancier and set up a second larger zone outside your house and enable high accuracy location when entering this zone to make the timing more accurate.

    You'll need external access set up to Home Assistant for this to work as your phone needs to be able to trigger the location update once it enters the zone. Do you have this set up?


    Also, HA has an Android Auto mode and you can trigger switches/entries from the dashboard. Not sure if there is something similar for Apple CarPlay.



  • Registered Users Posts: 590 ✭✭✭theintern


    You haven't mentioned how you'll trigger the actual gate. You'll need some way to get Home Assistant to be able to actually send the signal to the gate which depends on how your gate works. You might be able to use a relay wired into the gates power supply (Sonoff or Shelly do good ones), or you might be able to use some sort of RF repeater that will send the same signal as your fob.



  • Advertisement
  • Registered Users Posts: 1,732 ✭✭✭poker--addict


    I have an Meross gate/garage door switch, so i can trigger that in HA (can already see it and play with it via HA).

    I also have a hikvision doorbell/gate opener which also works on the gate, - but i need to reset/unlock the doorbell as cant get into admin settings at moment (forgot password details). In time I imagine hikvision will be the best way to manage it.

    I have setup a zone around my house, 300 metres. What I want to get right is the instruction so the gate is not constantly trying to open when i enter the zone, or is not trying to open the gate as I exit the zone. So only "hitting unlock" once, when i am entering the zone.

    It seems a smart way to manage high accuracy, is to turn on high accuracy when phone is connected to car bluetooth....now back to youtube to figure that out.

    Post edited by poker--addict on

    😎



  • Registered Users Posts: 590 ✭✭✭theintern


    Automations in HA should make this pretty easy. The state of your person tracker will change when you enter the zone, so you'll want the automation trigger to be a change in state of your person entity, from away, to home. That should just trigger once.

    When you exit the state change will be from home to away, so it wouldn't trigger in that case.



  • Registered Users Posts: 1,732 ✭✭✭poker--addict


    id: '1694451677077'

    alias: Gate Triggered by entering 300m zone

    description: ''

    trigger:

     - platform: zone

      entity_id: person.firstname_secondname

      zone: zone.approaching_home_300m

      event: enter

     - platform: zone

      entity_id: person.firstname_secondname

      zone: zone.approaching_home_300m

      event: enter

    condition: []

    action:

     - device_id: 0bb4fba9e328ab3175225d08df63c2c8

      domain: cover

      entity_id: 2200e482835d7893bd5adcf23f039402

      type: open

    mode: single



    Any obvious errors in this automation. It has not worked. The device at end is Meross gate/garage opener. The logic is when both people/trackers enter a 300m radius of home, triggers gate to open.

    HA is setup for remote access.

    Owntracks and iphone tracking is linked to people profiles

    😎



  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,165 Mod ✭✭✭✭Jonathan


    Looks fine. If you have remote access set up, I'd suggest just using the location tracking within the Companion App rather than OwnTracks. It syncs any HA zones to the app so the phone can locally determine if it has entered/exited a zone and force an update.



  • Registered Users Posts: 1,732 ✭✭✭poker--addict


    Happy to get rid of Owntracks, enough tracking going on! will HA app update location frequently enough Jonathan? Given the radius I am using is about 300m, if it is not updating every 30 seconds then Im going to be at the gate waiting....?

    Was also wondering how likely the tracker in cars are updating?

    😎



  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,165 Mod ✭✭✭✭Jonathan


    You can do all sorts of smarts like turning on high accuracy mode on entering a zone. This is on Android. Not sure if same exists on iPhone.



  • Registered Users Posts: 1,732 ✭✭✭poker--addict


    I read somewhere iPhone is a bit funny about this,

    unrelated, anyone managed to get HomeSecure Alarm into HA?

    😎



  • Registered Users Posts: 1,341 ✭✭✭Nelbert


    I ripped mine out once it became obvious their z wave openness talk was marketing and they hadn't an actual clue about it.

    Got a Ring alarm which is fine for HA integration via an add on but I'm considering just connecting all the sensors directly via z wave and being rid of the ring base station.



  • Registered Users Posts: 1,732 ✭✭✭poker--addict


    My gates are now opening with HA when person/device tracker enters a zone. Win! It can be slow though, which introduces some luck. If the zone is 300 metres, and a GPS update has happened at 310metres, the car will need to sit at the gate waiting for another GPS push. At least this is what I am interpreting is going on. I think apple doesn't facilitate rapid location updates by default, but android might. Suspect this is why some people are using OwnTracks and other apps, to try to drive more frequent pushing of location to HA server.

    What might work is apple shortcuts, and an automation to send location when entering same zone, albeit I am not sure if that app will be monitoring location live either, or if it also has delays between updates?

    😎



  • Advertisement
  • Registered Users Posts: 590 ✭✭✭theintern


    Aren't the HomeSecure alarms Ajax systems? Or perhaps yours was an older version?



Advertisement