Speed test and networking questions

I guess I am confused about exactly what you want to happen. Those rules make no sense. For example, what is open door in your triggers (a device? a rule?) and how are you determining it is turned for 30 seconds? You must be monitoring something to get that?

Without thinking about rules or automation language, can you lay out in a few simple steps what you want to happen and when?

Example:

  1. Contact sensor must be closed.
  2. A button is pressed.
  3. Wait for 30 seconds.
  4. Open the door.

Or whatever steps you want to see happen.

2 Likes

its for automatic door control for my robot hoover so need the door to be be in open mode for only the set number of seconds but also need to only open when the contact sensor is closed

What tells the door to open in the first place? A button? Time of day?

What would happen if the door stayed open too long? You make it sound like that is some critical thing?

Definitely a critical thing as its a swing door controlled by a liner actuator if the door open function is on for too long the liner actuator will over reach jamming the motor and door this could damage the motor and door
the rule is on the open function on the door relay

Ok, got that the timing of the door opening is necessary.

That doesn't make any sense, that seems like circular logic. What tells the relay to work? You must be doing something to make the relay activate.

just push the button for Control on the open door function its a 2 channel dry contact zigbee relay



tried this and it still doest work

If you go to the Device menu, and look at the settings page for this device, does the States section in the upper right corner show that you pressed the button on the relay?



yeah I can turn it on and off and it shows in logs

I think your rule is completely backwards, or at least not the way I would format things.

I think you want

Trigger: Open Door (gee that name is confusing) turns on
Action: IF Slave Door (did I actually type that name?) contact sensor closed THEN turn on Open Door. Delay 29s. Turn off Open Door.

I question whether that relay button is divorced from the output of the relay. I think you triggering from the relay is going to not work as you want it to. I think an external button would be better suited for this, or even a virtual button on the dashboard.

I call the hoover slave lol, really appreciate this I will give it a try

my rule is unsuccessful at the moment, I will give this a try later as a important one. have to get to work now thank you for your help

I have had a number of goes at this, can you give me any tips how to write it please

Was gonna have a go myself but I still have very little understanding of what you're trying to do :frowning:

1 Like

I don't understand what I am trying to do either lol
I just come up with this, but it still doest work

I need the door to only open when a contact sensor is closed to prevent a door jamming to trying to open when already open to set max level

Looks ok on quick examination. You say it's not working? Don't forget you have to press the Done button at the end, and have you tried "Run Actions" to see if that bit works? Which is the contact sensor? "open door"? Why is it saying off rather than closed?

will give it another try thanks

![Screenshot 2022-08-10 at 18.57.49|690x431](upload://pc


Jjw8ssDkCyPOjPsXvSTX5lFgi.jpeg)

it looks like it should work by logs by its not working

You mean the switch is turning off before the 29 seconds and it shouldn't be? Maybe you set it up to automatically turn off

its meant to turn off in 29 second, but when using the expression rule it doesn't even do that. its not meant to open when the door contact is already open