[Official] Home Automation Thread

pajamasguy

Junior Member
Joined
Sep 28, 2007
Messages
83
Reaction score
0
Sigh yeah I have reseted my gateway multiple times, restarted my router. Redownloaded the Mi Home app. Nothing works. Guess I have to buy new gateway then.
Where you bought it from? Cannot claim warranty?
Sounds like your gateway is bad. You do hear the voice prompts when adding your child devices right?
 

plustwo

Arch-Supremacy Member
Joined
Dec 28, 2009
Messages
12,689
Reaction score
580
The hub can be use as an security alarm. You can also set it to light up as a night light or a reminder to close a window for example
The hub also controls everything. Just because you don’t see it working doesn’t mean it’s not doing anything lol. If your Wi-Fi is down the hub still works controlling everything. It’s the heart and brain of the system.
i mean a lot of the stuff operate standalone and can directly interface with google assistant
 

dirtytrunks

Junior Member
Joined
Aug 23, 2013
Messages
36
Reaction score
0
Where you bought it from? Cannot claim warranty?
Sounds like your gateway is bad. You do hear the voice prompts when adding your child devices right?

Bought it from taobao a few months ago and only recently gotten around to setting it up. Yeah I think it might just be faulty. Better it than the rest of my 10+ already installed switches. Will buy a new one locally and update back here. Fingers crossed!
 

sbladerz

Senior Member
Joined
Aug 10, 2008
Messages
553
Reaction score
0
Hi guys, I’m starting my home renovation soon and hope to join in the fun with some home automation.
I’m hoping to automate my Yeelight aurora strips to light on when I stepped into the house with the use of Aqara door sensor and the Xiaomi gateway.
I would also like to be able to use google home for some of the automation.

However, I once read that we can’t get Google home to work when the Xiaomi products are connected or China server, whereas singapore server does.
On the contrary, Singapore server does not support the adding of Aqara sensors to the Xiaomi gateway.

Are these still true? If yes, are there alternative?
Thanks!
 

SaLvAtoOo

Supremacy Member
Joined
Sep 2, 2000
Messages
5,815
Reaction score
17
Hi guys, I’m starting my home renovation soon and hope to join in the fun with some home automation.
I’m hoping to automate my Yeelight aurora strips to light on when I stepped into the house with the use of Aqara door sensor and the Xiaomi gateway.
I would also like to be able to use google home for some of the automation.

However, I once read that we can’t get Google home to work when the Xiaomi products are connected or China server, whereas singapore server does.
On the contrary, Singapore server does not support the adding of Aqara sensors to the Xiaomi gateway.

Are these still true? If yes, are there alternative?
Thanks!

True. Consider consolidating them in homeassistant and you can do everything
 

pajamasguy

Junior Member
Joined
Sep 28, 2007
Messages
83
Reaction score
0
Hi guys, I’m starting my home renovation soon and hope to join in the fun with some home automation.
I’m hoping to automate my Yeelight aurora strips to light on when I stepped into the house with the use of Aqara door sensor and the Xiaomi gateway.
I would also like to be able to use google home for some of the automation.

However, I once read that we can’t get Google home to work when the Xiaomi products are connected or China server, whereas singapore server does.
On the contrary, Singapore server does not support the adding of Aqara sensors to the Xiaomi gateway.

Are these still true? If yes, are there alternative?
Thanks!

GH and Alexa can work with Yeelight and a few wifi appliance like air purifier, robot vacuum, ....
Cannot work with Mi Gateway and other Aqara devices for now
 
Last edited:

SaLvAtoOo

Supremacy Member
Joined
Sep 2, 2000
Messages
5,815
Reaction score
17
for my home automation, i'm using mostly xiaomi products. All of automation scripts are controlled via homeassistant and not via mihome app. These are the pros of using homeassistant instead of mihome app for automation:

1. The automation are store and executed locally. They can still be executed if your internet is down.
2. You can consolidate different brand of products into homeassistant and you can create automation which executes actions across different product. For example, you have a xiaomi motion sensor and a tp-link wifi smart switch. You can use homeassistant to turn on the tp-link smart switch if a motion is detected on the xiaomi motion sensor.
3. Security. As all the info are stored locally and not on the internet.
4. Speed. You may notice some lag if you use the mihome app automation to trigger actions. However, it's almost instant with homeassistant as it's local connection.
5. integration with alexa and google home. You will not be restricted with products not compatible with alexa/google home. Once a device is added to homeassistant, you will be able to control it on alexa/google home via homeassistant.

