For those interested, i now have this working and have binary sensors for all my door and window contacts: