Australia - Electrically Certified Hardware

Yeah, I expect it wouldn’t work either, but it would explain your observations if it did work to send but not receive. How did you work out what the TX and RX pins should be?

Hey Dave, I ended up picking up just a wifi bulb, which arrived today: https://www.zemismart.com/products/-56

Do you have an ESPHome config for it you could share please? I note the following article but mindful they don’t list the same product/serial or anything, so thought I’d ask given your history with them. https://esphome.io/cookbook/zemismart-rgbw-downlights.html

Now for the somewhat stupid question showing I’m not a sparky… for the converting/flashing I don’t want to necessarily put it in the roof before doing that… can I just plug it into a standard wall outlet? Then move it to it’s final location once flashed/tested?

yes, seeing as it has a plug you can do the setup somewhere convenient.

1 Like

Ho @boc The first lot of code in the esphome cookbook is what you want however I have mine below which also has an effect that you may want to use.

Yes, you can certainly plug it into a wall socket.
my code:

esphome:
  name: passage_downlight_1
  platform: ESP8266
  board: esp01_1m
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  manual_ip:
    static_ip: 192.168.0.94
    gateway: 192.168.0.1
    subnet: 255.255.255.0
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
  password: !secret ota_password
my9231:
 data_pin: GPIO13  # GPIO13 for AiLight
 clock_pin: GPIO15  # GPIO15 for AiLight
 num_channels: 4
 num_chips: 1
output:
  - platform: my9231
    id: output_blue
    channel: 1
  - platform: my9231
    id: output_red
    channel: 3
  - platform: my9231
    id: output_green
    channel: 2
  - platform: my9231
    id: output_white
    channel: 0
light:
  - platform: rgbw
    name: Passage Downlight 1
    red: output_red
    green: output_green
    blue: output_blue
    white: output_white
    id: passage
    effects:
      - lambda:
          name: Slow Rainbow
          update_interval: 11s
          lambda: |-
            static int state = 0;
            auto call = id(passage).turn_on();
            call.set_white(0.0);
            call.set_transition_length(10000);
            if (state == 0) {
              call.set_rgb(1.0, 0.0, 0.0);

            } else if (state == 1) {

              call.set_rgb(1.0, 0.5, 0.0);
            } else if (state == 2) {
              call.set_rgb(1.0, 1.0, 0.0);
            } else if (state == 3) {
              call.set_rgb(0.5, 1.0, 0.0);
            } else if (state == 4) {
              call.set_rgb(0.0, 1.0, 0.0);
            } else if (state == 5) {
              call.set_rgb(0.0, 1.0, 0.5);
            } else if (state == 6) {
              call.set_rgb(0.0, 1.0, 1.0);
            } else if (state == 7) {
              call.set_rgb(0.0, 0.5, 1.0);
            } else if (state == 8) {
              call.set_rgb(0.0, 0.0, 1.0);
            } else if (state == 9) {
              call.set_rgb(0.5, 0.0, 1.0);
            } else if (state == 10) {
              call.set_rgb(1.0, 0.0, 1.0);
            } else if (state == 11) {
              call.set_rgb(1.0, 0.0, 0.5);
            }
            call.perform();
            state++;
            if (state == 12)
              state = 0;
1 Like

Any luck with flashing that Deta fan switch Liam? I’ve just done a plug base and rewireable switch with Tuya Convert, but this fan switch doesn’t want to play ball OTA.

Thanks @HasQT and @sparkydave. Probably a weekend project at this stage I reckon.

Hi all,
Same here on this. I bought 4x of the arlec LED Strip from bunnings, and when trying to Tuya convert, getting “Resending SmartConfig Packets”.

Anyone know if this has been solved? Has anyone achieved it on the ARLEC strips?

Cheers.

Not yet.

Hey guys - i have tried 3 times to contact the guys who is listed as the forum moderator and no replies re setting up an Australian hardware category.

Looks like i will have to go up to the site mod and see what he thinks - hate going over volunteers heads though !!

Craig

If you haven’t figured out a workaround to this yet…

I had some arlec globes that were giving the psk error sadly. Hopefully one day ill be able to move to local control.
The work around I used was to add them to tuyasmart app and add tuya via HACs and control them that way. The official tuya integration was missing the color controls.

HACs Tuya custom

you have to add it via configuration.yaml

tuya_custom:
  username: !secret tuya_user
  password: !secret tuya_pass
  country_code: !secret tuya_country
  platform: "tuya"
  devices_config:
    - device_name: "Entry"
      support_color: true    
    
    - device_name: "Walk In"
      support_color: true
1 Like

I ended up picking up just a wifi bulb, which arrived today: Zemismart 4 inch WiFi RGBW Led Downlight 10w Voice Control by Alexa Echo Dot Spot Show Google Home Assistant Home Automation

As a heads up, I’ve been unable to tuya convert. Assuming this comes under New PSK format · Issue #483 · ct-Open-Source/tuya-convert · GitHub

$ cat scripts/smarthack-psk.log
new client on port 443 from 10.42.42.31:37421
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:1056)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.36:16005
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:24910
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:11351
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:15625
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:43697
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:9838
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:36228
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:25046
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:3798
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:9628
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:55404
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:165
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:38807
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:9421
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:17406
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:4817
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:31474
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:2784
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:2219
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:16079
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:31725
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:6093
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:41166
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:25399
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:15400
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:25450
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:5402
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:8202
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:60259
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:31174
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:13273
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)
new client on port 443 from 10.42.42.36:24831
ID: 0242416f68626d643661473931494652318be1f2ee6397018d741a82011014a3729380a6d714bd25bfd3a5498b723d91cd
PSK: bbc68c3285d5d1ec9af8e416e78d69b0e3a9c641f79da6474fa7ca70d2de79c8
could not establish sslpsk socket: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1056)

Yep, I managed to successfully flash the arlec smart strip with tasmota and it’s working really well in HA.

It’s pretty easy (at least if you have a helper) to pop those downlights open. I flashed my first one manually using a usb-serial converter because that was because tuya-convert 2 hadn’t come out yet. It should work for you even if they have updated the stock firmware

I prefer to use smart lights and leave the switches alone for the following reasons:

  1. Most switches look ordinary.
  2. Lack of a Neutral wire to all my switches
  3. Don’t want different switches around the place.
  4. Gives me the ultimate local control, switch it off, on or cycle the light in the occasional instance it goes offline.
  5. If I sell the house and the buyer doesn’t want smart lighting I can replace all the lights quickly.
1 Like

I just saw someone has put a template up for deta fan smart switch

Guys,

The mods have responded re giving us a subforum for specific Australian and NZ electric questions - they have created a new tag - electric-au - when you create a post etc you can tag it with this and search for that also - if they see enough interested (i.e. new posts with this) they will look at a sub forum for AUS/NZ electrics.

Craig

12 Likes

Hi guys,

Does anyone know if the Kogan smart plugs are flashable via tuya-convert ?
I’ve just opened the Arlec plug (PH399HA) from Bunnings and flashed over serial but it won’t fire up after flashing. Flashing appeared to complete successfully.
I’ve tried both ESPHome and Tasmota-minimal with no success.

I’ve done a fair bit of flashing over the years but this one has me stumped.

Cheers

Yes. There is code for them posted in this thread

EDIT: the code is also on esphome-configs.io

Have you had trouble lights not switching off from the UI?

I’ve copied your component (changed WiFi, IP details) and brightness and temp works but when I turn off the light in the UI, it doesn’t turn off

Looks more like an inductor actually, 680uH.