BUT, You will need to host/run homeassistant 24/7 in your home network. i'm running homeassistant on docker on my synology nas. You can also run it on respberry pi which is super light weight and does not consume a lot of electricity....
 
Last edited:

SaLvAtoOo

Supremacy Member
Joined
Sep 2, 2000
Messages
5,815
Reaction score
17
one of the con of using homeassistant is that it's not for novice users. It requires coding of the automation using yaml. This is an example of using xiaomi motion sensor and xiaomi yeelight. It turns on the light when motion is detected 30mins before sunset and 15mins after sunrise.

Code:
- alias: Balcony Motion Turn On Light
  trigger:
    platform: state
    entity_id: binary_sensor.motion_sensor_158d0001d90b27
    from: 'off'
    to: 'on'
  condition:
    condition: and
    conditions:
    - condition: state
      entity_id: light.balcony
      state: 'off'
    - condition: or
      conditions:
        - condition: sun
          after: sunset
          after_offset: "-00:30:00"
        - condition: sun
          before: sunrise
          before_offset: "00:15:00"
  action:
    - service: light.turn_on
      entity_id: light.balcony
    - wait_template: "{% if states.binary_sensor.motion_sensor_158d0001d90b27.attributes['No motion since'] | int >= 180 and states.binary_sensor.motion_sensor_158d0001d90b27.state == 'off' %}True{% else %}False{% endif %}"
    - condition: state
      entity_id: light.balcony
      state: 'on'
    - service: light.turn_off
      entity_id: light.balcony
 

kt

Member
Joined
Jan 1, 2000
Messages
277
Reaction score
2
for my home automation, i'm using mostly xiaomi products. All of automation scripts are controlled via homeassistant and not via mihome app. These are the pros of using homeassistant instead of mihome app for automation:

1. The automation are store and executed locally. They can still be executed if your internet is down.
2. You can consolidate different brand of products into homeassistant and you can create automation which executes actions across different product. For example, you have a xiaomi motion sensor and a tp-link wifi smart switch. You can use homeassistant to turn on the tp-link smart switch if a motion is detected on the xiaomi motion sensor.
3. Security. As all the info are stored locally and not on the internet.
4. Speed. You may notice some lag if you use the mihome app automation to trigger actions. However, it's almost instant with homeassistant as it's local connection.
5. integration with alexa and google home. You will not be restricted with products not compatible with alexa/google home. Once a device is added to homeassistant, you will be able to control it on alexa/google home via homeassistant.

BUT, You will need to host/run homeassistant 24/7 in your home network. i'm running homeassistant on docker on my synology nas. You can also run it on respberry pi which is super light weight and does not consume a lot of electricity....

Doing the same with https://www.openhab.org
What's the difference between these 2?
Openhab seems more established with support for more devices. I also like the support of simple scripting rules.
 

SaLvAtoOo

Supremacy Member
Joined
Sep 2, 2000
Messages
5,815
Reaction score
17
Doing the same with https://www.openhab.org
What's the difference between these 2?
Openhab seems more established with support for more devices. I also like the support of simple scripting rules.

Both are the same... see you are comfortable with openhab or home assistant.
 

pustefix

Senior Member
Joined
Feb 6, 2012
Messages
537
Reaction score
10
one of the con of using homeassistant is that it's not for novice users. It requires coding of the automation using yaml. This is an example of using xiaomi motion sensor and xiaomi yeelight. It turns on the light when motion is detected 30mins before sunset and 15mins after sunrise.

Code:
  action:
    - service: light.turn_on
      entity_id: light.balcony
    - wait_template: "{% if states.binary_sensor.motion_sensor_158d0001d90b27.attributes['No motion since'] | int >= 180 and states.binary_sensor.motion_sensor_158d0001d90b27.state == 'off' %}True{% else %}False{% endif %}"
    - condition: state
      entity_id: light.balcony
      state: 'on'
    - service: light.turn_off
      entity_id: light.balcony

So good to have another Home Assistant user! I can see that you are quite advance with your automation rules using wait_template. For anyone wondering, the above action is to turn on the balcony light, wait until there is no motion for 180 seconds, then turn the light off.

