[Official] Home Automation Thread

AsusEpoxy

Master Member
Joined
Aug 3, 2003
Messages
3,438
Reaction score
23
Anybody here got any recommendation of smart wall switches that i can get, that is suitable for ceiling fan? Mostly i saw are for light only. Are those light switches also suitable for ceiling fan?

you can get the sonoff Ifan to act as your new fan controller.

i did it myself and now i can control my fan via Ewelink app. The remote still uses RF 433mhz so you can use an RF433 mhz wireless switch or others to control as well.
 

pustefix

Senior Member
Joined
Feb 6, 2012
Messages
537
Reaction score
10
My Xiaomi motion sensors are accurate about 80% of the time. Integration to openhab is seamless.

Do you mean 20% of the time, the sensors didn't report that there is motion? I've realized that mine didn't report motion for some instances but it should be less than 10%. I've solved it by putting 2 sensors instead of 1 (about 1 meter away) and my automation is working almost 100%.
 

kt

Member
Joined
Jan 1, 2000
Messages
277
Reaction score
2
Do you mean 20% of the time, the sensors didn't report that there is motion? I've realized that mine didn't report motion for some instances but it should be less than 10%. I've solved it by putting 2 sensors instead of 1 (about 1 meter away) and my automation is working almost 100%.

Can't tell if it's 80 or 90%, I just don't expect 100%. I have a door open sensor too so even if light doesn't auto on when I'm near, it'll switch on when I open the door.
 

doki81

Arch-Supremacy Member
Joined
Jun 11, 2010
Messages
12,658
Reaction score
1,170
Hi guys...did you use smart bulb in your home automation...and did you use it in living hall?

Sent from Samsung Exploding Not 9? using GAGT
 

zoneguard

Senior Member
Joined
Jun 2, 2000
Messages
1,957
Reaction score
398
Shelly EM energy meter is now shipping. Cost 50 euro.

It's a wifi operated energy meter for monitoring whole house energy consumption real-time. Use mobile app or MQTT to feed your HA backend. There's also a contactor relay built-in.

In SG's context, it probably need to be fitted at the circuit breaker.
 

viix

Master Member
Joined
Nov 17, 2001
Messages
3,236
Reaction score
2
My Xiaomi motion sensors are accurate about 80% of the time. Integration to openhab is seamless.

Do you mean 20% of the time, the sensors didn't report that there is motion? I've realized that mine didn't report motion for some instances but it should be less than 10%. I've solved it by putting 2 sensors instead of 1 (about 1 meter away) and my automation is working almost 100%.

Xiaomi like very unstable leh. Anyone got experience using XM sensor?

Out of zigbee range maybe? Got any powered zigbee device as in between repeaters? All my aqara sensors report 100%. No issues with them except the latency compared to my zwave sensors.
The only issues I had are with the wireless switch. they seem to "sleep" after a few weeks not using them. As I dont use it often as it's for manually overriding my automation at the yard and balcony area..
I also had 2 sensor dead after 1.5 years at the window exposed to sun.. but it's cheap so I just replace them..
 

ray0006

Junior Member
Joined
Feb 20, 2001
Messages
72
Reaction score
0
Haha why make it so obvious?

lol..i see at least 4 clones..

btw guys, for the xiaomi zigbee sensors, do they work if im already using the sg server for the MiHome app?
(or must be on the China server?)
 
Last edited:

Epi_curean

Member
Joined
Feb 25, 2001
Messages
246
Reaction score
0
sharing, new arrival water heater switch, EU standard though.

SG$ 23.87 50%OFF | EU WiFi Boiler Water Heater Switch 4400W Tuya Smart Life App Remote Control ON OFF Timer Voice Control Google Home Alexa Echo
https://s.click.aliexpress.com/e/QT1emyu

I tried one of this. Was unsuccessful in trying to flash it to Tasmota firmware

Update Dec 2019. managed to flash to tasmota with latest Tuya-Convert
 
Last edited:

zoneguard

Senior Member
Joined
Jun 2, 2000
Messages
1,957
Reaction score
398
I tried one of this. Was unsuccessful in trying to flash it to Tasmota firmware

With Tuya Convert or serial flash? It should be possible to flash with serial.

Tuya convert doesn't work with the new Tuya firmware using protocol 3.3.

But local control is possible, for OpenHAB, you can use https://github.com/tsightler/tuya-mqtt. I'm using a similar HA custom component to work with a power strip on the protocol 3.3: https://community.home-assistant.io/t/local-tuya-light-bulb-protocol-version-3-3/124785.
 

viix

