[Official] Home Automation Thread

SaLvAtoOo

Supremacy Member
Joined
Sep 2, 2000
Messages
5,807
Reaction score
11
K. Tks very much! Will look into it.

An example for your reference:

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: switch.wall_switch_ln_left_158d0002b73ca8
      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: switch.turn_on
      entity_id: switch.wall_switch_ln_left_158d0002b73ca8
    - 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: switch.wall_switch_ln_left_158d0002b73ca8
      state: 'on'
    - service: switch.turn_off
      entity_id: switch.wall_switch_ln_left_158d0002b73ca8
 

pajamasguy

Junior Member
Joined
Sep 28, 2007
Messages
83
Reaction score
0
Hi all, i am currently playing with xiaomi home automation although i have got both the gateway and zigbee plugs for quite some time.

I am facing the problem of automation rules not running when the wifi is down. For example, i set my handphone plug to turn off at 6am everyday but it does not do so if wifi is not available. It does so correctly when wifi is available.

Does anyone xiaomi users encounter this and is there a way to overcome this?i thought that zigbee devices should be able to work without wifi.

Tia

automation triggered by zigbee sensors will still work without internet connection but not timer schedules. how will it knows the time when it is not connected to the internet?
 

pajamasguy

Junior Member
Joined
Sep 28, 2007
Messages
83
Reaction score
0
Hi everyone, was told by my electrician that having a neutral wire is dangerous as I'm not intending to automate yet. Just building it in as part of reno.

He mentioned that it could cause electrical fires. Do the experts here have similar concerns?

neutral wires are already at the lights and power points, just not at the switch points. why should it be any more dangerous at the switch points? your electrician either doesnt want to do it or he doesnt knows what he is talking about
 

SaLvAtoOo

Supremacy Member
Joined
Sep 2, 2000
Messages
5,807
Reaction score
11
neutral wires are already at the lights and power points, just not at the switch points. why should it be any more dangerous at the switch points? your electrician either doesnt want to do it or he doesnt knows what he is talking about

the electrician is saying if dont terminate..meaning leaving the wire unterminated at the switch point.. coz maybe owner heaven decide what switch to buy...

anyway, the simplest and cheapeat way... jus dark tape the wire...
 

SaLvAtoOo

Supremacy Member
Joined
Sep 2, 2000
Messages
5,807
Reaction score
11
automation triggered by zigbee sensors will still work without internet connection but not timer schedules. how will it knows the time when it is not connected to the internet?

i tried and all automation dont work.. as long ur gateway has no internet... automation doesnt work.

unless you code your automations in HA.
 

pajamasguy

Junior Member
Joined
Sep 28, 2007
Messages
83
Reaction score
0
the electrician is saying if dont terminate..meaning leaving the wire unterminated at the switch point.. coz maybe owner heaven decide what switch to buy...

anyway, the simplest and cheapeat way... jus dark tape the wire...
Oh sorry I read his question wrongly then. In that case, just don’t cut the insulation and tape up the ends.

As for automation not running if no internet, mine works cause I’ve experienced it before. But I’m going to test it again.
 

halth

Member
Joined
Apr 28, 2003
Messages
257
Reaction score
0
Oh sorry I read his question wrongly then. In that case, just don’t cut the insulation and tape up the ends.

As for automation not running if no internet, mine works cause I’ve experienced it before. But I’m going to test it again.

Ah yes sorry if im unclear.

The light switches are just going to be simple malia legrand switches for now. So there is no termination point.

Hence the electrician is saying could be unsafe.
 

pajamasguy

Junior Member
Joined
Sep 28, 2007
Messages
83
Reaction score
0
Ah yes sorry if im unclear.

The light switches are just going to be simple malia legrand switches for now. So there is no termination point.

Hence the electrician is saying could be unsafe.

It’s safe if he tapes it up. Not like it’s gonna move around on it’s own. Just mark the wire properly as well so you know it’s a neutral.
 

zoneguard

Senior Member
Joined
Jun 2, 2000
Messages
1,957
Reaction score
398
HASSMART products

Is anybody using these?
Taobao Shop

Link to forum for products

They have:
1. 86mm Wifi touch switch. The same product supports both neutral and non neutral with capacitor.
Looks like it uses Tasmota
as the GUI is identical. Espurna also supported.
2. Module to convert normal switch to smart switch. Non-neutral also possible.
3. 16A module to convert wall socket to smart one.
4. Curtain motor.
 

pustefix