Besides yaml file, you can also use node red for the automation rules. Node Red is a visual programming tool that might appeal to some of you.
 
Last edited:

kt

Member
Joined
Jan 1, 2000
Messages
277
Reaction score
2
Both are the same... see you are comfortable with openhab or home assistant.

So far I find this is the most cost efficient implementation, motion detectors from xiaomi are much cheaper than Philips, while tplink smart plugs are convenient for sg use.

I'm not into Google home or Alexa, prefers auto switch on or off by motion or door/window open/close over talking to myself.

Btw is anyone able to control ceiling fans? Seems their remote is using rf instead of infra red.
 

SaLvAtoOo

Supremacy Member
Joined
Sep 2, 2000
Messages
5,815
Reaction score
17
So far I find this is the most cost efficient implementation, motion detectors from xiaomi are much cheaper than Philips, while tplink smart plugs are convenient for sg use.

I'm not into Google home or Alexa, prefers auto switch on or off by motion or door/window open/close over talking to myself.

Btw is anyone able to control ceiling fans? Seems their remote is using rf instead of infra red.

I have the broadlink RM Pro in my home automation just to send RF to the fan.. haha...bo bian.. coz the fan uses RF and seem like the broadlink RM Pro is the most cost efficient RF learner/sender...
 

sbladerz

Senior Member
Joined
Aug 10, 2008
Messages
553
Reaction score
0
True. Consider consolidating them in homeassistant and you can do everything

Thank you! Will read up more on home assistant.
Meanwhile any suggestion for smart wall light switches such that my interior designer can easily get her electrician to replace without the need to require?
I’m trying to look for the cheapest solution that can get smart light switches to work with Google home. And something that my ID will not charge an exorbitant fee for it.
 

SaLvAtoOo

Supremacy Member
Joined
Sep 2, 2000
Messages
5,815
Reaction score
17
Thank you! Will read up more on home assistant.
Meanwhile any suggestion for smart wall light switches such that my interior designer can easily get her electrician to replace without the need to require?
I’m trying to look for the cheapest solution that can get smart light switches to work with Google home. And something that my ID will not charge an exorbitant fee for it.

imo, no matter which smart switch you use, you will need the neutral wire... you can consider sonoff where you can use back any existing switch... or xiaomi smart wall switch (with neutral recommended).
 

sbladerz

Senior Member
Joined
Aug 10, 2008
Messages
553
Reaction score
0
one of the con of using homeassistant is that it's not for novice users. It requires coding of the automation using yaml. This is an example of using xiaomi motion sensor and xiaomi yeelight. It turns on the light when motion is detected 30mins before sunset and 15mins after sunrise.

Code:
- alias: Balcony Motion Turn On Light
  trigger:
    platform: state
    entity_id: binary_sensor.motion_sensor_158d0001d90b27
    from: 'off'
    to: 'on'
  condition:
    condition: and
    conditions:
    - condition: state
      entity_id: light.balcony
      state: 'off'
    - condition: or
      conditions:
        - condition: sun
          after: sunset
          after_offset: "-00:30:00"
        - condition: sun
          before: sunrise
          before_offset: "00:15:00"
  action:
    - service: light.turn_on
      entity_id: light.balcony
    - wait_template: "{% if states.binary_sensor.motion_sensor_158d0001d90b27.attributes['No motion since'] | int >= 180 and states.binary_sensor.motion_sensor_158d0001d90b27.state == 'off' %}True{% else %}False{% endif %}"
    - condition: state
      entity_id: light.balcony
      state: 'on'
    - service: light.turn_off
      entity_id: light.balcony

Indeed, the thoughts of using home assistant seems rather daunting and overwhelming.
Are there any available comprehensive guides or tutorials for newbies like me? 🤣
 

pustefix

Senior Member
Joined
Feb 6, 2012
Messages
537
Reaction score
10
Indeed, the thoughts of using home assistant seems rather daunting and overwhelming.
Are there any available comprehensive guides or tutorials for newbies like me? ��

The Home Assistant web site is where you should start with, first learn how to install with Getting Started. The easiest method should be using Raspberry Pi with Hassio. Once it is installed, learn how to setup your devices with Components. Use "Search Components" to find your devices, it is also how you can determine if a device is supported. After that, you can take a look at Cookbook to get some examples of automation rules. As usual, Google is your friend.
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top