Set proper transitions
Added threshold logic to pir, bumped version
Pir state now has a motion threshold to get rid of flickering of the signal