Create deviceevent