Senior Member
Joined
Feb 6, 2012
Messages
537
Reaction score
10
i tried and all automation dont work.. as long ur gateway has no internet... automation doesnt work.

unless you code your automations in HA.

I've also tried before and using Mi Home app, the automation will still work if it is Zigbee only and you lose internet connection. e.g. motion detected will still turn on a wall switch. Timer scheduling will NOT work though, it seems the gateway doesn't have a clock to keep track of time.
 

pajamasguy

Junior Member
Joined
Sep 28, 2007
Messages
83
Reaction score
0
i tried and all automation dont work.. as long ur gateway has no internet... automation doesnt work.

unless you code your automations in HA.

this is what i tested today - with my wifi turned off
1. notifications dont work
2. timer dont work
3. zigbee sensors all working - can turn off or on light switches. timer set using motion sensors still works (as in If no motion detect after 5 mins Then turn off lights)
 

xwhitefangx

Junior Member
Joined
Mar 1, 2008
Messages
18
Reaction score
0
If I pull 1 neutral line from light to switch, can this neutral line be used other switches beside it as well?

Posted from PCWX using ALP-L29

Hi everyone,

I'm very new at this but i'm trying to learn more about this, any help is appreciated.

I am doing renovation at the moment and thinking of putting neutral wires.

However i have a question regarding pulling of neutral wires, does the neutral wire need to be taken from the junction box(DB)? or connected to the DB directly?

Or is there a neutral point at the ceiling light bulb area where i have to use a neutral wire to connect it to the switch area? without connecting to the junction box? Dont really understand it.

Also if there are any links to read more about this i would love to learn.

Thanks!
 

sellun

Senior Member
Joined
Feb 15, 2013
Messages
1,487
Reaction score
51
Hi everyone,

I'm very new at this but i'm trying to learn more about this, any help is appreciated.

I am doing renovation at the moment and thinking of putting neutral wires.

However i have a question regarding pulling of neutral wires, does the neutral wire need to be taken from the junction box(DB)? or connected to the DB directly?

Or is there a neutral point at the ceiling light bulb area where i have to use a neutral wire to connect it to the switch area? without connecting to the junction box? Dont really understand it.

Also if there are any links to read more about this i would love to learn.

Thanks!
0L2bjzJl.jpg

MqCxd8pl.jpg


Think this picture should help you understand clearly..

Sent from HUAWEI BLA-L29 using GAGT
 

pajamasguy

Junior Member
Joined
Sep 28, 2007
Messages
83
Reaction score
0
Hi everyone,

I'm very new at this but i'm trying to learn more about this, any help is appreciated.

I am doing renovation at the moment and thinking of putting neutral wires.

However i have a question regarding pulling of neutral wires, does the neutral wire need to be taken from the junction box(DB)? or connected to the DB directly?

Or is there a neutral point at the ceiling light bulb area where i have to use a neutral wire to connect it to the switch area? without connecting to the junction box? Dont really understand it.

Also if there are any links to read more about this i would love to learn.

Thanks!
Some neutrals are separated into 3 phases. Some just go back to one neutral line. If you use a neutral from a separate phase you may trip the breaker.
A qualified electrician will know what to do., where to tap it from etc
 

xwhitefangx

Junior Member
Joined
Mar 1, 2008
Messages
18
Reaction score
0
Some neutrals are separated into 3 phases. Some just go back to one neutral line. If you use a neutral from a separate phase you may trip the breaker.
A qualified electrician will know what to do., where to tap it from etc


Thank you, yea so I'm not sure where to tap etc

anyone have any electrician's contact who can help with this to share?
 

seianko

Suspended
Joined
Jan 14, 2004
Messages
74,705
Reaction score
43
ER....

hdb only running 1phase in ur own dwelling

different phases neutral is for 3 phase pwr and you dun have that in ur own dwelling, unless u stay in landed bunglow

either u buy 2c+E or just buy twin core cable, where when u split it it will have a N and a R.

N will run back to the N-bar
Earth goes back to Earth bar
1 N cable will terminate at Earth bar

Load to Load
Active to Active


without Neutral, behind the switch usually is labelled as 1C2 or 123, where 1 or 2 is the common and C is the live

L4dM3mr.png
 
Last edited:

punkster

Senior Member
Joined
Mar 21, 2004
Messages
1,669
Reaction score
3
Regarding neutral wires, is it right to say you only require it if using smart switches?

For Eg the Xiaomi ceiling light seems like no need for the neutral switch and I just need to leave the normal switch in the ‘on’ position?
 
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