lazcad / homeassistant

Home Assistant Development
249 stars 83 forks source link

How can I get the instant state of motion sensor #59

Open tylor-e opened 7 years ago

tylor-e commented 7 years ago

I noticed that there is a instant motion event trigger. This is very usefel, but first I want to ask if it will cost more battery?

Sencond, I want to turn on light after staying for 2 senconds, so I must use the instant motion event trigger, then check the state after 2 seconds. However, I don't know how to check.

Can anyone help?