Australia - Electrically Certified Hardware

SwitchMode 0 ( Tasmota default )

Set switch to toggle mode

Tasmota sends TOGGLE command each time the state of the circuit changes (closing or opening).

SwitchMode 1

Set switch to follow mode (0 = OFF, 1 = ON)

At the time when the circuit is closed, Tasmota will send ON and opening the circuit sends OFF .

You want to use SwitchMode 1 when connecting a toggle switch (e.g. a classic light switch) to your device. This way the “software switch” will mirror the state of the “hardware switch”. If the real switch is in the “ON” position, the state in Tasmota is ON as well.

SwitchMode 2

Set switch to inverted follow mode (0 = ON, 1 = OFF)

At the time when the circuit is closed, Tasmota will send OFF and opening the circuit sends ON .

When connecting a momentary switch (i.e., a push-button) you will want to use SwitchMode 3..7 .

Great that really helped I will look to move forward with ESPHome :+1:

Assume this is relevant for this GPO physical switch buttons.

You’ll need to play around with how the switch works. Some will want to be set to toggle due to the momentary/push button switch, and some will function like a normal on/off switch.

1 Like

Which Intesisbox did you use for your Daikin?

So I just cracked open a Brilliant fan controller. It appears that the ESP communicates with another chip, STM8S00 or something. My electronics skills aren’t fantastic…

Not sure how to proceed. Any tips for figuring out what I/O would need to be coded into this thing?

I would rather figure out the I/O before I try flashing ESPhome onto it since in its current state I should be able to use it via the Tuya component of I had to… Not sure how possible that is

2 Likes

Maybe settings from THIS post above might help get you there?

You have to set a new config in Tasmota called TuyaMCU to talk to the ESP8266 via UART (I think).

Maybe from THIS onwards as well?

Cheers. I did think something like that had been mentioned. I don’t have any Tasmota experience so this will be… Interesting :laughing:

I’ve had too many beers to attempt this today

Beers and coding are fun though.

Watch Tasmota change your life for the better. No more of that ESPhome stuff :wink:

1 Like

If you configure it as a TuyaMCU in tasmota and do a weblog 4 when you hit buttons on the remote you should see some debug output in the tasmota console.

Now I’m not sure if tasmota allows you to just send those commands directly as most of the existing things are about lights on/off or brightness levels.

Could potentially ask on the github/forums once we have the tx/rx data.

@sparkydave

Managed to get ahold one of on the tasmota devs on discord, they are adding in support for these kind of switches currently. See the PR https://github.com/arendst/Sonoff-Tasmota/pull/6735 specifically adding a tuya send command https://github.com/arendst/Sonoff-Tasmota/pull/6735/commits/bde57933bc3cd61b8f14c16e3d20a6fc5661f389

In the mean time it seems that if you do a weblog 5 in console, hit a button on the rf remote and capture the value from the console you can add rules to send it using SerialSend5

Apparently it would be similar to how https://blakadder.github.io/templates/oil_diffuser_550ml.html is configured

Another item worth keeping an eye on. Jaycar look to have recently added a Shelly1 knock-off on their website. It doesn’t look like it has hit the stores yet, but could be the item we’ve all been hoping for.

https://www.jaycar.com.au/240v-mains-wi-fi-wireless-switch-module-with-app/p/MS6126

That’s been around for a loooong time. It’s using the old Broadlink coms from memory. They are running the stock out, they used to be $40.

Old post discussing it…

Bugger. Apologies for the bum-steer.

Hahaha, all good mate. I wanted to get one ages ago to try out, but all the stores nears me had no stock.

I only wish Shelly would cert in Aus so we could use them.

Has anyone checked out the Deta Smart Wall switches Bunnings seems to have now?
Single gang: https://www.bunnings.com.au/deta-smart-single-gang-light-switch-touch-activated-with-grid-connect_p0098811
Double gang: https://www.bunnings.com.au/deta-smart-double-gang-light-switch-touch-activated-with-grid-connect_p0098812

Looks like Tasmota supports it: https://blakadder.github.io/templates/deta_6912HA.html

It looks like the Tuya serial MCU support is in development for ESP-Home now also:

http://www.sieb.net/components/light/tuyadimmer.html
https://github.com/esphome/feature-requests/issues/352
http://sieb.net/tuya.zip

1 Like

I just picked one up yesterday and flashed Tasmota on it. I put some info here: DETA Wall Switches

Nice write up, maybe add some more pictures of the board/s. Just to confirm, this switch has 1 input, but 2 outputs.

I had a look at them last week, but wasn’t sure of the quality of the buttons, what are your thoughts on the quality. Are they touch sensitive, or push/toggle type?