Home Assistant

Just reading through this thread. Installed HA yesterday on a Pi4B 2GB.

I've done a few of the out of the box integrations most of which were very easy.

I'm struggling with three in particular if anyone could offer any tips or confirm at least just they've got them working:

Hive - I've only got the basic package with the thermostat in the hall, the hub and the boiler control unit (combi so no hot water control) no lights or other devices on the hive ecosystem. I've added the following to the yaml file. No quotes or anything and my password contains no control characters but its not detected after a reboot. Nor do I spot any communication in the log suggesting any attempt to authenticate.

hive:
username: [email protected]
password: MyActualPassword

Xiamoi Vacuum cleaner - I've got two of those but neither wants to integrate. I've got the API Keys but I get "Unknown error occurred" when trying to join them. Do I need a hub for this or is the hub attribute just the IP of the hoover?

UniFi Controller - Also struggling to get this integrated. The controller is hosted on a dream machine (UDM not pro). I have two factor set up on my UI account so I created a second user as a limited admin without two factor but I'm getting an authentication error when trying to link that. I can login to the device with those credentials and to the online account but the integration can't for some reason. I think that will be quite an important one for presence detection routines.

Thanks
 
That is a sped up GIF right? Or they're just rapid? :D

Yep it is that quick. Servo's move very fast.

Just reading through this thread. Installed HA yesterday on a Pi4B 2GB.

I've done a few of the out of the box integrations most of which were very easy.

I'm struggling with three in particular if anyone could offer any tips or confirm at least just they've got them working:

Hive - I've only got the basic package with the thermostat in the hall, the hub and the boiler control unit (combi so no hot water control) no lights or other devices on the hive ecosystem. I've added the following to the yaml file. No quotes or anything and my password contains no control characters but its not detected after a reboot. Nor do I spot any communication in the log suggesting any attempt to authenticate.

hive:
username: [email protected]
password: MyActualPassword

I don't have Hive so will be of limited help.

Just two things to check to start with
1) Is it showing up under integrations at all?
2) Check your YAML structure as YAML is very particular, when i've quoted your text, username and password has 3 blank spaces and it should have 2.
 
Yep it is that quick. Servo's move very fast.

I don't have Hive so will be of limited help.

Just two things to check to start with
1) Is it showing up under integrations at all?
2) Check your YAML structure as YAML is very particular, when i've quoted your text, username and password has 3 blank spaces and it should have 2.

Thanks. Hive was not showing at all anywhere in home assistant. Nothing in the logs and nothing in auto detection for integrations. The yaml appeared to be correct and I verified the characters and ascii values as well.

I've managed to solve or bypass the hive issue by installing a custom Hive repo through HACS instead of using the built in integration.

For Unifi - It turns out that you can only have one UI account associated with a UDM or UDMP at any time. So I wanted to have my admin account with 2FA and then a read only user without 2FA for home assistant but that won't be possible. I removed 2FA from the admin account and the integration now works but I'm not sure I'm happy to go without 2FA to be honest.

Xiaomi - I was using the integration screen to add a Xiaomi device which wasn't working but doing it in the yaml file seems to work.

I'm not sure how to construct a repeating aggregate in yaml. If this is the format for creating one vacuum what would be the format if you've got two devices?

Code:
vacuum:
  - platform: xiaomi_miio
    host: 192.168.1.159
    token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


I've currently got it like this which detects both devices in HA but only one is online and controllable the other shows disconnected. Should I perhaps not have repeated the platform line?

Code:
vacuum:
  - platform: xiaomi_miio
    host: 192.168.1.159
    token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  - platform: xiaomi_miio
    host: 192.168.1.160
    token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


This validates ok but periodically is throwing an error in the log which I guess is a timeout:

Update of vacuum.xiaomi_vacuum_cleaner is taking over 10 seconds

Both vacuums work if they are the sole entry so the devices and config are good individually. I think I've just got the formatting wrong for having more than one entry.

Thanks
 
Thanks. Hive was not showing at all anywhere in home assistant. Nothing in the logs and nothing in auto detection for integrations. The yaml appeared to be correct and I verified the characters and ascii values as well.

I've managed to solve or bypass the hive issue by installing a custom Hive repo through HACS instead of using the built in integration.

For Unifi - It turns out that you can only have one UI account associated with a UDM or UDMP at any time. So I wanted to have my admin account with 2FA and then a read only user without 2FA for home assistant but that won't be possible. I removed 2FA from the admin account and the integration now works but I'm not sure I'm happy to go without 2FA to be honest.

Xiaomi - I was using the integration screen to add a Xiaomi device which wasn't working but doing it in the yaml file seems to work.

I'm not sure how to construct a repeating aggregate in yaml. If this is the format for creating one vacuum what would be the format if you've got two devices?

Code:
vacuum:
  - platform: xiaomi_miio
    host: 192.168.1.159
    token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


