Workshop
Ask a question

The Bunnings Workshop community can help with your home improvement projects.

Grid Connect tips, tricks and help

CSParnell
Amassing an Audience

Grid Connect tips, tricks and help

Hi all,

I thought it may he good to have a feed where we could share any tips and tricks to do with any of the Grid Connect Range being Arlec, Deta, Verve, Orion.

 

I am learning from trial and error and really just accident so sharing with others and sharing back we may be able to create some good learning information for us all.

 

Please post below starting with what the trick is as the title then how to do so as the body of information.

 

Carl 

GreenHouse
Having an Impact

Re: Grid Connect tips, tricks and help

Flood Detector Part 3 of 3

 

Having decided NOT to use the Tuya Smart Wifi Water Leakage Detectors for their intended purpose, I wondered if they could be used for some other purpose. After all, they are just VERY sensitive switches able to be interfaced with Grid Connect and could thus be used to control other smart devices rather than just provide an alarm.

The Water Probe wires could be connected to many different things to monitor a change in switch status – for example a micro switch or relay output etc.

 

The following may not be of any practical use but is intended to provide ideas of how some smart devices can be adapted for other uses.

 

As a worked example I decided to re-imagine my (rather complicated) ‘DIY Grid Connect Low Voltage Interface’ (Light Sensitive Switch) as per a previous post.

 

I had on hand a 5V DC light sensor module, a small PVC project box, an old 5V phone charger cable and a Tuya Smart Wifi Water Leakage Detector. All I had to do was mount the light sensor module in a box, cut off the water probe and connect its two wires to the module’s relay output. You could simply assemble everything, insert the batteries, create a suitable Grid Connect Automation and you’re done!

Note: Flood Normal’ could indicate ‘Switch OFF’ and ‘Flood Alarm’ could indicate ‘Switch ON

 

OPTIONAL:

