logo elektroda
logo elektroda
X
logo elektroda

Arlec PCTH01HA - Bunnings - CB3S BK7231N

359r  Cool? (+1)
First post, hope this is useful, see topic here also as ByteMangler added some i2c info

https://github.com/openshwprojects/OpenBK7231T_App/issues/584

Unit is from Bunnings here in Aus, has power monitoring and temp/humidity, more on that later, first some pics:

https://grid-connect.com.au/smart-home-products/climate/





Seems to be welded shut mainly in corners, few bashes with rubber mallet (ok gentle whacks!) and spudger and case came open, no damage, just go easy is my input

Board and chips:



In terms of flashing, tried a few times with windows version before reading comments that for the N version, python is the better way.

Loaded up ras pi with spare sd card, raspbian lite installed and using python method, worked straight away. No desoldering any chips needed, just directly soldered jumpers to the chip vcc, gnd, rx and tx - all to cheap generic usb to serial dongle.

My command was this, renamed the downloaded firmware to file.bin for easier typing:

sudo python3 uartprogram /home/pi/file.bin --unprotect --startaddr 0x0 -d /dev/ttyUSB0 -w

That's it, bang straight away it came up with open access point, added wifi credentials, up and running in web ui, fantastic!

P8 Relay
P7 Button_n
P6 LED
P9 SCL
P14 SDA

P26 BL0937 CF1
P24 BL0937 CF
ADC3 BL0937SEL

Linked up to HA via mqtt and works great for relay and power readings from 937 chip.

Outstanding is only the i2c CHT8305 chip data to get linked up for temp/hum

See the above github link for more chatter or any posts after this.

Edit: The temp/hum sensor sits in a nice, somewhat isolated compartment so it might be useful!..



Hope this helps, thanks to the OpenBk team :)

About Author
359r wrote 2 posts with rating 1 . Been with us since 2022 year.

Comments

p.kaczmarek2 06 Jan 2023 23:22

Nice, I didn't even know there such kinds of devices. This is also interesting: BK7231 has two hardware I2C ports and they are already working in OpenBeken. I2C1 is P20/P21: https://obrazki.elektroda.pl/5898062000_1673043511_thumb.jpg... [Read more]

359r 07 Jan 2023 00:48

Awesome, thanks for the reply. The plug is currently monitoring the dishwasher, once it finishes, I'll unplug and double check the pins with meter. Will update this post in around an hour or so, cheers Edit... [Read more]

p.kaczmarek2 10 Jan 2023 01:52

Thanks to our contributor, a simple CHT8305 driver has been added. USAGE: - select CLK pin - select data pin - save pins - for data pin, select two channels to store temperature and humidity (not... [Read more]

tonyb62 07 Apr 2023 11:59

I found the information for this plug-in switch to be buried, so. This is the current working config i have running as of April 2023, on the latest release of OpenBK; 1.15.638 P6 - LED_n - 0 P7 -... [Read more]

p.kaczmarek2 07 Apr 2023 12:21

Thank you, I will paste it into the online templates list, but please provide it in JSON format (copy template from Web Application) [Read more]

tonyb62 07 Apr 2023 13:39

Complete Noob to this but (i'm assuming here) what do you need to add to the home assistant config to have the temp and humidity sensors show in home assistant? Currently have; mqtt: switch: ... [Read more]

tonyb62 17 May 2023 13:31

Spent some time on this device and have found this mqtt config to display the temp and humidity sensors in home assistant, contained in this device. If you see any issues please let me know, I dont'... [Read more]

p.kaczmarek2 17 May 2023 14:01

Hey @tonyb62 , I apologize for the slow reply. It's hard to check entire forum when I'm also working on OBK firmware and on our youtube videos: https://www.youtube.com/@elektrodacom Good job figuring... [Read more]

tonyb62 23 May 2023 15:11

Yes I need to watch more of your youtube videos. I've found the yaml method doesn't stay in the Homeassistant tab and needs to be entered each time additionally, which is an issues when fiddling with... [Read more]

p.kaczmarek2 23 May 2023 17:07

Do you mean the autogenerated YAML code in OBK? Well, it should just give you a quick start, not a final config. You should fiddle with code in Home Assistant configuration.yaml, which is kept as long... [Read more]

tonyb62 23 May 2023 23:03

Yes, I was adding to yaml code in OBK, I see the error of my ways :) [Read more]

gunk 21 Oct 2023 12:44

Hi, This is working beautifully, except that toggling the relay doesn't actually turn off the output. I can hear at least one relay click when toggling or unplugging while on, so I'm mystified about... [Read more]

p.kaczmarek2 21 Oct 2023 12:46

Hello, are you able to open the case and inspect what's going on inside? From what I can see in the first post, this device is a rather uncommon model with not one, but two relays. [Read more]

gunk 23 Oct 2023 02:54

User error, sorry - in future I won't rely on a low-power device behind a power adaptor with massive capacitors to check. Thanks for your great work on this project! [Read more]

p.kaczmarek2 23 Oct 2023 09:15

Ah, I see.... they didn't discharge so you wrongly assumed that relay was still closed. Well, everyone makes mistakes. Let me know if you need help with anything else [Read more]

%}