I've currently got it like this which detects both devices in HA but only one is online and controllable the other shows disconnected. Should I perhaps not have repeated the platform line?

Code:
vacuum:
  - platform: xiaomi_miio
    host: 192.168.1.159
    token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  - platform: xiaomi_miio
    host: 192.168.1.160
    token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


This validates ok but periodically is throwing an error in the log which I guess is a timeout:



Both vacuums work if they are the sole entry so the devices and config are good individually. I think I've just got the formatting wrong for having more than one entry.

Thanks

Yes you'll only need to put platform the once for each integration type.

Glad you got your hive integration sorted.

As for ubiquiti, I think some of the others on here have it set up, so they might be able to comment on the 2FA stuff.
 
Got some binary sensors worked out last night which take data from my TP-Link plugs and monitor if the washing machine or dishwasher are on. Next step is to add notifications for when they're finished.

919b52ebe3d994282ecd1702fe566f67.png

I've just got push notifications to my phone, and TTS to my google home devices working for my washing machine setup.

*well, i've tested it successfully when flipping the state between on and off, but haven't yet tested it with a washing machine cycle - one for tomorrow.
 
I'm running Home Assistant in a Hyper-V virtual machine under Server 2019 on a Dell R210ii, this machine also runs pfSense and Unifi Video for my CCTV, basically all the stuff that needs to run 24/7 without being touched.

Pinging this up. Can you tell me the size of your HA database?

You're running on a lot more beefier hardware than my rpi4. I'm now getting to the point where my rpi4 is very frequently in iowait where it can't keep up with writing to the sd card.

My DB size is only at 1.2Gb which seems small, but i suppose also irrelevant as i know i have hundreds of entities logging to the database, but i do know when i delete the DB, i can run a good few weeks without iowait issues.

Been debating whether to buy a SSD adapter for the pi, or abandon the pi altogether and buy a NUC.
 
Pinging this up. Can you tell me the size of your HA database?

You're running on a lot more beefier hardware than my rpi4. I'm now getting to the point where my rpi4 is very frequently in iowait where it can't keep up with writing to the sd card.

My DB size is only at 1.2Gb which seems small, but i suppose also irrelevant as i know i have hundreds of entities logging to the database, but i do know when i delete the DB, i can run a good few weeks without iowait issues.

Been debating whether to buy a SSD adapter for the pi, or abandon the pi altogether and buy a NUC.

Go down the NUC route, I've got an old i3 NUC and it's far more proficient than the pi.
 
Yes tempting. I've got other projects where the extra grunt would come in handy.

It seems the go-to nowadays is to install proxmox and then set up HA as a container.
 
That's exactly what I did actually. Seems to work just fine though I had some issues getting bluetooth to work initially. Can't actually remember how I solved that now but was following some thread on the forums for HA.
 
Nice. I ordered them earlier. Should come in handy. I need to stick one on my freezer really. The socket switch sometimes gets knocked and it can be days before I realise!
 
Yeah, lovelace has become miles better over last few iterations - they're aiming for the big 1.0 this month, so suggest wait for that and you'll be sorted.
works perfectly already on Phone, PCs and tablets around the house (just need to think about designing responsively)

Tado works very well on HA - pretty seamlessly really - looks like this:
ha4.png


Few other screens from other thread for noseyness.... ;)

Ha2.png


ha3.png
This is amazing.

Want to get tado this year. And home assistant keeps getting suggested
 
Nice. I ordered them earlier. Should come in handy. I need to stick one on my freezer really. The socket switch sometimes gets knocked and it can be days before I realise!

Ooof yeah i can imagine that being a nightmare.

At least you could set up various ways of notifying you when it switches off.

I'd been tempted to stick one on my fridge/freezer, as a way of assessing the life/condition. In theory the electric consumption should pretty much be the say day-in day-out, so if you start to see it consuming more electric, then gives a hint that the motor might be playing up etc.
 
My landlord's fridge and freezer are both 15+ years old so can't see them having great condition :D

I think I'd just set it up to notify me when the plug isn't reporting or something along those lines. Maybe sound a little alarm through Google Assistant.
 
Yeah i would definitely do at least a push notification on phone/tablet.

If you've got Google speakers, you could have it announce over the speaker (i'm sure the same could be done with Alexa).
 
Thought i'd update as a couple of projects i've been working on have finished.

Ikea recently released a "dumb" low powered air quality monitoring device. Someone decided it would be great to capture the data and import into HA. This is done through a esp8266 (esp32 can probably be used as well, but is typically on a bigger board than the esp8266 and there's not huge amounts of space inside the enclosure.

I also added a DHT11 sensor to provide temperature and humidity readings, as these are tiny.

Graphed data:
E47dTGL.png

Pictures of the device:
T678pGum.jpg
No3pNoJm.jpg

Pictures of internals:
ZmT16Pkm.jpg
tx1doe7m.jpg
 
Back
Top Bottom