I decided to go one step further and make the Leakage Detector module ‘battery free’. This involved re-wiring the Detector with a 4 core cable. The red & black wires connect to the battery terminals and the blue & white wires connect to the ‘water probe’ connections of the Leakage Detector’s PCB. The red & black wires were then connected to the 5V input of the light sensor module and the blue & white wires were connected to the light sensor’s relay output. (I know - the Leakage Detector is now running on 5V instead of its intended 3V, but CMOS logic can run on higher voltages – and, to quote Vice Grip Garage: “If it works, is it really a dumb idea?” 🤔

 

I even repurposed the redundant Water Probe by connecting it in parallel with the non smart leak detector under the kitchen sink and installing it on the floor, adjacent to the dishwasher. 🙂

(The dishwasher flooded due to over sudsing a few weeks ago, and so, this could prove handy!)

 

A4 Photos-3.jpg

Re: Grid Connect tips, tricks and help

@GreenHouse you can always use a 3v lithium rechargeable battery and apply 3.3vdc hard wired volts to it that way you have hardwired/battery backup :smile:

 

You so need to start playing with Raspberries or Arduinos, I only work with Raspberries these days as they are extremely powerful for a single board computer and so many libraries. Plus ChatGPT is your coding buddy with them.

Re: Grid Connect tips, tricks and help

I always thought I should get into SBCs. I watch a lot of YouTube about them.

I've always had a yearning for this sort of stuff, having built my own CP/M 2.2 Z80 S100 system etc back in the 70's.

But at 71 years of age, I'm not sure I'm past it and I know for sure my wife would not appreciate even more 'junk' around the house.

In any case, I'm struggling to keep up with operating and maintaining our 5 desk tops, 3 laptops, 3 tablets and 5 phones. Oh, and all my Arlec Grid Connect and Tuya devices - you KNOW what it's like!  But I am exploring Linux (Zorin OS) - It's not bad!

Interesting to hear ChatGPT can be used to help coding.  I'll have to see if it can help with AutoIt and AutoLISP coding.

GreenHouse
Having an Impact

Re: Grid Connect tips, tricks and help

Grid Connect Notifications:

For the first time the other night, I had a quick look at Grid Connect 'Notifications'.

I wrote down a few operational notes for myself from my findings.  See photo of my notes below.

I would like to know:

  • Is there any more to it (have I missed anything)?
  • Are any of my notes incorrect?
  • Are there any other tips and tricks people have?

Notifications-1.jpg

JacobZ
Bunnings Team Member
Bunnings Team Member

Re: Grid Connect tips, tricks and help

Hi @GreenHouse,

 

Thank you for your notes on the Grid Connect notifications.

 

Allow me to tag @CSParnell so they are notified of your post and can offer their thoughts and assistance.

 

Jacob

 

w0mbat
Getting Established

Re: Grid Connect tips, tricks and help

How to disable an Automation for a set time and then re-enable it...(a work around).

This is my first post. Hi to the workshop community.

I have been using and experimenting with Grid Connect and other Tuya devices for a couple of years now. Generally I have been very happy with the results. However recently I came across an issue that I could not solve. I contacted Arlec support and they admitted they could see no way of doing what I wanted either. After thinking for a while I came up with a work around solution that works very well.

I live in country Victoria and we have a big problem with feral deer coming into our garden after we have gone to sleep and causing a lot of damage.

I decided to set up a system of LED flood lights which would be activated by Grid Connect PIR movement sensors. I wrote an automation that turned the LED floodlights on and then flashed them on and off for a couple of minutes. This all worked fine.

However, I wanted to be able to disable the automation for ten minutes so that it was not constantly reactivated.

I thought I would be able to do this in the Grid Connect App but I could not get the App to even accept the necessary programming. I contacted Arlec support and they confessed that they could see no way to do what I wanted.

I then realised that I could add the state (on or off) of a spare smart switch to the IF part of the automation and include a time delay in the THEN section.

IF(when ALL conditions are met)

Motion detected

and 

Spare Switch is off

THEN

Turn spare switch ON

Run rest of the automation steps

Set a time delay (in my case 10 minutes)

Turn Spare Switch OFF

 

So this means the Automation will only run when the spare switch is OFF. So effectively, the Automation has been disabled for the period of the time delay .

I have found this to work with100% reliability.

In my case I had a few of the Bluetooth Hubs with Switch in my system where the switch was not being used so they were ideal for this purpose.

I hope I have made this clear and that it helps someone else in the future.

As a side note I was unable to find how you start a new topic in this forum. I could see no way to post here unless I replied to another post.

Maybe some basic instructions would be good for dummies like me!

Ian

 

EricL
Bunnings Team Member
Bunnings Team Member

Re: Grid Connect tips, tricks and help

Hello @w0mbat 

 

Welcome to the Bunnings Workshop community. It's sensational to have you join us, and thanks for sharing your Grid automation work around project.

 

What a fantastic clever idea to use another PIR sensor to carry out a small piece of coding. It's truly a creative solution to get the behaviour you're looking for in the system. I'm sure this information will come in handy to those members who are after the same setup.

 

In regards to starting a new topic, if you look at the very top of the webpage, you'll see big red buttons saying, "Ask a question" and "Share a project". Once you start simply follow the prompts.

 

Again, thank you for sharing such an interesting project.

 

Eric

 

See something interesting? Give it the thumbs up!

Re: Grid Connect tips, tricks and help

CHECKING THE CURRENT STATE OF A SMART SWITCH:

wOmbat's post reminded me of a trick to test the ‘ON/OFF’ state of a Smart Switch (SW1).

Grid Connect's 'IF' condition test only checks for changes in a switch status.

You can't directly check a switch status if it hasn't changed.

However, if you change the state of a spare Smart Switch (SW2) to ‘ON’ in one automation and then use another automation to check the status of SW1 and SW2 (when ALL conditions are met), Grid Connect will test the status of SW1 because SW2 was changed.

I have used this trick successfully several times.

w0mbat
Getting Established

Re: Grid Connect tips, tricks and help

Hi Greenhouse,

I know that what you say appears to be the case from the way the available options are worded. However, I am not sure that it is actually like that.

In my case there is only one automation involved. I goes like this:-

 

IF

when all conditions are met  

Motion Sensor     motion state : motion

BTHubSwitch      power : off

 

THEN

BTHubSwitch      power : on

Back Garden Lights   switch : on

Then a whole lot of light switching and time delays which are irrelevant untill it concludes with

Set a delay (time lapse)   10 min

BTHubSwitch   power : off

 

That is all that is involved and it works.

Occasionally PIR motion sensors get "stuck" in the motion state and then I find what happens is that the lights on and off sequence runs only every ten minutes as shown in the logs. That seems to indicate to me that the GC app is actually checking the current state of the BTHubSwitch rather than whether it has changed because the automation will be attempting to run over and over again during the ten minute delay because the first condition (motion state : motion) is true for the whole time.

I hope my logic makes sense but I am open to being corrected if I am wrong.

Anyway, all I know for sure is I only have one automation involved and it works exactly as I intended. It looks to me that the GC app actually checks the current state of a switch rather than whether it has changed.

Ian

 

 

 

Re: Grid Connect tips, tricks and help

Hi wOmbat
Your logic all looks good to me. In you particular case, you are cunningly turning the BTHubSwitch power ON and OFF in the body of your Automation as well as sensing (when all conditions are met) the state of the Motion Sensor AND the BTHubSwitch which controls whether the Automation will run or not.  It never ceases to amaze me what can be achieved with the limited Grid Connect instruction set - BUT - sometimes you have to be more than a little cunning, crafty and devious!  The bottom line is: If it works, it ain't wrong.  Well done!  I'm sure others will find your post helpful.  

Why join the Bunnings Workshop community?

Workshop is a friendly place to learn, get ideas and find inspiration for your home improvement projects