Master Member
Joined
Nov 17, 2001
Messages
3,236
Reaction score
2
Anyone familiar with TUYA embedded controllers?
I purchased 2 ceiling fans from PO Eco and they are using TUYA OEM controllers within. Control is via the TUYA smart life app. It also comes with a RF remote control. Looking to see if it can be flashed to Tasmota when it arrives at my parent's place..
 

zoneguard

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

viix

Master Member
Joined
Nov 17, 2001
Messages
3,236
Reaction score
2
@viix: Are you sure you want to risk bricking the ceiling fan by flashing Tasmota?

https://blakadder.github.io/templates/sonoff_ifan02.html has some details but I don't know if the Po Eco fan uses the same controller.

https://github.com/thirug010/Virtual-Tasmota-for-Tuya-api-devices is a software solution to emulate local Tasmota (MQTT/Web UI/console) control and less risky since the original firmware is retained.

That thought came to my mind, so I asked here first lol..
the module is a $30 add on and is separate to the main controller so AFAIK, the physical remote is still functional even if the TUYA module is bricked.. my parents will probably just use the remote anyway.
I understand from the company that anything set within the app might conflict with the remote as they're yet to combine the 2 RF and TUYA controller into one.

Since their place isnt automated, I might just use a Neo coolcam wifi motion sensor and link that to the fan if flashing tasmota is too troublesome.. cheap "senseme" option..
 
Last edited:

meRveet

Junior Member
Joined
Sep 4, 2010
Messages
66
Reaction score
0
I tried one of this. Was unsuccessful in trying to flash it to Tasmota firmware

Can I check how did you wire the switch? My normal heater switch comes with two neutral cables. One in and out. Based on the schematic of this switch, it looks like I should put the neutral into the same point. So just checking if that's right?

Cause water heater switch should have 1 L in and 1 N in then 1 L out and 1 N out right? But this switch only has one N.
 

Epi_curean

Member
Joined
Feb 25, 2001
Messages
246
Reaction score
0
With Tuya Convert or serial flash? It should be possible to flash with serial.

Tuya convert doesn't work with the new Tuya firmware using protocol 3.3.

But local control is possible, for OpenHAB, you can use https://github.com/tsightler/tuya-mqtt. I'm using a similar HA custom component to work with a power strip on the protocol 3.3: https://community.home-assistant.io/t/local-tuya-light-bulb-protocol-version-3-3/124785.

I tried with Tuya Convert. Do not know enough of the inside circuitry to do a serial flash.
 

alextoh76

Junior Member
Joined
Dec 5, 2001
Messages
4
Reaction score
0
can try schneider electric singapore's system. easy to use and more dependable than the 2 big general automation softwares people use

Not really. I m in a singapore home automation fb group n hardly any mentioned abt schneider except myself for sharing wats out there. 😅
 

zoneguard

Senior Member
Joined
Jun 2, 2000
Messages
1,957
Reaction score
398
If you have a AMI meter for your house electricity, read on.

Code:
import requests
import json
import sys

url = "https://eservices.openelectricitymarket.sg/authenticateMPLDAPUser"
payload={}
payload["userId"]=sys.argv[1]
payload["userPassword"]=sys.argv[2]
headers = {
    'Content-Type': "application/json",
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:27.0) Gecko/20100101 Firefox/27.0',
    }
s = requests.Session() 
response = s.post( url, data=json.dumps(payload), headers=headers)

url2 = "https://eservices.openelectricitymarket.sg/halfHourly"
from datetime import date
from datetime import timedelta
total=0.0
start=int(sys.argv[4])
end=int(sys.argv[5])
for r in range(start,end,-1):
   d=timedelta(days=r)
   today=date.today()-d
   ctoday=today.__format__('%Y-%m-%d')
   payload2={}
   payload2["isGenAcc"]="false"
   payload2["acc_no"]='{:0>12s}'.format(sys.argv[3])
   payload2["from_date"]=ctoday
   payload2["to_date"]=ctoday
   payload2["settlementDate"]=ctoday
   response = s.post( url2, data=json.dumps(payload2), headers=headers, cookies=s.cookies)
   data=json.loads(response.text)
   data2=data["responseData"]
   tu=data2["totalUsage"]
   print('{} usage: {:.3f}'.format(ctoday,float(tu)))
   total+=(float(tu))
print('Total is {:.2f}'.format(total))

Parameters:
1. 1st parameter: your user ID at https://eservices.openelectricitymarket.sg/#/register
2. 2nd parameter: your password
3. 3rd parameter: Your 10-digit MSSL account no starting with 9.
4. 4th and 5th parameters. Start and end days from today's date to sync with your billing cycle.

Thus you can use the above Python script to feed your house's energy consumption into your home automation. From experience, the data is available 1.5 days after consumption.
 
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